Add new function gimp_display_shell_present()

Not only presents the shell's toplevel, but also makes it the active
shell in the image window.
This commit is contained in:
Michael Natterer 2009-10-04 19:24:55 +02:00
parent aa85917b1a
commit 94dcbe0e2e
2 changed files with 19 additions and 1 deletions

View File

@ -1176,6 +1176,23 @@ gimp_display_shell_get_statusbar (GimpDisplayShell *shell)
return GIMP_STATUSBAR (shell->statusbar);
}
void
gimp_display_shell_present (GimpDisplayShell *shell)
{
GimpImageWindow *window;
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
window = gimp_display_shell_get_window (shell);
if (window)
{
gimp_image_window_set_active_shell (window, shell);
gtk_window_present (GTK_WINDOW (window));
}
}
void
gimp_display_shell_reconnect (GimpDisplayShell *shell)
{

View File

@ -224,9 +224,10 @@ GtkWidget * gimp_display_shell_new (GimpDisplay *display,
GimpUIManager *popup_manager);
GimpImageWindow * gimp_display_shell_get_window (GimpDisplayShell *shell);
GimpStatusbar * gimp_display_shell_get_statusbar (GimpDisplayShell *shell);
void gimp_display_shell_present (GimpDisplayShell *shell);
void gimp_display_shell_reconnect (GimpDisplayShell *shell);
void gimp_display_shell_empty (GimpDisplayShell *shell);