[gtk+/refactor: 87/106] gtkrecentchoosermenu: unseal private pointer



commit 3dfaf72745bf2d6b7059e32ffb856129a37a0bec
Author: Javier Jardón <jjardon gnome org>
Date:   Thu Jul 8 01:56:13 2010 +0200

    gtkrecentchoosermenu: unseal private pointer

 gtk/gtkrecentchoosermenu.c |   13 +++++++------
 gtk/gtkrecentchoosermenu.h |    4 ++--
 2 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkrecentchoosermenu.c b/gtk/gtkrecentchoosermenu.c
index b328e12..3a11e83 100644
--- a/gtk/gtkrecentchoosermenu.c
+++ b/gtk/gtkrecentchoosermenu.c
@@ -125,7 +125,6 @@ enum {
 #define FALLBACK_ITEM_LIMIT 	10
 #define DEFAULT_LABEL_WIDTH     30
 
-#define GTK_RECENT_CHOOSER_MENU_GET_PRIVATE(obj)	(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_RECENT_CHOOSER_MENU, GtkRecentChooserMenuPrivate))
 
 static void     gtk_recent_chooser_menu_finalize    (GObject                   *object);
 static void     gtk_recent_chooser_menu_dispose     (GObject                   *object);
@@ -266,11 +265,13 @@ static void
 gtk_recent_chooser_menu_init (GtkRecentChooserMenu *menu)
 {
   GtkRecentChooserMenuPrivate *priv;
-  
-  priv = GTK_RECENT_CHOOSER_MENU_GET_PRIVATE (menu);
-  
-  menu->priv = priv;
-  
+
+  menu->priv = G_TYPE_INSTANCE_GET_PRIVATE (menu,
+                                            GTK_TYPE_RECENT_CHOOSER_MENU,
+                                            GtkRecentChooserMenuPrivate);
+
+  priv = menu->priv;
+
   priv->show_icons= TRUE;
   priv->show_numbers = FALSE;
   priv->show_tips = FALSE;
diff --git a/gtk/gtkrecentchoosermenu.h b/gtk/gtkrecentchoosermenu.h
index c30547a..a595da7 100644
--- a/gtk/gtkrecentchoosermenu.h
+++ b/gtk/gtkrecentchoosermenu.h
@@ -43,10 +43,10 @@ typedef struct _GtkRecentChooserMenuPrivate	GtkRecentChooserMenuPrivate;
 
 struct _GtkRecentChooserMenu
 {
-  /*< private >*/
   GtkMenu parent_instance;
 
-  GtkRecentChooserMenuPrivate *GSEAL (priv);
+  /* <private> */
+  GtkRecentChooserMenuPrivate *priv;
 };
 
 struct _GtkRecentChooserMenuClass



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