diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-07-07 04:42:05 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-13 19:40:49 +0200 |
commit | 6ce52cab3c4a7055cb25e6f81522ae860ae58087 (patch) | |
tree | 4614b8488127c14228b7e637ad58e96481949876 /gtk/gtkradioaction.c | |
parent | 0ddeccefe9a235ec1a6fd41f51973662f7d926c6 (diff) | |
download | gtk+-6ce52cab3c4a7055cb25e6f81522ae860ae58087.tar.gz |
GtkRadioAction: unseal private pointer
Diffstat (limited to 'gtk/gtkradioaction.c')
-rw-r--r-- | gtk/gtkradioaction.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkradioaction.c b/gtk/gtkradioaction.c index ac31219393..0f658a9039 100644 --- a/gtk/gtkradioaction.c +++ b/gtk/gtkradioaction.c @@ -48,8 +48,6 @@ */ -#define GTK_RADIO_ACTION_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_RADIO_ACTION, GtkRadioActionPrivate)) - struct _GtkRadioActionPrivate { GSList *group; @@ -183,7 +181,10 @@ gtk_radio_action_class_init (GtkRadioActionClass *klass) static void gtk_radio_action_init (GtkRadioAction *action) { - action->private_data = GTK_RADIO_ACTION_GET_PRIVATE (action); + action->private_data = G_TYPE_INSTANCE_GET_PRIVATE (action, + GTK_TYPE_RADIO_ACTION, + GtkRadioActionPrivate); + action->private_data->group = g_slist_prepend (NULL, action); action->private_data->value = 0; |