[gimp] (gimp_dbus_service_activate): present the toplevel not the shell
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] (gimp_dbus_service_activate): present the toplevel not the shell
- Date: Sun, 4 Oct 2009 13:50:49 +0000 (UTC)
commit 27994481c99226a35f5dd40b8e2cc9d07a6bfdeb
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 4 15:50:28 2009 +0200
(gimp_dbus_service_activate): present the toplevel not the shell
app/gui/gimpdbusservice.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/app/gui/gimpdbusservice.c b/app/gui/gimpdbusservice.c
index 10dcba9..9cb230d 100644
--- a/app/gui/gimpdbusservice.c
+++ b/app/gui/gimpdbusservice.c
@@ -204,7 +204,14 @@ gimp_dbus_service_activate (GimpDBusService *service,
display = gimp_container_get_first_child (service->gimp->displays);
if (display)
- gtk_window_present (GTK_WINDOW (GIMP_DISPLAY (display)->shell));
+ {
+ GtkWidget *toplevel;
+
+ toplevel = gtk_widget_get_toplevel (GIMP_DISPLAY (display)->shell);
+
+ if (GTK_IS_WINDOW (toplevel))
+ gtk_window_present (GTK_WINDOW (toplevel));
+ }
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]