[gthumb] show the entry points in the registered order
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] show the entry points in the registered order
- Date: Sat, 9 Nov 2013 20:12:28 +0000 (UTC)
commit 54aadb14803061aa7e3750af15a9a04aa7b2b583
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Nov 7 15:59:58 2013 +0100
show the entry points in the registered order
gthumb/gth-main.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-main.c b/gthumb/gth-main.c
index 5ebee48..470083c 100644
--- a/gthumb/gth-main.c
+++ b/gthumb/gth-main.c
@@ -265,6 +265,9 @@ gth_main_get_all_file_sources (void)
}
+#define MAX_ENTRY_POINTS_PER_SOURCE 1000
+
+
GList *
gth_main_get_all_entry_points (void)
{
@@ -280,11 +283,11 @@ gth_main_get_all_entry_points (void)
entry_points = gth_file_source_get_entry_points (file_source);
for (scan_entry = entry_points; scan_entry; scan_entry = scan_entry->next) {
GthFileData *file_data = scan_entry->data;
- g_file_info_set_sort_order (file_data->info, sort_order);
+ g_file_info_set_sort_order (file_data->info, sort_order++);
}
list = g_list_concat (list, entry_points);
- sort_order++;
+ sort_order += MAX_ENTRY_POINTS_PER_SOURCE;
}
return list;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]