diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-07-08 02:05:32 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-13 19:40:49 +0200 |
commit | f17a34599804d1c891b75cc35cb9ff030e705e46 (patch) | |
tree | 39eea3cec166cb4ee4e63220aabda543fa523f6e /gtk/gtkrecentmanager.c | |
parent | c1da2a92042cbd0967feb0b57c7d572408610858 (diff) | |
download | gtk+-f17a34599804d1c891b75cc35cb9ff030e705e46.tar.gz |
gtkrecentmanager: unseal private pointer
Diffstat (limited to 'gtk/gtkrecentmanager.c')
-rw-r--r-- | gtk/gtkrecentmanager.c | 8 |
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; |