summaryrefslogtreecommitdiff
path: root/gtk/gtkframe.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r--gtk/gtkframe.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index 2e01d951e3..e5c1aad511 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -147,6 +147,7 @@ static void gtk_frame_get_preferred_width_for_height(GtkWidget *layout
G_DEFINE_TYPE_WITH_CODE (GtkFrame, gtk_frame, GTK_TYPE_BIN,
+ G_ADD_PRIVATE (GtkFrame)
G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
gtk_frame_buildable_init))
@@ -220,8 +221,6 @@ gtk_frame_class_init (GtkFrameClass *class)
class->compute_child_allocation = gtk_frame_real_compute_child_allocation;
- g_type_class_add_private (class, sizeof (GtkFramePrivate));
-
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_FRAME_ACCESSIBLE);
}
@@ -251,9 +250,7 @@ gtk_frame_init (GtkFrame *frame)
GtkFramePrivate *priv;
GtkStyleContext *context;
- frame->priv = G_TYPE_INSTANCE_GET_PRIVATE (frame,
- GTK_TYPE_FRAME,
- GtkFramePrivate);
+ frame->priv = gtk_frame_get_instance_private (frame);
priv = frame->priv;
priv->label_widget = NULL;