[evolution] EPictureGallery: Sort the content by the file name
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [evolution] EPictureGallery: Sort the content by the file name
- Date: Mon, 14 Jun 2021 16:03:48 +0000 (UTC)
commit 25b1d6fe475f10879ac3d10aedeeae8591620088
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 14 18:02:49 2021 +0200
    EPictureGallery: Sort the content by the file name
    
    Rather than having the files shown in the order as found on the disk.
 src/e-util/e-picture-gallery.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/e-util/e-picture-gallery.c b/src/e-util/e-picture-gallery.c
index a3c7b09a27..0970743b6d 100644
--- a/src/e-util/e-picture-gallery.c
+++ b/src/e-util/e-picture-gallery.c
@@ -358,6 +358,7 @@ picture_gallery_constructed (GObject *object)
        icon_view = GTK_ICON_VIEW (object);
 
        list_store = gtk_list_store_new (3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING);
+       gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (list_store), COL_FILENAME_TEXT, 
GTK_SORT_ASCENDING);
        gtk_icon_view_set_model (icon_view, GTK_TREE_MODEL (list_store));
        g_object_unref (list_store);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]