[gimp] Bug 694026 - "Button Bar" state not retained on brushes and dynamics editor



commit 6f5b4ad1f4e97f2a5d25d8261fedbf6f256ac163
Author: Michael Natterer <mitch gimp org>
Date:   Sun Feb 17 16:46:40 2013 +0100

    Bug 694026 - "Button Bar" state not retained on brushes and dynamics editor
    
    gimp_docked_iface_get_aux_info(): always save the button bar state,
    not only if it is "false" because we cannot know the default value any
    longer (the button bar visibility used to always default to "true", so
    saving only a non-default "false" was fine).

 app/widgets/gimpdocked.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpdocked.c b/app/widgets/gimpdocked.c
index 56d8cc6..5c3d581 100644
--- a/app/widgets/gimpdocked.c
+++ b/app/widgets/gimpdocked.c
@@ -127,12 +127,13 @@ gimp_docked_iface_set_aux_info (GimpDocked *docked,
 static GList *
 gimp_docked_iface_get_aux_info (GimpDocked *docked)
 {
-  if (gimp_docked_has_button_bar (docked) &&
-      ! gimp_docked_get_show_button_bar (docked))
+  if (gimp_docked_has_button_bar (docked))
     {
+      gboolean show = gimp_docked_get_show_button_bar (docked);
+
       return g_list_append (NULL,
                             gimp_session_info_aux_new (AUX_INFO_SHOW_BUTTON_BAR,
-                                                       "false"));
+                                                       show ? "true" : "false"));
     }
 
   return NULL;


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