From aedc5e967f0437b28cb230f98ea9dbff6efad5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 14 Jul 2010 02:15:25 +0200 Subject: [PATCH] GtkToolItem: unseal private pointer --- gtk/gtktoolitem.c | 5 +++-- gtk/gtktoolitem.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c index eae96cea54..94b5ea8cc8 100644 --- a/gtk/gtktoolitem.c +++ b/gtk/gtktoolitem.c @@ -91,7 +91,6 @@ enum { PROP_ACTIVATABLE_USE_ACTION_APPEARANCE }; -#define GTK_TOOL_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_TOOL_ITEM, GtkToolItemPrivate)) struct _GtkToolItemPrivate { @@ -276,7 +275,9 @@ gtk_tool_item_init (GtkToolItem *toolitem) { gtk_widget_set_can_focus (GTK_WIDGET (toolitem), FALSE); - toolitem->priv = GTK_TOOL_ITEM_GET_PRIVATE (toolitem); + toolitem->priv = G_TYPE_INSTANCE_GET_PRIVATE (toolitem, + GTK_TYPE_TOOL_ITEM, + GtkToolItemPrivate); toolitem->priv->visible_horizontal = TRUE; toolitem->priv->visible_vertical = TRUE; diff --git a/gtk/gtktoolitem.h b/gtk/gtktoolitem.h index 1e1ecbfc3d..718e5f953f 100644 --- a/gtk/gtktoolitem.h +++ b/gtk/gtktoolitem.h @@ -49,7 +49,7 @@ struct _GtkToolItem GtkBin parent; /*< private >*/ - GtkToolItemPrivate *GSEAL (priv); + GtkToolItemPrivate *priv; }; struct _GtkToolItemClass