From d81f8c102566e5806ebe0b8d57e3e508b10b6f60 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 18 Dec 2015 07:37:52 -0500 Subject: [PATCH] box: Add a way to get the gadget This will be used in GtkButtonBox. --- gtk/gtkbox.c | 6 ++++++ gtk/gtkboxprivate.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index bc9192b839..a99b4fd9c8 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -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. diff --git a/gtk/gtkboxprivate.h b/gtk/gtkboxprivate.h index 9628d3c306..cd997582da 100644 --- a/gtk/gtkboxprivate.h +++ b/gtk/gtkboxprivate.h @@ -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