From 0899ef7cc9cf73824901923143f38bb9b6d224a3 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 27 Jun 2013 20:02:52 +0100 Subject: gtk: Use new macros for defining private data https://bugzilla.gnome.org/show_bug.cgi?id=702996 --- gtk/gtkfixed.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gtk/gtkfixed.c') diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c index 14c35afc84..ec3467ffe3 100644 --- a/gtk/gtkfixed.c +++ b/gtk/gtkfixed.c @@ -120,7 +120,7 @@ static void gtk_fixed_get_child_property (GtkContainer *container, GValue *value, GParamSpec *pspec); -G_DEFINE_TYPE (GtkFixed, gtk_fixed, GTK_TYPE_CONTAINER) +G_DEFINE_TYPE_WITH_PRIVATE (GtkFixed, gtk_fixed, GTK_TYPE_CONTAINER) static void gtk_fixed_class_init (GtkFixedClass *class) @@ -159,8 +159,6 @@ gtk_fixed_class_init (GtkFixedClass *class) P_("Y position of child widget"), G_MININT, G_MAXINT, 0, GTK_PARAM_READWRITE)); - - g_type_class_add_private (class, sizeof (GtkFixedPrivate)); } static GType @@ -172,7 +170,7 @@ gtk_fixed_child_type (GtkContainer *container) static void gtk_fixed_init (GtkFixed *fixed) { - fixed->priv = G_TYPE_INSTANCE_GET_PRIVATE (fixed, GTK_TYPE_FIXED, GtkFixedPrivate); + fixed->priv = gtk_fixed_get_instance_private (fixed); gtk_widget_set_has_window (GTK_WIDGET (fixed), FALSE); -- cgit v1.2.1