gtkuimanager: unseal private pointer

This commit is contained in:
Javier Jardón 2010-07-13 22:44:53 +02:00
parent 18a06d6b6a
commit 3ea904fa49
2 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,6 @@ struct _Node {
guint always_show_image : 1; /* used for menu items */
};
#define GTK_UI_MANAGER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_UI_MANAGER, GtkUIManagerPrivate))
struct _GtkUIManagerPrivate
{
@ -386,7 +385,9 @@ gtk_ui_manager_init (GtkUIManager *self)
guint merge_id;
GNode *node;
self->private_data = GTK_UI_MANAGER_GET_PRIVATE (self);
self->private_data = G_TYPE_INSTANCE_GET_PRIVATE (self,
GTK_TYPE_UI_MANAGER,
GtkUIManagerPrivate);
self->private_data->accel_group = gtk_accel_group_new ();

View File

@ -58,8 +58,7 @@ struct _GtkUIManager {
GObject parent;
/*< private >*/
GtkUIManagerPrivate *GSEAL (private_data);
GtkUIManagerPrivate *private_data;
};
struct _GtkUIManagerClass {