[gimp] app: Add gimp_dock_window_get_docks()



commit be8e0045acb404d70c18341fdec2e675b7011f61
Author: Martin Nordholts <martinn src gnome org>
Date:   Sun Oct 25 21:50:08 2009 +0100

    app: Add gimp_dock_window_get_docks()
    
    Add gimp_dock_window_get_docks() and get rid of trailing whitespace.

 app/widgets/gimpdockwindow.c |   20 ++++++++++++++++++--
 app/widgets/gimpdockwindow.h |   21 +++++++++++----------
 2 files changed, 29 insertions(+), 12 deletions(-)
---
diff --git a/app/widgets/gimpdockwindow.c b/app/widgets/gimpdockwindow.c
index c79342e..35cdbc1 100644
--- a/app/widgets/gimpdockwindow.c
+++ b/app/widgets/gimpdockwindow.c
@@ -614,7 +614,7 @@ GimpDockWindow *
 gimp_dock_window_from_dock (GimpDock *dock)
 {
   GtkWidget *toplevel = NULL;
-  
+
   g_return_val_if_fail (GIMP_IS_DOCK (dock), NULL);
 
   toplevel = gtk_widget_get_toplevel (GTK_WIDGET (dock));
@@ -626,12 +626,28 @@ gimp_dock_window_from_dock (GimpDock *dock)
 }
 
 /**
+ * gimp_dock_window_get_docks:
+ * @dock_window:
+ *
+ * Get a list of docks in the dock window.
+ *
+ * Returns:
+ **/
+GList *
+gimp_dock_window_get_docks (GimpDockWindow *dock_window)
+{
+  g_return_val_if_fail (GIMP_IS_DOCK_WINDOW (dock_window), NULL);
+
+  return gimp_dock_columns_get_docks (dock_window->p->dock_columns);
+}
+
+/**
  * gimp_dock_window_get_dock:
  * @dock_window:
  *
  * Get the #GimpDock within the #GimpDockWindow.
  *
- * Returns: 
+ * Returns:
  **/
 GimpDock *
 gimp_dock_window_get_dock (GimpDockWindow *dock_window)
diff --git a/app/widgets/gimpdockwindow.h b/app/widgets/gimpdockwindow.h
index e3c8617..f82368b 100644
--- a/app/widgets/gimpdockwindow.h
+++ b/app/widgets/gimpdockwindow.h
@@ -55,16 +55,17 @@ struct _GimpDockWindowClass
 };
 
 
-GType               gimp_dock_window_get_type       (void) G_GNUC_CONST;
-gint                gimp_dock_window_get_id         (GimpDockWindow *dock_window);
-void                gimp_dock_window_add_dock       (GimpDockWindow *dock_window,
-                                                     GimpDock       *dock,
-                                                     gint            index);
-void                gimp_dock_window_remove_dock    (GimpDockWindow *dock_window,
-                                                     GimpDock       *dock);
-GimpUIManager     * gimp_dock_window_get_ui_manager (GimpDockWindow *dock_window);
-GimpDockWindow    * gimp_dock_window_from_dock      (GimpDock       *dock);
-GimpDock          * gimp_dock_window_get_dock       (GimpDockWindow *dock_window);
+GType               gimp_dock_window_get_type         (void) G_GNUC_CONST;
+gint                gimp_dock_window_get_id           (GimpDockWindow *dock_window);
+void                gimp_dock_window_add_dock         (GimpDockWindow *dock_window,
+                                                       GimpDock       *dock,
+                                                       gint            index);
+void                gimp_dock_window_remove_dock      (GimpDockWindow *dock_window,
+                                                       GimpDock       *dock);
+GimpUIManager     * gimp_dock_window_get_ui_manager   (GimpDockWindow *dock_window);
+GimpDockWindow    * gimp_dock_window_from_dock        (GimpDock       *dock);
+GList             * gimp_dock_window_get_docks        (GimpDockWindow *dock_window);
+GimpDock          * gimp_dock_window_get_dock         (GimpDockWindow *dock_window);
 
 
 #endif /* __GIMP_DOCK_WINDOW_H__ */



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