recent-manager: Always ensure that size is reset on creation

Whenever we create a new GBookmarkFile, we need to set the size to 0.

https://bugzilla.gnome.org/show_bug.cgi?id=620065
This commit is contained in:
Emmanuele Bassi
2016-04-10 18:41:23 +01:00
parent cc08a965be
commit 9610675faf

View File

@ -480,6 +480,7 @@ gtk_recent_manager_real_changed (GtkRecentManager *manager)
{
g_bookmark_file_free (priv->recent_items);
priv->recent_items = g_bookmark_file_new ();
priv->size = 0;
}
else if (age > 0)
gtk_recent_manager_clamp_to_age (manager, age);