gtkaction: unseal private pointer

This commit is contained in:
Javier Jardón
2010-05-23 01:12:12 +02:00
parent 335549b46a
commit 8ad3afce95
2 changed files with 4 additions and 5 deletions

View File

@ -94,8 +94,6 @@
#include "gtkactivatable.h" #include "gtkactivatable.h"
#define GTK_ACTION_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_ACTION, GtkActionPrivate))
struct _GtkActionPrivate struct _GtkActionPrivate
{ {
const gchar *name; /* interned */ const gchar *name; /* interned */
@ -441,7 +439,9 @@ gtk_action_class_init (GtkActionClass *klass)
static void static void
gtk_action_init (GtkAction *action) 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->name = NULL;
action->private_data->label = NULL; action->private_data->label = NULL;

View File

@ -55,8 +55,7 @@ struct _GtkAction
GObject object; GObject object;
/*< private >*/ /*< private >*/
GtkActionPrivate *private_data;
GtkActionPrivate *GSEAL (private_data);
}; };
struct _GtkActionClass struct _GtkActionClass