[gimp] Bug 754713 - On-canvas dialog of color picker tool always displays...



commit df2a48590749901b1652d1357388dbc2a3338e87
Author: Michael Natterer <mitch gimp org>
Date:   Tue Sep 8 21:53:24 2015 +0200

    Bug 754713 - On-canvas dialog of color picker tool always displays...
    
    ...in initially active tab
    
    gimp_tool_gui_update_shell(): implement the "overlay" case and hide the
    gui on the previous shell, then show it on the new one.

 app/display/gimptoolgui.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimptoolgui.c b/app/display/gimptoolgui.c
index 16a4419..e12bb30 100644
--- a/app/display/gimptoolgui.c
+++ b/app/display/gimptoolgui.c
@@ -785,7 +785,17 @@ gimp_tool_gui_update_shell (GimpToolGui *gui)
 {
   GimpToolGuiPrivate *private = GET_PRIVATE (gui);
 
-  if (! private->overlay)
+  if (private->overlay)
+    {
+      if (gtk_widget_get_parent (private->dialog))
+        {
+          gimp_tool_gui_hide (gui);
+
+          if (private->shell)
+            gimp_tool_gui_show (gui);
+        }
+    }
+  else
     {
       gimp_tool_dialog_set_shell (GIMP_TOOL_DIALOG (private->dialog),
                                   private->shell);


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