From: John Lindgren Date: Wed, 13 Mar 2013 01:03:45 +0000 (+0100) Subject: treeview: Don't emit cursor-changed in destruction X-Git-Url: http://pileus.org/git/?p=~andy%2Fgtk;a=commitdiff_plain;h=5e2c23214564f7dcc687fa8467020eeb6b9407a9 treeview: Don't emit cursor-changed in destruction This is a workaround until we have a good idea on how we want to handle signal disconnection before/during/after dispose and destroy vfunc calls. https://bugzilla.gnome.org/show_bug.cgi?id=671939 --- diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 21873d775..4544c6f6d 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -13238,7 +13238,8 @@ gtk_tree_view_real_set_cursor (GtkTreeView *tree_view, GTK_CELL_RENDERER_FOCUSED); } - g_signal_emit (tree_view, tree_view_signals[CURSOR_CHANGED], 0); + if (!gtk_widget_in_destruction (GTK_WIDGET (tree_view))) + g_signal_emit (tree_view, tree_view_signals[CURSOR_CHANGED], 0); } /**