summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitem.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-07-14 02:15:25 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-14 02:24:58 +0200
commitaedc5e967f0437b28cb230f98ea9dbff6efad5e3 (patch)
tree55ae3696ade637d611748f45eae141983cdbc2c4 /gtk/gtktoolitem.c
parentc90ca18c2f2a6bbe3e455c339aa4a64a153c3402 (diff)
downloadgtk+-aedc5e967f0437b28cb230f98ea9dbff6efad5e3.tar.gz
GtkToolItem: unseal private pointer
Diffstat (limited to 'gtk/gtktoolitem.c')
-rw-r--r--gtk/gtktoolitem.c5
1 files changed, 3 insertions, 2 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;