[gnome-builder/wip/libide-merge] disconnect signal on shutdown



commit cfda684eb005655eeb97a46eec2ac8bc3c6dd249
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 22 02:51:37 2015 -0700

    disconnect signal on shutdown

 src/views/gb-view-stack.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/views/gb-view-stack.c b/src/views/gb-view-stack.c
index ee97c60..61b1a38 100644
--- a/src/views/gb-view-stack.c
+++ b/src/views/gb-view-stack.c
@@ -248,6 +248,13 @@ gb_view_stack_hierarchy_changed (GtkWidget *widget,
 
   g_assert (GB_IS_VIEW_STACK (self));
 
+  if (GB_IS_WORKBENCH (old_toplevel))
+    {
+      g_signal_handlers_disconnect_by_func (old_toplevel,
+                                            G_CALLBACK (gb_view_stack_on_workbench_unload),
+                                            self);
+    }
+
   toplevel = gtk_widget_get_toplevel (widget);
 
   if (GB_IS_WORKBENCH (toplevel))


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