aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-accounts.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-05-31 05:41:42 +0800
committerDan Winship <danw@src.gnome.org>2001-05-31 05:41:42 +0800
commit2bb495b6eb8e1e7e2c22691a5b3891879baa5f76 (patch)
tree4c9d5c1954d25335d1494a67358e1ef31487729c /mail/mail-accounts.c
parentf40024c7265dcd7dbbb667647f05ed8a64fb83e7 (diff)
downloadgsoc2013-evolution-2bb495b6eb8e1e7e2c22691a5b3891879baa5f76.tar.gz
gsoc2013-evolution-2bb495b6eb8e1e7e2c22691a5b3891879baa5f76.tar.zst
gsoc2013-evolution-2bb495b6eb8e1e7e2c22691a5b3891879baa5f76.zip
Rename the "PGP" page back to "Other" and add a "default charset" option
* mail-config.glade: Rename the "PGP" page back to "Other" and add a "default charset" option menu. * mail-config.c (config_read, mail_config_write_on_exit, mail_config_get_default_charset, mail_config_set_default_charset): Handle "default charset". * mail-accounts.c (construct): Fill in the "default_charset" menu with an e_charset_picker menu. (charset_menu_deactivate): Update the default charset. svn path=/trunk/; revision=10057
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r--mail/mail-accounts.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index b98a426eb9..78317336cd 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -30,6 +30,7 @@
#include <libgnomeui/gnome-stock.h>
#include <camel/camel-url.h>
#include <camel/camel-pgp-context.h>
+#include <gal/widgets/e-charset-picker.h>
#include "mail-accounts.h"
#include "mail-config.h"
@@ -549,10 +550,22 @@ attach_forward_style_signal (GtkWidget *item, gpointer data)
}
static void
+charset_menu_deactivate (GtkWidget *menu, gpointer data)
+{
+ char *charset;
+
+ charset = e_charset_picker_get_charset (menu);
+ if (charset) {
+ mail_config_set_default_charset (charset);
+ g_free (charset);
+ }
+}
+
+static void
construct (MailAccountsDialog *dialog)
{
GladeXML *gui;
- GtkWidget *notebook;
+ GtkWidget *notebook, *menu;
int num;
gui = glade_xml_new (EVOLUTION_GLADEDIR "/mail-config.glade", NULL);
@@ -654,6 +667,7 @@ construct (MailAccountsDialog *dialog)
gtk_container_foreach (GTK_CONTAINER (gtk_option_menu_get_menu (dialog->forward_style)),
attach_forward_style_signal, &num);
+ /* Other page */
dialog->pgp_path = GNOME_FILE_ENTRY (glade_xml_get_widget (gui, "filePgpPath"));
gtk_entry_set_text (GTK_ENTRY (gnome_file_entry_gtk_entry (dialog->pgp_path)),
mail_config_get_pgp_path ());
@@ -661,6 +675,12 @@ construct (MailAccountsDialog *dialog)
gtk_signal_connect (GTK_OBJECT (gnome_file_entry_gtk_entry (dialog->pgp_path)),
"changed", GTK_SIGNAL_FUNC (pgp_path_changed), dialog);
+ dialog->charset = GTK_OPTION_MENU (glade_xml_get_widget (gui, "omenuCharset"));
+ menu = e_charset_picker_new (mail_config_get_default_charset ());
+ gtk_option_menu_set_menu (dialog->charset, menu);
+ gtk_signal_connect (GTK_OBJECT (menu), "deactivate",
+ GTK_SIGNAL_FUNC (charset_menu_deactivate), NULL);
+
/* now to fill in the clists */
dialog->accounts_row = -1;
dialog->accounts = mail_config_get_accounts ();
='insertions'>+11 * Correct owner for data directories (news:news)johans2014-08-312-31/+39 * - Stagifyjohans2014-08-276-157/+270 * Berkeley DB cleanup, remove versions 4.0 ... 4.7.mandree2014-08-221-1/+1 * Reset maintainership for ports not staged with no pending PRbapt2014-07-251-1/+1 * Fix some non default LIB_DEPENDSbapt2014-07-161-2/+2 * Convert all :U to :tu and :L to :tlbapt2014-05-051-5/+2 * - Tell bmake we use the old :L :U modifiersfluffy2013-12-311-0/+3 * - Missed new etc files.fluffy2013-11-181-1/+2 * - Fix MLINKSfluffy2013-11-181-2/+3 * - Oops, forgot about MAN section during update :(fluffy2013-11-181-9/+10 * - Update to 2.5.3 security releasefluffy2013-11-177-130/+42 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-5/+2 * - convert to the new perl5 frameworkaz2013-09-141-2/+1 * - Fix innd/nnrpd semget failuresfluffy2012-09-022-1/+74 * news/inn: fix plaintext command injection, CVE-2012-3523rea2012-08-272-1/+62 * Move the rc.d scripts of the form *.sh.in to *.indougb2012-08-062-1/+1 * - Fix typofluffy2012-07-08