Use the correct comparison function (kudos to Christian Persch and Claudio
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
This commit is contained in:

committed by
Emmanuele Bassi

parent
caba82cf43
commit
6f1d571c04
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
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.
|
||||
|
@ -9850,7 +9850,7 @@ recent_sort_mru (gconstpointer a,
|
||||
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
|
||||
|
@ -302,7 +302,7 @@ sort_recent_items_mru (GtkRecentInfo *a,
|
||||
{
|
||||
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
|
||||
@ -312,7 +312,7 @@ sort_recent_items_lru (GtkRecentInfo *a,
|
||||
{
|
||||
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
|
||||
|
Reference in New Issue
Block a user