From e20b86320adb5cf9086fc37c6bd0187b5ff60a82 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 31 Mar 2006 21:20:14 +0000 Subject: [PATCH] Don't assert that the age is positive. (#336773, Morten Welinder) 2006-03-31 Matthias Clasen * gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't assert that the age is positive. (#336773, Morten Welinder) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ gtk/gtkrecentmanager.c | 4 +--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba597e3ac8..951c03968e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-31 Matthias Clasen + + * gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't + assert that the age is positive. (#336773, Morten Welinder) + 2006-03-31 Matthias Clasen * gtk/gtkicontheme.c (load_icon_data): Don't leak the keyfile diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ba597e3ac8..951c03968e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2006-03-31 Matthias Clasen + + * gtk/gtkrecentmanager.c (gtk_recent_info_get_age): Don't + assert that the age is positive. (#336773, Morten Welinder) + 2006-03-31 Matthias Clasen * gtk/gtkicontheme.c (load_icon_data): Don't leak the keyfile diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index d1ba37a0de..f4ae79fb1e 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -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));