GtkToggleToolButton: unseal private pointer

This commit is contained in:
Javier Jardón 2010-07-14 02:13:29 +02:00
parent 87b0f02403
commit c90ca18c2f
3 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -47,7 +47,7 @@ struct _GtkToggleToolButton
GtkToolButton parent;
/*< private >*/
GtkToggleToolButtonPrivate *GSEAL (priv);
GtkToggleToolButtonPrivate *priv;
};
struct _GtkToggleToolButtonClass

View File

@ -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;