From 75d6a2c0663717aaece28c151349e018516279a5 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 7 Feb 2017 09:37:58 +0000 Subject: implemented multiple signatures in one account. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3527 ee746299-78ed-0310-b773-934348b2243d --- libsylph/prefs_account.c | 21 ++++++++++++++++++++- libsylph/prefs_account.h | 6 +++++- 2 files changed, 25 insertions(+), 2 deletions(-) (limited to 'libsylph') diff --git a/libsylph/prefs_account.c b/libsylph/prefs_account.c index eeeef5b9..1aecba9c 100644 --- a/libsylph/prefs_account.c +++ b/libsylph/prefs_account.c @@ -1,6 +1,6 @@ /* * LibSylph -- E-Mail client library - * Copyright (C) 1999-2014 Hiroyuki Yamamoto + * Copyright (C) 1999-2017 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -83,7 +83,26 @@ static PrefParam param[] = { {"signature_type", "2", &tmp_ac_prefs.sig_type, P_ENUM}, {"signature_path", "~" G_DIR_SEPARATOR_S DEFAULT_SIGNATURE, &tmp_ac_prefs.sig_path, P_STRING}, + {"signature_name", NULL, &tmp_ac_prefs.sig_names[0], P_STRING}, + {"signature_name2", NULL, &tmp_ac_prefs.sig_names[1], P_STRING}, + {"signature_name3", NULL, &tmp_ac_prefs.sig_names[2], P_STRING}, + {"signature_name4", NULL, &tmp_ac_prefs.sig_names[3], P_STRING}, + {"signature_name5", NULL, &tmp_ac_prefs.sig_names[4], P_STRING}, + {"signature_name6", NULL, &tmp_ac_prefs.sig_names[5], P_STRING}, + {"signature_name7", NULL, &tmp_ac_prefs.sig_names[6], P_STRING}, + {"signature_name8", NULL, &tmp_ac_prefs.sig_names[7], P_STRING}, + {"signature_name9", NULL, &tmp_ac_prefs.sig_names[8], P_STRING}, + {"signature_name10", NULL, &tmp_ac_prefs.sig_names[9], P_STRING}, {"signature_text", NULL, &tmp_ac_prefs.sig_text, P_STRING}, + {"signature_text2", NULL, &tmp_ac_prefs.sig_texts[1], P_STRING}, + {"signature_text3", NULL, &tmp_ac_prefs.sig_texts[2], P_STRING}, + {"signature_text4", NULL, &tmp_ac_prefs.sig_texts[3], P_STRING}, + {"signature_text5", NULL, &tmp_ac_prefs.sig_texts[4], P_STRING}, + {"signature_text6", NULL, &tmp_ac_prefs.sig_texts[5], P_STRING}, + {"signature_text7", NULL, &tmp_ac_prefs.sig_texts[6], P_STRING}, + {"signature_text8", NULL, &tmp_ac_prefs.sig_texts[7], P_STRING}, + {"signature_text9", NULL, &tmp_ac_prefs.sig_texts[8], P_STRING}, + {"signature_text10", NULL, &tmp_ac_prefs.sig_texts[9], P_STRING}, {"signature_before_quote", "FALSE", &tmp_ac_prefs.sig_before_quote, P_BOOL}, {"set_autocc", "FALSE", &tmp_ac_prefs.set_autocc, P_BOOL}, diff --git a/libsylph/prefs_account.h b/libsylph/prefs_account.h index c8e37803..ad899f87 100644 --- a/libsylph/prefs_account.h +++ b/libsylph/prefs_account.h @@ -1,6 +1,6 @@ /* * LibSylph -- E-Mail client library - * Copyright (C) 1999-2014 Hiroyuki Yamamoto + * Copyright (C) 1999-2017 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -183,6 +183,10 @@ struct _PrefsAccount /* Privacy */ gboolean encrypt_to_self; + + /* Compose */ + gchar *sig_names[10]; + gchar *sig_texts[10]; }; PrefsAccount *prefs_account_new (void); -- cgit v1.2.3