diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-06-27 20:02:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-07-09 09:30:02 +0100 |
commit | 0899ef7cc9cf73824901923143f38bb9b6d224a3 (patch) | |
tree | 16207a8837da8a89a6f4a1d1a1c23074fd29aa1d /gtk/gtkframe.c | |
parent | 365919d5f6da0a8648815ca5cf5805fb88c9be16 (diff) | |
download | gtk+-0899ef7cc9cf73824901923143f38bb9b6d224a3.tar.gz |
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r-- | gtk/gtkframe.c | 7 |
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; |