2008-01-03 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the
correct comparison function (kudos to Christian Persch and
Claudio Saavedra for spotting this)
* gtk/gtkrecentchooserutils.c:
(sort_recent_items_mru),
(sort_recent_items_lru): Ditto as above.
svn path=/trunk/; revision=19302
+2008-01-03 Emmanuele Bassi <ebassi@gnome.org>
+
+ * gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the
+ correct comparison function (kudos to Christian Persch and
+ Claudio Saavedra for spotting this)
+
+ * gtk/gtkrecentchooserutils.c:
+ (sort_recent_items_mru),
+ (sort_recent_items_lru): Ditto as above.
+
2008-01-03 Johan Dahlin <johan@gnome.org>
* tests/defaultvaluetest.c: Make it pass again.
GtkRecentInfo *info_a = (GtkRecentInfo *) a;
GtkRecentInfo *info_b = (GtkRecentInfo *) b;
- return (gtk_recent_info_get_modified (info_a) < gtk_recent_info_get_modified (info_b));
+ return (gtk_recent_info_get_modified (info_b) - gtk_recent_info_get_modified (info_a));
}
static gint
{
g_assert (a != NULL && b != NULL);
- return (gtk_recent_info_get_modified (a) < gtk_recent_info_get_modified (b));
+ return gtk_recent_info_get_modified (b) - gtk_recent_info_get_modified (a);
}
static gint
{
g_assert (a != NULL && b != NULL);
- return (gtk_recent_info_get_modified (a) > gtk_recent_info_get_modified (b));
+ return -1 * (gtk_recent_info_get_modified (b) - gtk_recent_info_get_modified (a));
}
typedef struct