Raise the toplevel not the shell

This commit is contained in:
Michael Natterer 2009-10-04 18:54:20 +02:00
parent 94e8c90a5f
commit aa85917b1a
1 changed files with 6 additions and 1 deletions

View File

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