mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 16:30:15 +00:00
box: Add a way to get the gadget
This will be used in GtkButtonBox.
This commit is contained in:
parent
acd339a9a5
commit
d81f8c1025
@ -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 box’s orientation.
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user