diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-07-14 02:01:20 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-14 02:01:20 +0200 |
commit | 6fae72c419679be63c24790243e28d1cb04d2835 (patch) | |
tree | ab6028c1fe659052426225d45f7758da073815c0 /gtk/gtkexpander.c | |
parent | a2fef51b6486c3ba26a6837718944715d3b27a21 (diff) | |
download | gtk+-6fae72c419679be63c24790243e28d1cb04d2835.tar.gz |
GtkExpander: unseal private pointer
Diffstat (limited to 'gtk/gtkexpander.c')
-rw-r--r-- | gtk/gtkexpander.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 23def98d78..d0bc6025e4 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -35,7 +35,6 @@ #include <gdk/gdkkeysyms.h> #include "gtkdnd.h" -#define GTK_EXPANDER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_EXPANDER, GtkExpanderPrivate)) #define DEFAULT_EXPANDER_SIZE 10 #define DEFAULT_EXPANDER_SPACING 2 @@ -263,7 +262,9 @@ gtk_expander_init (GtkExpander *expander) { GtkExpanderPrivate *priv; - expander->priv = priv = GTK_EXPANDER_GET_PRIVATE (expander); + expander->priv = priv = G_TYPE_INSTANCE_GET_PRIVATE (expander, + GTK_TYPE_EXPANDER, + GtkExpanderPrivate); gtk_widget_set_can_focus (GTK_WIDGET (expander), TRUE); gtk_widget_set_has_window (GTK_WIDGET (expander), FALSE); |