From f5818c594cc310f547b389df315bdf9cb6e8b090 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Sun, 18 Dec 2016 09:43:38 +0100 Subject: [PATCH] listbox: Don't emit selected-rows-changed, etc. during destruction https://bugzilla.gnome.org/show_bug.cgi?id=776012 --- gtk/gtklistbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index f3c101ccfb..6580a8f793 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -2549,7 +2549,7 @@ gtk_list_box_remove (GtkContainer *container, if (was_visible && gtk_widget_get_visible (GTK_WIDGET (box))) gtk_widget_queue_resize (widget); - if (was_selected) + if (was_selected && !gtk_widget_in_destruction (widget)) { g_signal_emit (box, signals[ROW_SELECTED], 0, NULL); g_signal_emit (box, signals[SELECTED_ROWS_CHANGED], 0);