[gedit] menu-stack-swtcher: disconnect signals when removing child
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] menu-stack-swtcher: disconnect signals when removing child
- Date: Wed, 10 Sep 2014 12:26:08 +0000 (UTC)
commit 2c5fc464634b76da1a64f0bbb23aa17bf93d3f51
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Sep 10 14:23:03 2014 +0200
menu-stack-swtcher: disconnect signals when removing child
gedit/gedit-menu-stack-switcher.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-menu-stack-switcher.c b/gedit/gedit-menu-stack-switcher.c
index 29d0bbc..2b856aa 100644
--- a/gedit/gedit-menu-stack-switcher.c
+++ b/gedit/gedit-menu-stack-switcher.c
@@ -273,6 +273,11 @@ on_stack_child_removed (GtkStack *stack,
GeditMenuStackSwitcherPrivate *priv = switcher->priv;
GtkWidget *button;
+ g_signal_handlers_disconnect_by_func (widget, on_title_icon_visible_updated, switcher);
+ g_signal_handlers_disconnect_by_func (widget, on_title_icon_visible_updated, switcher);
+ g_signal_handlers_disconnect_by_func (widget, on_title_icon_visible_updated, switcher);
+ g_signal_handlers_disconnect_by_func (widget, on_position_updated, switcher);
+
button = g_hash_table_lookup (priv->buttons, widget);
gtk_container_remove (GTK_CONTAINER (priv->button_box), button);
g_hash_table_remove (priv->buttons, widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]