summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentmanager.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-07-08 02:05:32 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-13 19:40:49 +0200
commitf17a34599804d1c891b75cc35cb9ff030e705e46 (patch)
tree39eea3cec166cb4ee4e63220aabda543fa523f6e /gtk/gtkrecentmanager.c
parentc1da2a92042cbd0967feb0b57c7d572408610858 (diff)
downloadgtk+-f17a34599804d1c891b75cc35cb9ff030e705e46.tar.gz
gtkrecentmanager: unseal private pointer
Diffstat (limited to 'gtk/gtkrecentmanager.c')
-rw-r--r--gtk/gtkrecentmanager.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 83642357e0..7fe3d352e4 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -84,7 +84,6 @@ struct _GtkRecentInfo
gint ref_count;
};
-#define GTK_RECENT_MANAGER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerPrivate))
struct _GtkRecentManagerPrivate
{
@@ -276,8 +275,11 @@ gtk_recent_manager_init (GtkRecentManager *manager)
{
GtkRecentManagerPrivate *priv;
- manager->priv = priv = GTK_RECENT_MANAGER_GET_PRIVATE (manager);
-
+ manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager,
+ GTK_TYPE_RECENT_MANAGER,
+ GtkRecentManagerPrivate);
+ priv = manager->priv;
+
priv->limit = DEFAULT_LIMIT;
priv->size = 0;