summaryrefslogtreecommitdiff
path: root/gtk/gtkstackswitcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkstackswitcher.c')
-rw-r--r--gtk/gtkstackswitcher.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index 35d82b8be2..44fc7c8191 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -330,6 +330,11 @@ on_stack_child_removed (GtkContainer *container,
GtkStackSwitcherPrivate *priv;
priv = gtk_stack_switcher_get_instance_private (self);
+
+ g_signal_handlers_disconnect_by_func (widget, on_title_icon_visible_updated, self);
+ g_signal_handlers_disconnect_by_func (widget, on_position_updated, self);
+ g_signal_handlers_disconnect_by_func (widget, on_needs_attention_updated, self);
+
button = g_hash_table_lookup (priv->buttons, widget);
gtk_container_remove (GTK_CONTAINER (self), button);
g_hash_table_remove (priv->buttons, widget);