[gthumb/ext] order the selected items by position
- From: Paolo Bacchilega <paobac src gnome org>
 
- To: svn-commits-list gnome org
 
- Cc: 
 
- Subject: [gthumb/ext] order the selected items by position
 
- Date: Tue,  1 Sep 2009 20:53:59 +0000 (UTC)
 
commit bc87d67d9717184d740bea8c670ec2b87e122833
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Sep 1 22:53:02 2009 +0200
    order the selected items by position
 gthumb/gth-file-selection.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-file-selection.c b/gthumb/gth-file-selection.c
index 9994851..d33d604 100644
--- a/gthumb/gth-file-selection.c
+++ b/gthumb/gth-file-selection.c
@@ -35,7 +35,12 @@ gth_file_selection_set_selection_mode (GthFileSelection *self,
 GList *
 gth_file_selection_get_selected (GthFileSelection *self)
 {
-	return GTH_FILE_SELECTION_GET_INTERFACE (self)->get_selected (self);
+	GList *items;
+
+	items = GTH_FILE_SELECTION_GET_INTERFACE (self)->get_selected (self);
+	items = g_list_sort (items, (GCompareFunc) gtk_tree_path_compare);
+
+	return items;
 }
 
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]