[gimp] Raise the toplevel not the shell



commit aa85917b1aa598fb8642af44de32828d494988bb
Author: Michael Natterer <mitch gimp org>
Date:   Sun Oct 4 18:54:20 2009 +0200

    Raise the toplevel not the shell

 app/actions/images-commands.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/actions/images-commands.c b/app/actions/images-commands.c
index 29183c2..9276d02 100644
--- a/app/actions/images-commands.c
+++ b/app/actions/images-commands.c
@@ -62,7 +62,12 @@ images_raise_views_cmd_callback (GtkAction *action,
           GimpDisplay *display = list->data;
 
           if (display->image == image)
-            gtk_window_present (GTK_WINDOW (display->shell));
+            {
+              GtkWidget *toplevel = gtk_widget_get_toplevel (display->shell);
+
+              if (GTK_IS_WINDOW (toplevel))
+                gtk_window_present (GTK_WINDOW (display->shell));
+            }
         }
     }
 }



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