summaryrefslogtreecommitdiff
path: root/gtk/gtkradioaction.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-07-07 04:42:05 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-13 19:40:49 +0200
commit6ce52cab3c4a7055cb25e6f81522ae860ae58087 (patch)
tree4614b8488127c14228b7e637ad58e96481949876 /gtk/gtkradioaction.c
parent0ddeccefe9a235ec1a6fd41f51973662f7d926c6 (diff)
downloadgtk+-6ce52cab3c4a7055cb25e6f81522ae860ae58087.tar.gz
GtkRadioAction: unseal private pointer
Diffstat (limited to 'gtk/gtkradioaction.c')
-rw-r--r--gtk/gtkradioaction.c7
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;