summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-05-23 01:12:12 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-13 19:40:44 +0200
commit8ad3afce95f1f4a6c52f6b86485d8675605c39be (patch)
tree763adf4c1bc5a354e6d9d48eb4ad040a1a220c23
parent335549b46a60408a0e58cb2dcded57d29bb0a087 (diff)
downloadgtk+-8ad3afce95f1f4a6c52f6b86485d8675605c39be.tar.gz
gtkaction: unseal private pointer
-rw-r--r--gtk/gtkaction.c6
-rw-r--r--gtk/gtkaction.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkaction.c b/gtk/gtkaction.c
index 8902684c72..dfa89ae8db 100644
--- a/gtk/gtkaction.c
+++ b/gtk/gtkaction.c
@@ -94,8 +94,6 @@
#include "gtkactivatable.h"
-#define GTK_ACTION_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_ACTION, GtkActionPrivate))
-
struct _GtkActionPrivate
{
const gchar *name; /* interned */
@@ -441,7 +439,9 @@ gtk_action_class_init (GtkActionClass *klass)
static void
gtk_action_init (GtkAction *action)
{
- action->private_data = GTK_ACTION_GET_PRIVATE (action);
+ action->private_data = G_TYPE_INSTANCE_GET_PRIVATE (action,
+ GTK_TYPE_ACTION,
+ GtkActionPrivate);
action->private_data->name = NULL;
action->private_data->label = NULL;
diff --git a/gtk/gtkaction.h b/gtk/gtkaction.h
index 999c38f6e8..1920c74688 100644
--- a/gtk/gtkaction.h
+++ b/gtk/gtkaction.h
@@ -55,8 +55,7 @@ struct _GtkAction
GObject object;
/*< private >*/
-
- GtkActionPrivate *GSEAL (private_data);
+ GtkActionPrivate *private_data;
};
struct _GtkActionClass