mirror of https://github.com/GNOME/gimp.git
(gimp_dbus_service_activate): present the toplevel not the shell
This commit is contained in:
parent
35b228144a
commit
27994481c9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue