[gimp] Bug 610588 - Show Image Selection menu items visible in SWM



commit 60e0496b1ebe9e337c9e4081ec21a9c09379ceb8
Author: Martin Nordholts <martinn src gnome org>
Date:   Wed Mar 3 07:38:50 2010 +0100

    Bug 610588 - Show Image Selection menu items visible in SWM

 app/actions/dock-actions.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/dock-actions.c b/app/actions/dock-actions.c
index 4b8226b..8a47efa 100644
--- a/app/actions/dock-actions.c
+++ b/app/actions/dock-actions.c
@@ -28,6 +28,8 @@
 #include "widgets/gimphelp-ids.h"
 #include "widgets/gimpmenudock.h"
 
+#include "display/gimpimagewindow.h"
+
 #include "actions.h"
 #include "dock-actions.h"
 #include "dock-commands.h"
@@ -126,6 +128,11 @@ dock_actions_update (GimpActionGroup *group,
        */
       window_actions_update (group, toplevel);
     }
+  else if (GIMP_IS_IMAGE_WINDOW (toplevel))
+    {
+      SET_VISIBLE ("dock-show-image-menu",    FALSE);
+      SET_VISIBLE ("dock-auto-follow-active", FALSE);
+    }
 
 #undef SET_ACTIVE
 #undef SET_VISIBLE



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