Commit aedc5e96 authored by Javier Jardón's avatar Javier Jardón
Browse files

GtkToolItem: unseal private pointer

parent c90ca18c
......@@ -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;
......
......@@ -49,7 +49,7 @@ struct _GtkToolItem
GtkBin parent;
/*< private >*/
GtkToolItemPrivate *GSEAL (priv);
GtkToolItemPrivate *priv;
};
struct _GtkToolItemClass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment