mirror of https://github.com/GNOME/gimp.git
app: Make gimp_dock_window_get_dock() public
This commit is contained in:
parent
3ebad746ee
commit
02c8835e2c
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue