diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-07-14 01:58:29 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-14 01:58:29 +0200 |
commit | a2fef51b6486c3ba26a6837718944715d3b27a21 (patch) | |
tree | 0d74dd3cfe233b149791cd6a707d629e3b1fe7d9 | |
parent | 461f055da615efdb2f6a9c3961abdf21bf49cfa7 (diff) | |
download | gtk+-a2fef51b6486c3ba26a6837718944715d3b27a21.tar.gz |
GtkToolButton: unseal private pointer
-rw-r--r-- | gtk/gtktoolbutton.c | 7 | ||||
-rw-r--r-- | gtk/gtktoolbutton.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index 6cbd954acd..7f17084f2a 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -106,7 +106,6 @@ static GObjectClass *parent_class = NULL; static GtkActivatableIface *parent_activatable_iface; static guint toolbutton_signals[LAST_SIGNAL] = { 0 }; -#define GTK_TOOL_BUTTON_GET_PRIVATE(obj)(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_TOOL_BUTTON, GtkToolButtonPrivate)) GType gtk_tool_button_get_type (void) @@ -290,8 +289,10 @@ gtk_tool_button_init (GtkToolButton *button, GtkToolButtonClass *klass) { GtkToolItem *toolitem = GTK_TOOL_ITEM (button); - - button->priv = GTK_TOOL_BUTTON_GET_PRIVATE (button); + + button->priv = G_TYPE_INSTANCE_GET_PRIVATE (button, + GTK_TYPE_TOOL_BUTTON, + GtkToolButtonPriv); button->priv->contents_invalid = TRUE; diff --git a/gtk/gtktoolbutton.h b/gtk/gtktoolbutton.h index e9ba386a16..3783e70657 100644 --- a/gtk/gtktoolbutton.h +++ b/gtk/gtktoolbutton.h @@ -47,7 +47,7 @@ struct _GtkToolButton GtkToolItem parent; /*< private >*/ - GtkToolButtonPrivate *GSEAL (priv); + GtkToolButtonPrivate *priv; }; struct _GtkToolButtonClass |