gtkrecentmanager: unseal private pointer
This commit is contained in:
@ -84,7 +84,6 @@ struct _GtkRecentInfo
|
|||||||
gint ref_count;
|
gint ref_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GTK_RECENT_MANAGER_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerPrivate))
|
|
||||||
|
|
||||||
struct _GtkRecentManagerPrivate
|
struct _GtkRecentManagerPrivate
|
||||||
{
|
{
|
||||||
@ -276,7 +275,10 @@ gtk_recent_manager_init (GtkRecentManager *manager)
|
|||||||
{
|
{
|
||||||
GtkRecentManagerPrivate *priv;
|
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->limit = DEFAULT_LIMIT;
|
||||||
priv->size = 0;
|
priv->size = 0;
|
||||||
|
|||||||
@ -83,10 +83,10 @@ struct _GtkRecentData
|
|||||||
|
|
||||||
struct _GtkRecentManager
|
struct _GtkRecentManager
|
||||||
{
|
{
|
||||||
/*< private >*/
|
|
||||||
GObject parent_instance;
|
GObject parent_instance;
|
||||||
|
|
||||||
GtkRecentManagerPrivate *GSEAL (priv);
|
/* <private> */
|
||||||
|
GtkRecentManagerPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GtkRecentManagerClass
|
struct _GtkRecentManagerClass
|
||||||
|
|||||||
Reference in New Issue
Block a user