[Commits] [SCM] claws branch, master, updated. 3.16.0-99-g07b12c9

miras at claws-mail.org miras at claws-mail.org
Wed Mar 28 13:07:39 CEST 2018


The branch, master has been updated
       via  07b12c904194d30be8138ed4a1c975aba7d0aa44 (commit)
       via  8bee5dbd6bc4843e2daecab21f0f5b20404f95b8 (commit)
      from  65c35376f94c39d2b8ecbd1bc27ea6832ec4124b (commit)

Summary of changes:
 src/addressadd.c |    5 +++++
 1 file changed, 5 insertions(+)


- Log -----------------------------------------------------------------
commit 07b12c904194d30be8138ed4a1c975aba7d0aa44
Author: Michael Rasmussen <mir at datanom.net>
Date:   Wed Mar 28 13:06:26 2018 +0200

    Adapt identical behaviour to native address book. See commit 47e0437b8b
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/addressadd.c b/src/addressadd.c
index 4430baf..3370ca7 100644
--- a/src/addressadd.c
+++ b/src/addressadd.c
@@ -467,6 +467,9 @@ static void addressadd_load_data() {
 				ADDRADD_COL_PTR, fi,
 				-1);
 	}
+
+	if (gtk_tree_model_get_iter_first(model, &iter))
+                gtk_tree_selection_select_iter(sel, &iter);
 }
 #endif
 

commit 8bee5dbd6bc4843e2daecab21f0f5b20404f95b8
Author: Michael Rasmussen <mir at datanom.net>
Date:   Wed Mar 28 13:04:48 2018 +0200

    Fix broken build from commit 47e0437b8b
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/addressadd.c b/src/addressadd.c
index dda7b7a..4430baf 100644
--- a/src/addressadd.c
+++ b/src/addressadd.c
@@ -453,11 +453,13 @@ static void addressadd_load_data() {
 	GtkTreeIter iter;
 	GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(view));
 	GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(view));
+	gchar *name;
 
 	addressadd_tree_clear();
 
 	list = addressbook_dbus_get_books(&error);
 	for (; list; list = g_slist_next(list)) {
+		name = (gchar *) list->data;
 		fi = addressadd_create_folderinfo(name);
 		gtk_tree_store_append(GTK_TREE_STORE(model), &iter, NULL);
 		gtk_tree_store_set(GTK_TREE_STORE(model), &iter,

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list