[gimp] Bug 142697 - Dock separators move between sessions



commit d7c66c66d07d40d4dca1c8089d3f671549c0efab
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 17 21:03:20 2011 +0100

    Bug 142697 - Dock separators move between sessions
    
    Removing my old and evil "fix" for the issue from 2004-06-01 seems
    to make things work as they should.

 app/widgets/gimpsessioninfo-dock.c |   31 ++-----------------------------
 1 files changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/app/widgets/gimpsessioninfo-dock.c b/app/widgets/gimpsessioninfo-dock.c
index e1ad090..1500919 100644
--- a/app/widgets/gimpsessioninfo-dock.c
+++ b/app/widgets/gimpsessioninfo-dock.c
@@ -184,33 +184,8 @@ gimp_session_info_dock_from_widget (GimpDock *dock)
     }
 
   dock_info->books = g_list_reverse (dock_info->books);
-  
-  return dock_info;
-}
 
-static void
-gimp_session_info_dock_paned_size_allocate (GtkWidget     *paned,
-                                            GtkAllocation *allocation,
-                                            gpointer       data)
-{
-  g_signal_handlers_disconnect_by_func (paned,
-                                        gimp_session_info_dock_paned_size_allocate,
-                                        data);
-
-  gtk_paned_set_position (GTK_PANED (paned), GPOINTER_TO_INT (data));
-}
-
-static void
-gimp_session_info_dock_paned_map (GtkWidget *paned,
-                                  gpointer   data)
-{
-  g_signal_handlers_disconnect_by_func (paned,
-                                        gimp_session_info_dock_paned_map,
-                                        data);
-
-  g_signal_connect_after (paned, "size-allocate",
-                          G_CALLBACK (gimp_session_info_dock_paned_size_allocate),
-                          data);
+  return dock_info;
 }
 
 void
@@ -263,9 +238,7 @@ gimp_session_info_dock_restore (GimpSessionInfoDock *dock_info,
           GtkPaned *paned = GTK_PANED (parent);
 
           if (dockbook == gtk_paned_get_child2 (paned))
-            g_signal_connect_after (paned, "map",
-                                    G_CALLBACK (gimp_session_info_dock_paned_map),
-                                    GINT_TO_POINTER (book_info->position));
+            gtk_paned_set_position (paned, book_info->position);
         }
     }
 



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