summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-04 21:45:06 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:11 -0400
commite37457adf9fa12bb65130641ccf9259e4aded785 (patch)
tree93efa28ee87f533d4d75d662da04752343c09a70 /gtk/gtkbox.c
parent5baaa76bac964f127491b34aa0afe109fa323de7 (diff)
downloadgtk+-e37457adf9fa12bb65130641ccf9259e4aded785.tar.gz
box: Remove gadget
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r--gtk/gtkbox.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index dafac31f34..ec21d9712f 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -79,7 +79,6 @@
#include "gtkbox.h"
#include "gtkboxprivate.h"
#include "gtkcontainerprivate.h"
-#include "gtkcsscustomgadgetprivate.h"
#include "gtkcssnodeprivate.h"
#include "gtkcsspositionvalueprivate.h"
#include "gtkintl.h"
@@ -117,7 +116,6 @@ typedef struct _GtkBoxChild GtkBoxChild;
struct _GtkBoxPrivate
{
GList *children;
- GtkCssGadget *gadget;
GtkOrientation orientation;
gint16 spacing;
@@ -191,17 +189,6 @@ G_DEFINE_TYPE_WITH_CODE (GtkBox, gtk_box, GTK_TYPE_CONTAINER,
G_IMPLEMENT_INTERFACE (GTK_TYPE_ORIENTABLE, NULL))
static void
-gtk_box_dispose (GObject *object)
-{
- GtkBox *box = GTK_BOX (object);
- GtkBoxPrivate *priv = box->priv;
-
- g_clear_object (&priv->gadget);
-
- G_OBJECT_CLASS (gtk_box_parent_class)->dispose (object);
-}
-
-static void
gtk_box_class_init (GtkBoxClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
@@ -210,7 +197,6 @@ gtk_box_class_init (GtkBoxClass *class)
object_class->set_property = gtk_box_set_property;
object_class->get_property = gtk_box_get_property;
- object_class->dispose = gtk_box_dispose;
widget_class->size_allocate = gtk_box_size_allocate;
widget_class->measure = gtk_box_measure;
@@ -1403,14 +1389,6 @@ gtk_box_init (GtkBox *box)
private->spacing = 0;
private->baseline_pos = GTK_BASELINE_POSITION_CENTER;
- private->gadget = gtk_css_custom_gadget_new_for_node (gtk_widget_get_css_node (GTK_WIDGET (box)),
- GTK_WIDGET (box),
- NULL,
- NULL,
- NULL,
- NULL,
- NULL);
-
_gtk_orientable_set_style_classes (GTK_ORIENTABLE (box));
}