[gimp] app: Update dock window title when docks re added/removed



commit 1010b497c2ff427e64261209e461f7ec4e4c27ef
Author: Martin Nordholts <martinn src gnome org>
Date:   Fri Mar 5 21:24:47 2010 +0100

    app: Update dock window title when docks re added/removed
    
    Update dock window title when docks re added/removed. We can also
    remove the code that explicitly updated the title when a dock is
    added.

 app/widgets/gimpdockwindow.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpdockwindow.c b/app/widgets/gimpdockwindow.c
index 24a8bf7..bf15355 100644
--- a/app/widgets/gimpdockwindow.c
+++ b/app/widgets/gimpdockwindow.c
@@ -377,6 +377,15 @@ gimp_dock_window_constructor (GType                  type,
                              G_CALLBACK (gimp_dock_window_dock_removed),
                              dock_window,
                              G_CONNECT_SWAPPED);
+
+    g_signal_connect_object (dock_window->p->dock_columns, "dock-added",
+                             G_CALLBACK (gimp_dock_window_update_title),
+                             dock_window,
+                             G_CONNECT_SWAPPED);
+    g_signal_connect_object (dock_window->p->dock_columns, "dock-removed",
+                             G_CALLBACK (gimp_dock_window_update_title),
+                             dock_window,
+                             G_CONNECT_SWAPPED);
   }
 
   if (dock_window->p->auto_follow_active)
@@ -856,8 +865,6 @@ gimp_dock_window_add_dock (GimpDockWindow *dock_window,
                               GIMP_DOCK (dock),
                               index);
 
-  /* Update window title now and when docks title is invalidated */
-  gimp_dock_window_update_title (dock_window);
   g_signal_connect_object (dock, "title-invalidated",
                            G_CALLBACK (gimp_dock_window_update_title),
                            dock_window,



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