[gtk+/refactor: 82/106] GtkRadioAction: unseal private pointer



commit 6ce52cab3c4a7055cb25e6f81522ae860ae58087
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Jul 7 04:42:05 2010 +0200

    GtkRadioAction: unseal private pointer

 gtk/gtkradioaction.c |    7 ++++---
 gtk/gtkradioaction.h |    3 +--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkradioaction.c b/gtk/gtkradioaction.c
index ac31219..0f658a9 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;
 
diff --git a/gtk/gtkradioaction.h b/gtk/gtkradioaction.h
index e0f5df1..5216d5d 100644
--- a/gtk/gtkradioaction.h
+++ b/gtk/gtkradioaction.h
@@ -55,8 +55,7 @@ struct _GtkRadioAction
   GtkToggleAction parent;
 
   /*< private >*/
-
-  GtkRadioActionPrivate *GSEAL (private_data);
+  GtkRadioActionPrivate *private_data;
 };
 
 struct _GtkRadioActionClass



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]