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/gtklayout.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/gtklayout.c')
-rw-r--r-- | gtk/gtklayout.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index 73cdb62f2a..969865d3d5 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -161,6 +161,7 @@ static void gtk_layout_set_hadjustment_values (GtkLayout *layout); static void gtk_layout_set_vadjustment_values (GtkLayout *layout); G_DEFINE_TYPE_WITH_CODE (GtkLayout, gtk_layout, GTK_TYPE_CONTAINER, + G_ADD_PRIVATE (GtkLayout) G_IMPLEMENT_INTERFACE (GTK_TYPE_SCROLLABLE, NULL)) /* Public interface @@ -696,8 +697,6 @@ gtk_layout_class_init (GtkLayoutClass *class) container_class->add = gtk_layout_add; container_class->remove = gtk_layout_remove; container_class->forall = gtk_layout_forall; - - g_type_class_add_private (class, sizeof (GtkLayoutPrivate)); } static void @@ -831,9 +830,7 @@ gtk_layout_init (GtkLayout *layout) { GtkLayoutPrivate *priv; - layout->priv = G_TYPE_INSTANCE_GET_PRIVATE (layout, - GTK_TYPE_LAYOUT, - GtkLayoutPrivate); + layout->priv = gtk_layout_get_instance_private (layout); priv = layout->priv; priv->children = NULL; |