[gimp] app: Prevent losing dockables, force multi-window mode on exit



commit 8a66f9357f58bc60e3797538796845a12bc1420a
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Jan 5 13:20:54 2010 +0100

    app: Prevent losing dockables, force multi-window mode on exit
    
    In order to prevent people from losing dockable dialogs, force
    multi-window mode on exit. This is a workaround until single-window
    mode is session managed.
    
    This idea comes from some guy in the IRC channel who I unfortunately
    forgot the name of and fail to find in the logs.

 app/gui/gui.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/app/gui/gui.c b/app/gui/gui.c
index 26844bb..bcb5a5b 100644
--- a/app/gui/gui.c
+++ b/app/gui/gui.c
@@ -562,6 +562,13 @@ gui_exit_callback (Gimp     *gimp,
   if (gimp->be_verbose)
     g_print ("EXIT: %s\n", G_STRFUNC);
 
+  /* Since single-window mode is not session managed yet, force
+   * disabling of the mode before exit to prevent loss of dockables
+   */
+  g_object_set (gui_config,
+                "single-window-mode", FALSE,
+                NULL);
+
   if (! force && gimp_displays_dirty (gimp))
     {
       gimp_dialog_factory_dialog_raise (global_dialog_factory,



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