[gtk+/gtk-3-22] listbox: Don't emit selected-rows-changed, etc. during destruction
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] listbox: Don't emit selected-rows-changed, etc. during destruction
- Date: Mon, 19 Dec 2016 17:07:07 +0000 (UTC)
commit e779ec4b1f52f1705f8ecaa61f957567ee88fabd
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Dec 18 09:43:38 2016 +0100
listbox: Don't emit selected-rows-changed, etc. during destruction
https://bugzilla.gnome.org/show_bug.cgi?id=776012
gtk/gtklistbox.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 0269115..f16e02a 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -2515,7 +2515,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]