mirror of https://github.com/GNOME/gimp.git
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:
parent
4acbda8b35
commit
10f6ba7774
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue