mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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:
parent
394445469e
commit
e20b86320a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user