app: Add gimp_image_window_get_shell()

This commit is contained in:
Martin Nordholts
2009-10-25 21:57:14 +01:00
parent be8e0045ac
commit 19baff1a50
2 changed files with 15 additions and 0 deletions

View File

@ -667,6 +667,19 @@ gimp_image_window_add_shell (GimpImageWindow *window,
gtk_widget_show (GTK_WIDGET (shell));
}
GimpDisplayShell *
gimp_image_window_get_shell (GimpImageWindow *window,
gint index)
{
GimpImageWindowPrivate *private;
g_return_val_if_fail (GIMP_IS_IMAGE_WINDOW (window), NULL);
private = GIMP_IMAGE_WINDOW_GET_PRIVATE (window);
return g_list_nth_data (private->shells, index);
}
void
gimp_image_window_remove_shell (GimpImageWindow *window,
GimpDisplayShell *shell)

View File

@ -51,6 +51,8 @@ GimpDockColumns * gimp_image_window_get_right_docks (GimpImageWindow *windo
void gimp_image_window_add_shell (GimpImageWindow *window,
GimpDisplayShell *shell);
GimpDisplayShell * gimp_image_window_get_shell (GimpImageWindow *window,
gint index);
void gimp_image_window_remove_shell (GimpImageWindow *window,
GimpDisplayShell *shell);