[gtk+] GtkExpander: unseal private pointer



commit 6fae72c419679be63c24790243e28d1cb04d2835
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Jul 14 02:01:20 2010 +0200

    GtkExpander: unseal private pointer

 gtk/gtkexpander.c |    5 +++--
 gtk/gtkexpander.h |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 23def98..d0bc602 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);
diff --git a/gtk/gtkexpander.h b/gtk/gtkexpander.h
index 11f9175..3c7a607 100644
--- a/gtk/gtkexpander.h
+++ b/gtk/gtkexpander.h
@@ -47,7 +47,7 @@ struct _GtkExpander
 {
   GtkBin              bin;
 
-  GtkExpanderPrivate *GSEAL (priv);
+  GtkExpanderPrivate *priv;
 };
 
 struct _GtkExpanderClass



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]