From 27994481c99226a35f5dd40b8e2cc9d07a6bfdeb Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 4 Oct 2009 15:50:28 +0200 Subject: [PATCH] (gimp_dbus_service_activate): present the toplevel not the shell --- app/gui/gimpdbusservice.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/gui/gimpdbusservice.c b/app/gui/gimpdbusservice.c index 10dcba9e78..9cb230d1da 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; }