[gimp] Raise the toplevel not the shell
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Raise the toplevel not the shell
- Date: Sun, 4 Oct 2009 16:54:50 +0000 (UTC)
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]