[Commits] [SCM] claws branch, master, updated. 3.14.1-36-g70795ea

claws at claws-mail.org claws at claws-mail.org
Mon Dec 12 12:39:19 CET 2016


The branch, master has been updated
       via  70795ea5d1102c591a504e460c4fa71708eb86e5 (commit)
      from  3f46e81d2cc34000fd5de4b4a6c0f6f6b0afdd03 (commit)

Summary of changes:
 src/compose.c |   24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)


- Log -----------------------------------------------------------------
commit 70795ea5d1102c591a504e460c4fa71708eb86e5
Author: Paul <paul at claws-mail.org>
Date:   Mon Dec 12 11:39:16 2016 +0000

    more highlighted of automatically set header entries in Compose window
    
    fix highlighting of multiple addresses set in account prefs
    highlight From if not current account

diff --git a/src/compose.c b/src/compose.c
index 7f44aec..dd95cc6 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -2657,6 +2657,7 @@ void compose_entry_append(Compose *compose, const gchar *address,
 			while (*tmp == ' ' || *tmp == '\t')
 				tmp++;
 			compose_add_header_entry(compose, header, tmp, pref_type);
+			compose_entry_mark_default_to(compose, tmp);
 			g_free(o_tmp);
 			continue;
 		}
@@ -2669,6 +2670,7 @@ void compose_entry_append(Compose *compose, const gchar *address,
 		while (*tmp == ' ' || *tmp == '\t')
 			tmp++;
 		compose_add_header_entry(compose, header, tmp, pref_type);
+		compose_entry_mark_default_to(compose, tmp);
 		g_free(o_tmp);		
 	}
 }
@@ -8155,6 +8157,14 @@ static GtkWidget *compose_account_option_menu_create(Compose *compose)
 						       ac->address);
 				gtk_entry_set_text(GTK_ENTRY(from_name), from);
 			}
+			if (cur_account != compose->account) {
+				gtk_widget_modify_base(
+					GTK_WIDGET(from_name),
+					GTK_STATE_NORMAL, &default_to_bgcolor);
+				gtk_widget_modify_text(
+					GTK_WIDGET(from_name),
+					GTK_STATE_NORMAL, &default_to_color);
+			}
 		}
 		COMBOBOX_ADD(menu, name, ac->account_id);
 		g_free(name);
@@ -9780,29 +9790,21 @@ static void account_activated(GtkComboBox *optmenu, gpointer data)
 		compose->header_nextrow = 1;
 		compose_create_header_entry(compose);
 		
-		if (ac->set_autocc && ac->auto_cc) {
+		if (ac->set_autocc && ac->auto_cc)
 			compose_entry_append(compose, ac->auto_cc,
 						COMPOSE_CC, PREF_ACCOUNT);
-			compose_entry_mark_default_to(compose, ac->auto_cc);
-		}
-		if (ac->set_autobcc && ac->auto_bcc) {
+		if (ac->set_autobcc && ac->auto_bcc)
 			compose_entry_append(compose, ac->auto_bcc,
 						COMPOSE_BCC, PREF_ACCOUNT);
-			compose_entry_mark_default_to(compose, ac->auto_bcc);
-		}
-		if (ac->set_autoreplyto && ac->auto_replyto) {
+		if (ac->set_autoreplyto && ac->auto_replyto)
 			compose_entry_append(compose, ac->auto_replyto,
 						COMPOSE_REPLYTO, PREF_ACCOUNT);
-			compose_entry_mark_default_to(compose, ac->auto_replyto);
-		}
 		
 		for (list = saved_list; list; list = list->next) {
 			state = (HeaderEntryState *) list->data;
 
 			compose_add_header_entry(compose, state->header,
 						state->entry, state->type);
-			if (state->entry_marked)
-				compose_entry_mark_default_to(compose, state->entry);
 
 			g_free(state->header);
 			g_free(state->entry);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list