(gimp_dbus_service_activate): present the toplevel not the shell

This commit is contained in:
Michael Natterer 2009-10-04 15:50:28 +02:00
parent 35b228144a
commit 27994481c9
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}