diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-06-27 20:02:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-07-09 09:30:02 +0100 |
commit | 0899ef7cc9cf73824901923143f38bb9b6d224a3 (patch) | |
tree | 16207a8837da8a89a6f4a1d1a1c23074fd29aa1d /gtk/gtkradiobutton.c | |
parent | 365919d5f6da0a8648815ca5cf5805fb88c9be16 (diff) | |
download | gtk+-0899ef7cc9cf73824901923143f38bb9b6d224a3.tar.gz |
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r-- | gtk/gtkradiobutton.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index ca221edf3d..b4f375cffb 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -132,7 +132,7 @@ static void gtk_radio_button_get_property (GObject *object, GValue *value, GParamSpec *pspec); -G_DEFINE_TYPE (GtkRadioButton, gtk_radio_button, GTK_TYPE_CHECK_BUTTON) +G_DEFINE_TYPE_WITH_PRIVATE (GtkRadioButton, gtk_radio_button, GTK_TYPE_CHECK_BUTTON) static guint group_changed_signal = 0; @@ -194,8 +194,6 @@ gtk_radio_button_class_init (GtkRadioButtonClass *class) _gtk_marshal_VOID__VOID, G_TYPE_NONE, 0); - g_type_class_add_private (class, sizeof (GtkRadioButtonPrivate)); - gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_RADIO_BUTTON_ACCESSIBLE); } @@ -204,9 +202,7 @@ gtk_radio_button_init (GtkRadioButton *radio_button) { GtkRadioButtonPrivate *priv; - radio_button->priv = G_TYPE_INSTANCE_GET_PRIVATE (radio_button, - GTK_TYPE_RADIO_BUTTON, - GtkRadioButtonPrivate); + radio_button->priv = gtk_radio_button_get_instance_private (radio_button); priv = radio_button->priv; gtk_widget_set_receives_default (GTK_WIDGET (radio_button), FALSE); |