[gtk+] flowbox: Don't emit selected-children-changed during destruction



commit 7331735499e09aeb981f821b540131195a1f31e7
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Dec 12 21:12:51 2016 +0100

    flowbox: Don't emit selected-children-changed during destruction
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776012

 gtk/gtkflowbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index c7bd329..eb44879 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -3225,7 +3225,7 @@ gtk_flow_box_remove (GtkContainer *container,
   if (was_visible && gtk_widget_get_visible (GTK_WIDGET (box)))
     gtk_widget_queue_resize (GTK_WIDGET (box));
 
-  if (was_selected)
+  if (was_selected && !gtk_widget_in_destruction (GTK_WIDGET (box)))
     g_signal_emit (box, signals[SELECTED_CHILDREN_CHANGED], 0);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]