GtkToolItem: unseal private pointer

This commit is contained in:
Javier Jardón 2010-07-14 02:15:25 +02:00
parent c90ca18c2f
commit aedc5e967f
2 changed files with 4 additions and 3 deletions

View File

@ -91,7 +91,6 @@ enum {
PROP_ACTIVATABLE_USE_ACTION_APPEARANCE 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 struct _GtkToolItemPrivate
{ {
@ -276,7 +275,9 @@ gtk_tool_item_init (GtkToolItem *toolitem)
{ {
gtk_widget_set_can_focus (GTK_WIDGET (toolitem), FALSE); 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_horizontal = TRUE;
toolitem->priv->visible_vertical = TRUE; toolitem->priv->visible_vertical = TRUE;

View File

@ -49,7 +49,7 @@ struct _GtkToolItem
GtkBin parent; GtkBin parent;
/*< private >*/ /*< private >*/
GtkToolItemPrivate *GSEAL (priv); GtkToolItemPrivate *priv;
}; };
struct _GtkToolItemClass struct _GtkToolItemClass