mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 00:23:47 +01:00
Fix sorting
This commit is contained in:
parent
4f3b1b257b
commit
5d490f6895
@ -830,8 +830,8 @@ plain_io_append(GiraraInputHistoryIO* db, const char* input)
|
||||
static int
|
||||
compare_time(const void* l, const void* r, void* data)
|
||||
{
|
||||
const gchar* lhs = l;
|
||||
const gchar* rhs = r;
|
||||
const gchar* lhs = *(const gchar**) l;
|
||||
const gchar* rhs = *(const gchar**) r;
|
||||
GKeyFile* keyfile = data;
|
||||
|
||||
time_t lhs_time = 0;
|
||||
@ -874,8 +874,9 @@ plain_get_recent_files(zathura_database_t* db, int max)
|
||||
}
|
||||
|
||||
for (gsize s = 0; s != groups_size; ++s) {
|
||||
girara_list_append(result, groups[s]);
|
||||
girara_list_append(result, g_strdup(groups[s]));
|
||||
}
|
||||
g_strfreev(groups);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user