Commit c90ca18c authored by Javier Jardón's avatar Javier Jardón

GtkToggleToolButton: unseal private pointer

parent 87b0f024
......@@ -45,8 +45,6 @@ enum {
};
#define GTK_TOGGLE_TOOL_BUTTON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_TOGGLE_TOOL_BUTTON, GtkToggleToolButtonPrivate))
struct _GtkToggleToolButtonPrivate
{
guint active : 1;
......@@ -140,7 +138,9 @@ gtk_toggle_tool_button_init (GtkToggleToolButton *button)
GtkToolButton *tool_button = GTK_TOOL_BUTTON (button);
GtkToggleButton *toggle_button = GTK_TOGGLE_BUTTON (_gtk_tool_button_get_button (tool_button));
button->priv = GTK_TOGGLE_TOOL_BUTTON_GET_PRIVATE (button);
button->priv = G_TYPE_INSTANCE_GET_PRIVATE (button,
GTK_TYPE_TOGGLE_TOOL_BUTTON,
GtkToggleToolButtonPrivate);
/* If the real button is a radio button, it may have been
* active at the time it was created.
......
......@@ -47,7 +47,7 @@ struct _GtkToggleToolButton
GtkToolButton parent;
/*< private >*/
GtkToggleToolButtonPrivate *GSEAL (priv);
GtkToggleToolButtonPrivate *priv;
};
struct _GtkToggleToolButtonClass
......
......@@ -292,7 +292,7 @@ gtk_tool_button_init (GtkToolButton *button,
button->priv = G_TYPE_INSTANCE_GET_PRIVATE (button,
GTK_TYPE_TOOL_BUTTON,
GtkToolButtonPriv);
GtkToolButtonPrivate);
button->priv->contents_invalid = TRUE;
......
Markdown is supported
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