app: Add simple utility function gimp_dock_columns_add_dock()

Add simple utility function gimp_dock_columns_add_dock(). We'll create
a more sophisticated API later.
This commit is contained in:
Martin Nordholts 2009-10-04 02:05:22 +02:00
parent 4acbda8b35
commit 10f6ba7774
2 changed files with 13 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include "widgets-types.h"
#include "gimpdock.h"
#include "gimpdockcolumns.h"
@ -52,3 +53,13 @@ gimp_dock_columns_init (GimpDockColumns *dock_columns)
GimpDockColumnsPrivate);
}
void
gimp_dock_columns_add_dock (GimpDockColumns *dock_columns,
GimpDock *dock)
{
g_return_if_fail (GIMP_IS_DOCK_COLUMNS (dock_columns));
g_return_if_fail (GIMP_IS_DOCK (dock));
gtk_box_pack_start (GTK_BOX (dock_columns), GTK_WIDGET (dock),
FALSE, TRUE, 0);
}

View File

@ -51,6 +51,8 @@ struct _GimpDockColumnsClass
GType gimp_dock_columns_get_type (void) G_GNUC_CONST;
void gimp_dock_columns_add_dock (GimpDockColumns *dock_columns,
GimpDock *dock);
#endif /* __GIMP_DOCK_COLUMNS_H__ */