summaryrefslogtreecommitdiff
path: root/gtk/gtkexpander.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-07-14 02:01:20 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-14 02:01:20 +0200
commit6fae72c419679be63c24790243e28d1cb04d2835 (patch)
treeab6028c1fe659052426225d45f7758da073815c0 /gtk/gtkexpander.c
parenta2fef51b6486c3ba26a6837718944715d3b27a21 (diff)
downloadgtk+-6fae72c419679be63c24790243e28d1cb04d2835.tar.gz
GtkExpander: unseal private pointer
Diffstat (limited to 'gtk/gtkexpander.c')
-rw-r--r--gtk/gtkexpander.c5
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);