summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentchoosermenu.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-07-08 01:56:13 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-13 19:40:49 +0200
commit3dfaf72745bf2d6b7059e32ffb856129a37a0bec (patch)
tree09f21d1d6083a7e9a4a6ec81388c0017e1218292 /gtk/gtkrecentchoosermenu.c
parent37a499cea64d4d9a0180c37b902cab87e94e242d (diff)
downloadgtk+-3dfaf72745bf2d6b7059e32ffb856129a37a0bec.tar.gz
gtkrecentchoosermenu: unseal private pointer
Diffstat (limited to 'gtk/gtkrecentchoosermenu.c')
-rw-r--r--gtk/gtkrecentchoosermenu.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkrecentchoosermenu.c b/gtk/gtkrecentchoosermenu.c
index b328e12f84..3a11e83786 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;