[gimp/gimp-2-8] Bug 678043 - Single Window Mode does not remember hide docks option



commit 34cef1f37255d1d23a72d8c63a1ba72b0a7d2721
Author: Michael Natterer <mitch gimp org>
Date:   Thu Nov 21 23:00:44 2013 +0100

    Bug 678043 - Single Window Mode does not remember hide docks option
    
    If docks are hidden and single-window-mode is active, emit
    "notify::hide-docks" manually on gimp->config in session_restore() so
    GimpImageWindow syncs its state at the right time.
    
    (cherry picked from commit 07e6dc12707a0b6aa46f776fb71491cc4c767962)

 app/gui/session.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/gui/session.c b/app/gui/session.c
index 721ede7..e3f1655 100644
--- a/app/gui/session.c
+++ b/app/gui/session.c
@@ -312,6 +312,15 @@ session_restore (Gimp *gimp)
   g_return_if_fail (GIMP_IS_GIMP (gimp));
 
   gimp_dialog_factory_restore (gimp_dialog_factory_get_singleton ());
+
+  /* make sure GimpImageWindow acts upon hide-docks at the right time,
+   * see bug #678043.
+   */
+  if (GIMP_GUI_CONFIG (gimp->config)->single_window_mode &&
+      GIMP_GUI_CONFIG (gimp->config)->hide_docks)
+    {
+      g_object_notify (G_OBJECT (gimp->config), "hide-docks");
+    }
 }
 
 void


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