mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
GtkRadioAction: unseal private pointer
This commit is contained in:
parent
0ddeccefe9
commit
6ce52cab3c
@ -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;
|
||||
|
||||
|
@ -55,8 +55,7 @@ struct _GtkRadioAction
|
||||
GtkToggleAction parent;
|
||||
|
||||
/*< private >*/
|
||||
|
||||
GtkRadioActionPrivate *GSEAL (private_data);
|
||||
GtkRadioActionPrivate *private_data;
|
||||
};
|
||||
|
||||
struct _GtkRadioActionClass
|
||||
|
Loading…
Reference in New Issue
Block a user