[gimp] app: Make gimp_dock_window_get_dock() public



commit 02c8835e2cca408d92bd59439f864b2893c9ed9f
Author: Martin Nordholts <martinn src gnome org>
Date:   Sun Sep 20 20:09:59 2009 +0200

    app: Make gimp_dock_window_get_dock() public

 app/widgets/gimpdockwindow.c |   27 +++++++++++++++++----------
 app/widgets/gimpdockwindow.h |    1 +
 2 files changed, 18 insertions(+), 10 deletions(-)
---
diff --git a/app/widgets/gimpdockwindow.c b/app/widgets/gimpdockwindow.c
index d8f073a..279330b 100644
--- a/app/widgets/gimpdockwindow.c
+++ b/app/widgets/gimpdockwindow.c
@@ -93,7 +93,6 @@ static void       gimp_dock_window_style_set         (GtkWidget             *wid
                                                       GtkStyle              *prev_style);
 static gboolean   gimp_dock_window_delete_event      (GtkWidget             *widget,
                                                       GdkEventAny           *event);
-static GimpDock * gimp_dock_window_get_dock          (GimpDockWindow        *dock_window);
 static void       gimp_dock_window_display_changed   (GimpDockWindow        *dock_window,
                                                       GimpObject            *display,
                                                       GimpContext           *context);
@@ -444,15 +443,6 @@ gimp_dock_window_delete_event (GtkWidget   *widget,
   return FALSE;
 }
 
-static GimpDock *
-gimp_dock_window_get_dock (GimpDockWindow *dock_window)
-{
-  /* Change this to return the GimpDock *inside* the GimpDockWindow
-   * once GimpDock is not a subclass of GimpDockWindow any longer
-   */
-  return GIMP_DOCK (dock_window);
-}
-
 static void
 gimp_dock_window_display_changed (GimpDockWindow *dock_window,
                                   GimpObject     *display,
@@ -551,3 +541,20 @@ gimp_dock_window_from_dock (GimpDock *dock)
   else
     return NULL;
 }
+
+/**
+ * gimp_dock_window_get_dock:
+ * @dock_window:
+ *
+ * Get the #GimpDock within the #GimpDockWindow.
+ *
+ * Returns: 
+ **/
+GimpDock *
+gimp_dock_window_get_dock (GimpDockWindow *dock_window)
+{
+  /* Change this to return the GimpDock *inside* the GimpDockWindow
+   * once GimpDock is not a subclass of GimpDockWindow any longer
+   */
+  return GIMP_DOCK (dock_window);
+}
diff --git a/app/widgets/gimpdockwindow.h b/app/widgets/gimpdockwindow.h
index 228a8a5..54a9181 100644
--- a/app/widgets/gimpdockwindow.h
+++ b/app/widgets/gimpdockwindow.h
@@ -57,6 +57,7 @@ GType               gimp_dock_window_get_type       (void) G_GNUC_CONST;
 gint                gimp_dock_window_get_id         (GimpDockWindow *dock_window);
 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);
 
 
 #endif /* __GIMP_DOCK_WINDOW_H__ */



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