Fix last commit, and complete the gtk-recent-files-max-age semantics: if

2008-04-15  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_real_changed): Fix last commit, and
	complete the gtk-recent-files-max-age semantics: if the
	property is set to 0 then purge the list.

svn path=/trunk/; revision=20007
This commit is contained in:
Emmanuele Bassi 2008-04-15 22:46:15 +00:00 committed by Emmanuele Bassi
parent beb54a9b39
commit 7b93b76efa
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-04-15 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c:
(gtk_recent_manager_real_changed): Fix last commit, and
complete the gtk-recent-files-max-age semantics: if the
property is set to 0 then purge the list.
2008-04-15 Emmanuele Bassi <ebassi@gnome.org>
Bug 488507 boundless growth of .recently-used.xbel file

View File

@ -401,6 +401,13 @@ gtk_recent_manager_real_changed (GtkRecentManager *manager)
g_object_get (G_OBJECT (settings), "gtk-recent-files-max-age", &age, NULL);
if (age > 0)
gtk_recent_manager_clamp_to_age (manager, age);
else if (age == 0)
{
g_bookmark_file_free (priv->recent_items);
priv->recent_items = NULL;
priv->recent_items = g_bookmark_file_new ();
}
}
write_error = NULL;