[gimp] app: Add gimp_image_window_get_shell()



commit 19baff1a50d76a99e805464860cefced1208613a
Author: Martin Nordholts <martinn src gnome org>
Date:   Sun Oct 25 21:57:14 2009 +0100

    app: Add gimp_image_window_get_shell()

 app/display/gimpimagewindow.c |   13 +++++++++++++
 app/display/gimpimagewindow.h |    2 ++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index 62062d1..3424e06 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -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)
diff --git a/app/display/gimpimagewindow.h b/app/display/gimpimagewindow.h
index c226a0f..cdf3b0d 100644
--- a/app/display/gimpimagewindow.h
+++ b/app/display/gimpimagewindow.h
@@ -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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]