mirror of https://github.com/GNOME/gimp.git
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:
parent
aa85917b1a
commit
94dcbe0e2e
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue