[gtk+/refactor: 1/106] gtkaction: unseal private pointer
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 1/106] gtkaction: unseal private pointer
- Date: Tue, 13 Jul 2010 17:30:05 +0000 (UTC)
commit 2c2b4ddf02f570dda93afb4b5e53cdc69093c910
Author: Javier Jardón <jjardon gnome org>
Date: Sun May 23 01:12:12 2010 +0200
gtkaction: unseal private pointer
gtk/gtkaction.c | 6 +++---
gtk/gtkaction.h | 3 +--
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkaction.c b/gtk/gtkaction.c
index 8902684..dfa89ae 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 999c38f..1920c74 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]