[Commits] [SCM] claws branch, master, updated. 3.17.4-65-gf139e5f16

wwp at claws-mail.org wwp at claws-mail.org
Sun Nov 10 23:15:44 CET 2019


The branch, master has been updated
       via  f139e5f166b17c1c9e708ff943f6c2164e963445 (commit)
      from  f8c6182be4dea5e6fb48e67c49c5292d9f77e32f (commit)

Summary of changes:
 src/addressadd.c            | 2 ++
 src/addressbook_foldersel.c | 2 ++
 2 files changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit f139e5f166b17c1c9e708ff943f6c2164e963445
Author: wwp <subscript at free.fr>
Date:   Mon Nov 11 00:14:55 2019 +0100

    Addressbook folder selection dialogs: make sure folder list is
    sorted and apply global prefs to get stripes in lists.

diff --git a/src/addressadd.c b/src/addressadd.c
index f2b985c23..6d1c6826d 100644
--- a/src/addressadd.c
+++ b/src/addressadd.c
@@ -267,6 +267,8 @@ static void addressadd_create( void ) {
 
 	tree_folder = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
 	g_object_unref(store);
+	gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store), ADDRADD_COL_NAME, GTK_SORT_ASCENDING);
+	gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(tree_folder), prefs_common.use_stripes_everywhere);
 	gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree_folder), TRUE);
 	gtk_tree_view_set_enable_tree_lines(GTK_TREE_VIEW(tree_folder), FALSE);
 	gtk_tree_view_set_search_column(GTK_TREE_VIEW(tree_folder),
diff --git a/src/addressbook_foldersel.c b/src/addressbook_foldersel.c
index cb8cc54f8..7228b79ff 100644
--- a/src/addressbook_foldersel.c
+++ b/src/addressbook_foldersel.c
@@ -184,6 +184,8 @@ static void addressbook_foldersel_create( void )
 			GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER);
 
 	view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
+	gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(store), COL_NAME, GTK_SORT_ASCENDING);
+	gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(view), prefs_common.use_stripes_everywhere);
 	gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(view), TRUE);
 	gtk_tree_view_set_enable_tree_lines(GTK_TREE_VIEW(view), FALSE);
 	gtk_tree_view_set_search_column(GTK_TREE_VIEW(view), COL_NAME);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list