summaryrefslogtreecommitdiff
path: root/src/eom-window.c
diff options
context:
space:
mode:
authorMartin Wimpress <[email protected]>2015-06-13 07:54:48 +0100
committerMartin Wimpress <[email protected]>2015-06-13 07:54:48 +0100
commit309ba23a39b9f9fb6cbbc816d94f656bc66e3882 (patch)
tree83d1bda664eefc40495e63b47a21bddab3c4dfc3 /src/eom-window.c
parent0ebbecec4796084650addb344c1e1a000c7561d8 (diff)
parent945913214e0ae6b460581ba665dd62f80603750b (diff)
downloadeom-309ba23a39b9f9fb6cbbc816d94f656bc66e3882.tar.bz2
eom-309ba23a39b9f9fb6cbbc816d94f656bc66e3882.tar.xz
Merge pull request #77 from NiceandGently/master
fix a eom-critical + deprecated follow-state property
Diffstat (limited to 'src/eom-window.c')
-rw-r--r--src/eom-window.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index fef0b52..210ba40 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -4458,7 +4458,7 @@ eom_window_construct_ui (EomWindow *window)
gtk_box_pack_start (GTK_BOX (priv->layout), hpaned, TRUE, TRUE, 0);
- priv->thumbview = eom_thumb_view_new ();
+ priv->thumbview = g_object_ref (eom_thumb_view_new ());
/* giving shape to the view */
gtk_icon_view_set_margin (GTK_ICON_VIEW (priv->thumbview), 4);
@@ -4587,6 +4587,16 @@ eom_window_dispose (GObject *object)
priv->page_setup = NULL;
}
+ if (priv->thumbview)
+ {
+ /* Disconnect so we don't get any unwanted callbacks
+ * when the thumb view is disposed. */
+ g_signal_handlers_disconnect_by_func (priv->thumbview,
+ G_CALLBACK (handle_image_selection_changed_cb),
+ window);
+ g_clear_object (&priv->thumbview);
+ }
+
eom_plugin_engine_garbage_collect ();
if (priv->store != NULL) {