app: Add gimp_image_window_get_shell()
This commit is contained in:
@ -667,6 +667,19 @@ gimp_image_window_add_shell (GimpImageWindow *window,
|
|||||||
gtk_widget_show (GTK_WIDGET (shell));
|
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
|
void
|
||||||
gimp_image_window_remove_shell (GimpImageWindow *window,
|
gimp_image_window_remove_shell (GimpImageWindow *window,
|
||||||
GimpDisplayShell *shell)
|
GimpDisplayShell *shell)
|
||||||
|
@ -51,6 +51,8 @@ GimpDockColumns * gimp_image_window_get_right_docks (GimpImageWindow *windo
|
|||||||
|
|
||||||
void gimp_image_window_add_shell (GimpImageWindow *window,
|
void gimp_image_window_add_shell (GimpImageWindow *window,
|
||||||
GimpDisplayShell *shell);
|
GimpDisplayShell *shell);
|
||||||
|
GimpDisplayShell * gimp_image_window_get_shell (GimpImageWindow *window,
|
||||||
|
gint index);
|
||||||
void gimp_image_window_remove_shell (GimpImageWindow *window,
|
void gimp_image_window_remove_shell (GimpImageWindow *window,
|
||||||
GimpDisplayShell *shell);
|
GimpDisplayShell *shell);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user