GtkRadioAction: unseal private pointer

This commit is contained in:
Javier Jardón 2010-07-07 04:42:05 +02:00
parent 0ddeccefe9
commit 6ce52cab3c
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -55,8 +55,7 @@ struct _GtkRadioAction
GtkToggleAction parent;
/*< private >*/
GtkRadioActionPrivate *GSEAL (private_data);
GtkRadioActionPrivate *private_data;
};
struct _GtkRadioActionClass