Commit f17a3459 authored by Javier Jardón's avatar Javier Jardón

gtkrecentmanager: unseal private pointer

parent c1da2a92
......@@ -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;
......
......@@ -83,10 +83,10 @@ struct _GtkRecentData
struct _GtkRecentManager
{
/*< private >*/
GObject parent_instance;
GtkRecentManagerPrivate *GSEAL (priv);
/* <private> */
GtkRecentManagerPrivate *priv;
};
struct _GtkRecentManagerClass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment