diff options
Diffstat (limited to 'embed/ephy-history.c')
-rw-r--r-- | embed/ephy-history.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/embed/ephy-history.c b/embed/ephy-history.c index ad02c1655..7b542be76 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -247,7 +247,11 @@ page_is_obsolete (EphyNode *node, GDate *now) (node, EPHY_NODE_PAGE_PROP_LAST_VISIT); g_date_clear (&date, 1); +#if GLIB_CHECK_VERSION (2,9,0) + g_date_set_time_t (&date, last_visit); +#else g_date_set_time (&date, last_visit); +#endif return (g_date_days_between (&date, now) >= HISTORY_PAGE_OBSOLETE_DAYS); @@ -263,7 +267,11 @@ remove_obsolete_pages (EphyHistory *eb) now = time (NULL); g_date_clear (¤t_date, 1); +#if GLIB_CHECK_VERSION (2,9,0) + g_date_set_time_t (¤t_date, time (NULL)); +#else g_date_set_time (¤t_date, time (NULL)); +#endif children = ephy_node_get_children (eb->priv->pages); for (i = (int) children->len - 1; i >= 0; i--) |