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 | |
parent | c1da2a92042cbd0967feb0b57c7d572408610858 (diff) | |
download | gtk+-f17a34599804d1c891b75cc35cb9ff030e705e46.tar.gz |
gtkrecentmanager: unseal private pointer
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkrecentmanager.c | 8 | ||||
-rw-r--r-- | gtk/gtkrecentmanager.h | 4 |
2 files changed, 7 insertions, 5 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; diff --git a/gtk/gtkrecentmanager.h b/gtk/gtkrecentmanager.h index d13fcf4148..950e53f042 100644 --- a/gtk/gtkrecentmanager.h +++ b/gtk/gtkrecentmanager.h @@ -83,10 +83,10 @@ struct _GtkRecentData struct _GtkRecentManager { - /*< private >*/ GObject parent_instance; - GtkRecentManagerPrivate *GSEAL (priv); + /* <private> */ + GtkRecentManagerPrivate *priv; }; struct _GtkRecentManagerClass |