[gtk+/gtk-3-22] flowbox: Don't emit selected-children-changed during destruction
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] flowbox: Don't emit selected-children-changed during destruction
- Date: Mon, 19 Dec 2016 17:07:12 +0000 (UTC)
commit 3073419ff100dc1f342498e88868bd9ddabae5ff
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 91f3042..67a849f 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -3275,7 +3275,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]