Don't assert that the age is positive. (#336773, Morten Welinder)

2006-03-31  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't
	assert that the age is positive.  (#336773, Morten Welinder)
This commit is contained in:
Matthias Clasen 2006-03-31 21:20:14 +00:00 committed by Matthias Clasen
parent 394445469e
commit e20b86320a
3 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2006-03-31 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't
assert that the age is positive. (#336773, Morten Welinder)
2006-03-31 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (load_icon_data): Don't leak the keyfile

View File

@ -1,3 +1,8 @@
2006-03-31 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't
assert that the age is positive. (#336773, Morten Welinder)
2006-03-31 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (load_icon_data): Don't leak the keyfile

View File

@ -2309,8 +2309,7 @@ gtk_recent_info_get_uri_display (GtkRecentInfo *info)
* pointed by @info.
*
* Return value: a positive integer containing the number of days elapsed
* since the time this resource was last modified. On failure, -1 is
* returned.
* since the time this resource was last modified.
*
* Since: 2.10
*/
@ -2325,7 +2324,6 @@ gtk_recent_info_get_age (GtkRecentInfo *info)
now = time (NULL);
delta = now - info->modified;
g_assert (delta >= 0);
retval = (gint) (delta / (60 * 60 * 24));