box: Add a way to get the gadget

This will be used in GtkButtonBox.
This commit is contained in:
Matthias Clasen 2015-12-18 07:37:52 -05:00
parent acd339a9a5
commit d81f8c1025
2 changed files with 9 additions and 0 deletions

View File

@ -2102,6 +2102,12 @@ gtk_box_init (GtkBox *box)
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (box));
}
GtkCssGadget *
gtk_box_get_gadget (GtkBox *box)
{
return box->priv->gadget;
}
/**
* gtk_box_new:
* @orientation: the boxs orientation.

View File

@ -20,6 +20,7 @@
#define __GTK_BOX_PRIVATE_H__
#include "gtkbox.h"
#include "gtkcssgadgetprivate.h"
G_BEGIN_DECLS
@ -30,6 +31,8 @@ void _gtk_box_set_spacing_set (GtkBox *box,
gboolean spacing_set);
GList *_gtk_box_get_children (GtkBox *box);
GtkCssGadget *gtk_box_get_gadget (GtkBox *box);
G_END_DECLS