Commit e20b8632 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 39444546
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
......
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
......
......@@ -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));
......
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