gtkrecentmanager: unseal private pointer

This commit is contained in:
Javier Jardón 2010-07-08 02:05:32 +02:00
parent c1da2a9204
commit f17a345998
2 changed files with 7 additions and 5 deletions

View File

@ -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;

View File

@ -83,10 +83,10 @@ struct _GtkRecentData
struct _GtkRecentManager
{
/*< private >*/
GObject parent_instance;
GtkRecentManagerPrivate *GSEAL (priv);
/* <private> */
GtkRecentManagerPrivate *priv;
};
struct _GtkRecentManagerClass