/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2002 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2003 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "intl.h"
#include "main.h"
-#include "prefs.h"
+#include "prefs_gtk.h"
#include "prefs_common.h"
#include "prefs_display_header.h"
#include "prefs_summary_column.h"
#include "gtkutils.h"
#include "alertpanel.h"
#include "folder.h"
+#include "socket.h"
#include "filesel.h"
#include "folderview.h"
#include "stock_pixmap.h"
#include "quote_fmt.h"
-#if USE_PSPELL
-#include "gtkspell.h"
+#if USE_ASPELL
+#include "gtkaspell.h"
#endif
PrefsCommon prefs_common;
GtkWidget *checkbtn_newmail_manu;
GtkWidget *entry_newmail_notify_cmd;
GtkWidget *hbox_newmail_notify;
-
- GtkWidget *spinbtn_maxarticle;
- GtkObject *spinbtn_maxarticle_adj;
+ GtkWidget *optmenu_recvdialog;
+ GtkWidget *checkbtn_no_recv_err_panel;
+ GtkWidget *checkbtn_close_recv_dialog;
} receive;
static struct Send {
GtkWidget *checkbtn_savemsg;
GtkWidget *checkbtn_queuemsg;
+ GtkWidget *optmenu_senddialog;
GtkWidget *optmenu_charset;
-} send;
+ GtkWidget *optmenu_encoding_method;
+} p_send;
static struct Compose {
- GtkWidget *checkbtn_autosig;
- GtkWidget *entry_sigsep;
-
GtkWidget *entry_fw_quotemark;
GtkWidget *text_fw_quotefmt;
GtkWidget *checkbtn_forward_account_autosel;
GtkWidget *checkbtn_reedit_account_autosel;
GtkWidget *checkbtn_quote;
+ GtkWidget *checkbtn_default_reply_list;
GtkWidget *checkbtn_forward_as_attachment;
GtkWidget *checkbtn_redirect_keep_from;
GtkWidget *checkbtn_smart_wrapping;
GtkWidget *checkbtn_block_cursor;
GtkWidget *checkbtn_reply_with_quote;
+
+ GtkWidget *checkbtn_autosave;
+ GtkWidget *entry_autosave_length;
} compose;
/* spelling */
-#if USE_PSPELL
+#if USE_ASPELL
static struct Spelling {
- GtkWidget *checkbtn_enable_pspell;
- GtkWidget *entry_pspell_path;
- GtkWidget *btn_pspell_path;
+ GtkWidget *checkbtn_enable_aspell;
+ GtkWidget *entry_aspell_path;
+ GtkWidget *btn_aspell_path;
GtkWidget *optmenu_dictionary;
GtkWidget *optmenu_sugmode;
GtkWidget *misspelled_btn;
GtkWidget *entry_boldfont;
GtkWidget *chkbtn_folder_unread;
- GtkWidget *chkbtn_display_img;
GtkWidget *entry_ng_abbrev_len;
GtkWidget *spinbtn_ng_abbrev_len;
GtkObject *spinbtn_ng_abbrev_len_adj;
GtkWidget *chkbtn_transhdr;
GtkWidget *chkbtn_swapfrom;
- GtkWidget *chkbtn_hscrollbar;
GtkWidget *chkbtn_useaddrbook;
- GtkWidget *chkbtn_expand_thread;
- GtkWidget *chkbtn_bold_unread;
+ GtkWidget *chkbtn_threadsubj;
GtkWidget *entry_datefmt;
} display;
GtkWidget *spinbtn_scrollstep;
GtkObject *spinbtn_scrollstep_adj;
GtkWidget *chkbtn_halfpage;
+
+ GtkWidget *chkbtn_attach_desc;
} message;
#if USE_GPGME
GtkObject *spinbtn_store_passphrase_adj;
GtkWidget *checkbtn_passphrase_grab;
GtkWidget *checkbtn_gpg_warning;
- GtkWidget *optmenu_default_signkey;
} privacy;
#endif
static struct Interface {
/* GtkWidget *checkbtn_emacs; */
- GtkWidget *checkbtn_show_msg_with_cursor;
+ GtkWidget *checkbtn_always_show_msg;
GtkWidget *checkbtn_openunread;
+ GtkWidget *checkbtn_mark_as_read_on_newwin;
GtkWidget *checkbtn_openinbox;
GtkWidget *checkbtn_immedexec;
- GtkWidget *checkbtn_addaddrbyclick;
- GtkWidget *optmenu_recvdialog;
- GtkWidget *checkbtn_no_recv_err_panel;
GtkWidget *optmenu_nextunreadmsgdialog;
GtkWidget *entry_pixmap_theme;
GtkWidget *combo_pixmap_theme;
GtkWidget *printcmd_entry;
GtkWidget *exteditor_combo;
GtkWidget *exteditor_entry;
+
+ GtkWidget *checkbtn_addaddrbyclick;
GtkWidget *checkbtn_confonexit;
GtkWidget *checkbtn_cleanonexit;
GtkWidget *checkbtn_askonclean;
GtkWidget *checkbtn_warnqueued;
GtkWidget *checkbtn_cliplog;
GtkWidget *loglength_entry;
+#if 0
+#ifdef USE_OPENSSL
+ GtkWidget *checkbtn_ssl_ask_unknown_valid;
+#endif
+#endif
+ GtkWidget *spinbtn_iotimeout;
+ GtkObject *spinbtn_iotimeout_adj;
} other;
static struct MessageColorButtons {
GtkWidget *quote_level3_btn;
GtkWidget *uri_btn;
GtkWidget *tgt_folder_btn;
+ GtkWidget *signature_btn;
} color_buttons;
static struct KeybindDialog {
static GtkWidget *quote_color_win;
static GtkWidget *color_dialog;
-static void prefs_common_charset_set_data_from_optmenu(PrefParam *pparam);
-static void prefs_common_charset_set_optmenu (PrefParam *pparam);
-#if USE_GPGME
-static void prefs_common_default_signkey_set_data_from_optmenu
- (PrefParam *pparam);
-static void prefs_common_default_signkey_set_optmenu (PrefParam *pparam);
-#endif
+static void prefs_common_charset_set_data_from_optmenu (PrefParam *pparam);
+static void prefs_common_charset_set_optmenu (PrefParam *pparam);
+static void prefs_common_encoding_set_data_from_optmenu (PrefParam *pparam);
+static void prefs_common_encoding_set_optmenu (PrefParam *pparam);
+static void prefs_common_recv_dialog_set_data_from_optmenu (PrefParam *pparam);
+static void prefs_common_recv_dialog_set_optmenu (PrefParam *pparam);
static void prefs_common_recv_dialog_newmail_notify_toggle_cb (GtkWidget *w,
gpointer data);
static void prefs_common_recv_dialog_set_data_from_optmenu(PrefParam *pparam);
static void prefs_common_recv_dialog_set_optmenu(PrefParam *pparam);
+static void prefs_common_send_dialog_set_data_from_optmenu(PrefParam *pparam);
+static void prefs_common_send_dialog_set_optmenu(PrefParam *pparam);
static void prefs_nextunreadmsgdialog_set_data_from_optmenu(PrefParam *pparam);
static void prefs_nextunreadmsgdialog_set_optmenu(PrefParam *pparam);
-#if USE_PSPELL
+#if USE_ASPELL
static void prefs_dictionary_set_data_from_optmenu (PrefParam *param);
static void prefs_dictionary_set_optmenu (PrefParam *pparam);
static void prefs_speller_sugmode_set_data_from_optmenu (PrefParam *pparam);
{"inc_local", "TRUE", &prefs_common.inc_local, P_BOOL,
&receive.checkbtn_local,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"filter_on_inc_local", "FALSE", &prefs_common.filter_on_inc, P_BOOL,
+ {"filter_on_inc_local", "TRUE", &prefs_common.filter_on_inc, P_BOOL,
&receive.checkbtn_filter_on_inc,
prefs_set_data_from_toggle, prefs_set_toggle},
{"spool_path", DEFAULT_SPOOL_PATH, &prefs_common.spool_path, P_STRING,
{"newmail_notify_cmd", "", &prefs_common.newmail_notify_cmd, P_STRING,
&receive.entry_newmail_notify_cmd,
prefs_set_data_from_entry, prefs_set_entry},
+ {"receive_dialog_mode", "1", &prefs_common.recv_dialog_mode, P_ENUM,
+ &receive.optmenu_recvdialog,
+ prefs_common_recv_dialog_set_data_from_optmenu,
+ prefs_common_recv_dialog_set_optmenu},
+ {"no_receive_error_panel", "FALSE", &prefs_common.no_recv_err_panel,
+ P_BOOL, &receive.checkbtn_no_recv_err_panel,
+ prefs_set_data_from_toggle, prefs_set_toggle},
+ {"close_receive_dialog", "TRUE", &prefs_common.close_recv_dialog,
+ P_BOOL, &receive.checkbtn_close_recv_dialog,
+ prefs_set_data_from_toggle, prefs_set_toggle},
- {"max_news_articles", "300", &prefs_common.max_articles, P_INT,
- &receive.spinbtn_maxarticle,
- prefs_set_data_from_spinbtn, prefs_set_spinbtn},
-
/* Send */
{"use_ext_sendmail", "FALSE", &prefs_common.use_extsend, P_BOOL,
- &send.checkbtn_extsend,
+ &p_send.checkbtn_extsend,
prefs_set_data_from_toggle, prefs_set_toggle},
{"ext_sendmail_cmd", DEFAULT_SENDMAIL_CMD,
&prefs_common.extsend_cmd, P_STRING,
- &send.entry_extsend, prefs_set_data_from_entry, prefs_set_entry},
+ &p_send.entry_extsend, prefs_set_data_from_entry, prefs_set_entry},
{"save_message", "TRUE", &prefs_common.savemsg, P_BOOL,
- &send.checkbtn_savemsg,
+ &p_send.checkbtn_savemsg,
prefs_set_data_from_toggle, prefs_set_toggle},
{"queue_message", "FALSE", &prefs_common.queue_msg, P_BOOL,
- &send.checkbtn_queuemsg,
+ &p_send.checkbtn_queuemsg,
prefs_set_data_from_toggle, prefs_set_toggle},
+ {"send_dialog_mode", "0", &prefs_common.send_dialog_mode, P_ENUM,
+ &p_send.optmenu_senddialog,
+ prefs_common_send_dialog_set_data_from_optmenu,
+ prefs_common_send_dialog_set_optmenu},
{"outgoing_charset", CS_AUTO, &prefs_common.outgoing_charset, P_STRING,
- &send.optmenu_charset,
+ &p_send.optmenu_charset,
prefs_common_charset_set_data_from_optmenu,
prefs_common_charset_set_optmenu},
+ {"encoding_method", "0", &prefs_common.encoding_method, P_ENUM,
+ &p_send.optmenu_encoding_method,
+ prefs_common_encoding_set_data_from_optmenu,
+ prefs_common_encoding_set_optmenu},
/* Compose */
- {"auto_signature", "TRUE", &prefs_common.auto_sig, P_BOOL,
- &compose.checkbtn_autosig,
- prefs_set_data_from_toggle, prefs_set_toggle},
- {"signature_separator", "-- ", &prefs_common.sig_sep, P_STRING,
- &compose.entry_sigsep, prefs_set_data_from_entry, prefs_set_entry},
-
{"auto_ext_editor", "FALSE", &prefs_common.auto_exteditor, P_BOOL,
&compose.checkbtn_autoextedit,
prefs_set_data_from_toggle, prefs_set_toggle},
{"smart_wrapping", "TRUE", &prefs_common.smart_wrapping,
P_BOOL, &compose.checkbtn_smart_wrapping,
prefs_set_data_from_toggle, prefs_set_toggle},
-#if USE_PSPELL
- {"enable_pspell", "TRUE", &prefs_common.enable_pspell,
- P_BOOL, &spelling.checkbtn_enable_pspell,
+ {"autosave", "FALSE", &prefs_common.autosave,
+ P_BOOL, &compose.checkbtn_autosave,
+ prefs_set_data_from_toggle, prefs_set_toggle},
+ {"autosave_length", "50", &prefs_common.autosave_length,
+ P_INT, &compose.entry_autosave_length,
+ prefs_set_data_from_entry, prefs_set_entry},
+#if USE_ASPELL
+ {"enable_aspell", "TRUE", &prefs_common.enable_aspell,
+ P_BOOL, &spelling.checkbtn_enable_aspell,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"pspell_path", PSPELL_PATH, &prefs_common.pspell_path,
- P_STRING, &spelling.entry_pspell_path,
+ {"aspell_path", ASPELL_PATH, &prefs_common.aspell_path,
+ P_STRING, &spelling.entry_aspell_path,
prefs_set_data_from_entry, prefs_set_entry},
{"dictionary", "", &prefs_common.dictionary,
P_STRING, &spelling.optmenu_dictionary,
prefs_dictionary_set_data_from_optmenu, prefs_dictionary_set_optmenu },
- {"pspell_sugmode", "1", &prefs_common.pspell_sugmode,
+ {"aspell_sugmode", "1", &prefs_common.aspell_sugmode,
P_INT, &spelling.optmenu_sugmode,
prefs_speller_sugmode_set_data_from_optmenu, prefs_speller_sugmode_set_optmenu },
{"use_alternate_dict", "FALSE", &prefs_common.use_alternate,
{"check_while_typing", "TRUE", &prefs_common.check_while_typing,
P_BOOL, &spelling.checkbtn_check_while_typing,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"misspelled_color", "16711680", &prefs_common.misspelled_col, P_INT,
+ {"misspelled_color", "16711680", &prefs_common.misspelled_col, P_COLOR,
NULL, NULL, NULL},
#endif
{"reply_with_quote", "TRUE", &prefs_common.reply_with_quote, P_BOOL,
&compose.checkbtn_reedit_account_autosel,
prefs_set_data_from_toggle, prefs_set_toggle},
+ {"default_reply_list", "TRUE", &prefs_common.default_reply_list, P_BOOL,
+ &compose.checkbtn_default_reply_list,
+ prefs_set_data_from_toggle, prefs_set_toggle},
+
{"show_ruler", "TRUE", &prefs_common.show_ruler, P_BOOL,
NULL, NULL, NULL},
&prefs_common.display_folder_unread, P_BOOL,
&display.chkbtn_folder_unread,
prefs_set_data_from_toggle, prefs_set_toggle},
-
- {"display_img", "TRUE",
- &prefs_common.display_img, P_BOOL,
- &display.chkbtn_display_img,
- prefs_set_data_from_toggle, prefs_set_toggle},
{"newsgroup_abbrev_len", "16",
&prefs_common.ng_abbrev_len, P_INT,
&display.spinbtn_ng_abbrev_len,
{"enable_swap_from", "FALSE", &prefs_common.swap_from, P_BOOL,
&display.chkbtn_swapfrom,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"enable_hscrollbar", "TRUE", &prefs_common.enable_hscrollbar, P_BOOL,
- &display.chkbtn_hscrollbar,
- prefs_set_data_from_toggle, prefs_set_toggle},
{"use_address_book", "TRUE", &prefs_common.use_addr_book, P_BOOL,
&display.chkbtn_useaddrbook,
prefs_set_data_from_toggle, prefs_set_toggle},
+ {"thread_by_subject", "TRUE", &prefs_common.thread_by_subject, P_BOOL,
+ &display.chkbtn_threadsubj,
+ prefs_set_data_from_toggle, prefs_set_toggle},
{"date_format", "%y/%m/%d(%a) %H:%M", &prefs_common.date_format,
P_STRING, &display.entry_datefmt,
prefs_set_data_from_entry, prefs_set_entry},
- {"expand_thread", "TRUE", &prefs_common.expand_thread, P_BOOL,
- &display.chkbtn_expand_thread,
- prefs_set_data_from_toggle, prefs_set_toggle},
+
+ {"enable_hscrollbar", "TRUE", &prefs_common.enable_hscrollbar, P_BOOL,
+ NULL, NULL, NULL},
{"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
- &display.chkbtn_bold_unread,
- prefs_set_data_from_toggle, prefs_set_toggle},
+ NULL, NULL, NULL},
+ {"thread_by_subject_max_age", "10", &prefs_common.thread_by_subject_max_age,
+ P_INT, NULL, NULL, NULL },
{"enable_thread", "TRUE", &prefs_common.enable_thread, P_BOOL,
NULL, NULL, NULL},
NULL, NULL, NULL},
{"show_statusbar", "TRUE", &prefs_common.show_statusbar, P_BOOL,
NULL, NULL, NULL},
+ {"show_searchbar", "TRUE", &prefs_common.show_searchbar, P_BOOL,
+ NULL, NULL, NULL},
{"folderview_vscrollbar_policy", "0",
&prefs_common.folderview_vscrollbar_policy, P_ENUM,
{"summary_col_show_mark", "TRUE",
&prefs_common.summary_col_visible[S_COL_MARK], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_unread", "TRUE",
- &prefs_common.summary_col_visible[S_COL_UNREAD], P_BOOL, NULL, NULL, NULL},
+ &prefs_common.summary_col_visible[S_COL_STATUS], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_mime", "TRUE",
&prefs_common.summary_col_visible[S_COL_MIME], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_subject", "TRUE",
{"summary_col_pos_mark", "0",
&prefs_common.summary_col_pos[S_COL_MARK], P_INT, NULL, NULL, NULL},
{"summary_col_pos_unread", "1",
- &prefs_common.summary_col_pos[S_COL_UNREAD], P_INT, NULL, NULL, NULL},
+ &prefs_common.summary_col_pos[S_COL_STATUS], P_INT, NULL, NULL, NULL},
{"summary_col_pos_mime", "2",
&prefs_common.summary_col_pos[S_COL_MIME], P_INT, NULL, NULL, NULL},
{"summary_col_pos_subject", "3",
{"summary_col_size_mark", "10",
&prefs_common.summary_col_size[S_COL_MARK], P_INT, NULL, NULL, NULL},
{"summary_col_size_unread", "13",
- &prefs_common.summary_col_size[S_COL_UNREAD], P_INT, NULL, NULL, NULL},
+ &prefs_common.summary_col_size[S_COL_STATUS], P_INT, NULL, NULL, NULL},
{"summary_col_size_mime", "10",
&prefs_common.summary_col_size[S_COL_MIME], P_INT, NULL, NULL, NULL},
{"summary_col_size_subject", "200",
NULL, NULL, NULL},
{"messagewin_height", "540", &prefs_common.msgwin_height, P_INT,
NULL, NULL, NULL},
+ {"sourcewin_width", "600", &prefs_common.sourcewin_width, P_INT,
+ NULL, NULL, NULL},
+ {"sourcewin_height", "500", &prefs_common.sourcewin_height, P_INT,
+ NULL, NULL, NULL},
{"compose_width", "600", &prefs_common.compose_width, P_INT,
NULL, NULL, NULL},
{"compose_height", "560", &prefs_common.compose_height, P_INT,
&message.chkbtn_enablecol,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"quote_level1_color", "179", &prefs_common.quote_level1_col, P_INT,
+ {"quote_level1_color", "179", &prefs_common.quote_level1_col, P_COLOR,
NULL, NULL, NULL},
- {"quote_level2_color", "179", &prefs_common.quote_level2_col, P_INT,
+ {"quote_level2_color", "179", &prefs_common.quote_level2_col, P_COLOR,
NULL, NULL, NULL},
- {"quote_level3_color", "179", &prefs_common.quote_level3_col, P_INT,
+ {"quote_level3_color", "179", &prefs_common.quote_level3_col, P_COLOR,
NULL, NULL, NULL},
- {"uri_color", "32512", &prefs_common.uri_col, P_INT,
+ {"uri_color", "32512", &prefs_common.uri_col, P_COLOR,
NULL, NULL, NULL},
- {"target_folder_color", "14294218", &prefs_common.tgt_folder_col, P_INT,
+ {"target_folder_color", "14294218", &prefs_common.tgt_folder_col, P_COLOR,
NULL, NULL, NULL},
- {"signature_color", "0", &prefs_common.sig_col, P_USHORT,
+ {"signature_color", "7960953", &prefs_common.signature_col, P_COLOR,
NULL, NULL, NULL},
{"recycle_quote_colors", "FALSE", &prefs_common.recycle_quote_colors,
P_BOOL, NULL, NULL, NULL},
{"show_other_header", "FALSE", &prefs_common.show_other_header, P_BOOL,
NULL, NULL, NULL},
+ {"attach_desc", "TRUE", &prefs_common.attach_desc, P_BOOL,
+ &message.chkbtn_attach_desc,
+ prefs_set_data_from_toggle, prefs_set_toggle},
+
/* MIME viewer */
{"mime_image_viewer", "display '%s'",
&prefs_common.mime_image_viewer, P_STRING, NULL, NULL, NULL},
{"store_passphrase", "FALSE", &prefs_common.store_passphrase, P_BOOL,
&privacy.checkbtn_store_passphrase,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"store_passphrase_timeout", "0", &prefs_common.store_passphrase_timeout,
- P_INT, &privacy.spinbtn_store_passphrase,
+ {"store_passphrase_timeout", "0",
+ &prefs_common.store_passphrase_timeout, P_INT,
+ &privacy.spinbtn_store_passphrase,
prefs_set_data_from_spinbtn, prefs_set_spinbtn},
#ifndef __MINGW32__
{"passphrase_grab", "FALSE", &prefs_common.passphrase_grab, P_BOOL,
{"gpg_warning", "TRUE", &prefs_common.gpg_warning, P_BOOL,
&privacy.checkbtn_gpg_warning,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"default_signkey", CS_AUTO, &prefs_common.default_signkey, P_STRING,
- &privacy.optmenu_default_signkey,
- prefs_common_default_signkey_set_data_from_optmenu,
- prefs_common_default_signkey_set_optmenu},
#endif /* USE_GPGME */
/* Interface */
/* {"emulate_emacs", "FALSE", &prefs_common.emulate_emacs, P_BOOL,
NULL, NULL, NULL}, */
- {"show_message_with_cursor_key", "FALSE",
- &prefs_common.show_msg_with_cursor_key,
- P_BOOL, &interface.checkbtn_show_msg_with_cursor,
+ {"always_show_message_when_selected", "FALSE",
+ &prefs_common.always_show_msg,
+ P_BOOL, &interface.checkbtn_always_show_msg,
prefs_set_data_from_toggle, prefs_set_toggle},
{"open_unread_on_enter", "FALSE", &prefs_common.open_unread_on_enter,
P_BOOL, &interface.checkbtn_openunread,
prefs_set_data_from_toggle, prefs_set_toggle},
+ {"mark_as_read_on_new_window", "FALSE",
+ &prefs_common.mark_as_read_on_new_window,
+ P_BOOL, &interface.checkbtn_mark_as_read_on_newwin,
+ prefs_set_data_from_toggle, prefs_set_toggle},
{"open_inbox_on_inc", "FALSE", &prefs_common.open_inbox_on_inc,
P_BOOL, &interface.checkbtn_openinbox,
prefs_set_data_from_toggle, prefs_set_toggle},
{"immediate_execution", "TRUE", &prefs_common.immediate_exec, P_BOOL,
&interface.checkbtn_immedexec,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"receive_dialog_mode", "1", &prefs_common.recv_dialog_mode, P_ENUM,
- &interface.optmenu_recvdialog,
- prefs_common_recv_dialog_set_data_from_optmenu,
- prefs_common_recv_dialog_set_optmenu},
- {"no_receive_error_panel", "FALSE", &prefs_common.no_recv_err_panel,
- P_BOOL, &interface.checkbtn_no_recv_err_panel,
- prefs_set_data_from_toggle, prefs_set_toggle},
{"nextunreadmsg_dialog", NULL, &prefs_common.next_unread_msg_dialog, P_ENUM,
&interface.optmenu_nextunreadmsgdialog,
prefs_nextunreadmsgdialog_set_data_from_optmenu,
prefs_nextunreadmsgdialog_set_optmenu},
- {"add_address_by_click", "FALSE", &prefs_common.add_address_by_click,
- P_BOOL, &interface.checkbtn_addaddrbyclick,
- prefs_set_data_from_toggle, prefs_set_toggle},
{"pixmap_theme_path", DEFAULT_PIXMAP_THEME,
&prefs_common.pixmap_theme_path, P_STRING,
&interface.entry_pixmap_theme, prefs_set_data_from_entry, prefs_set_entry},
+
+ {"hover_timeout", "500", &prefs_common.hover_timeout, P_INT,
+ NULL, NULL, NULL},
/* Other */
- {"uri_open_command", "netscape -remote 'openURL(%s,raise)'",
+ {"uri_open_command", DEFAULT_BROWSER_CMD,
&prefs_common.uri_cmd, P_STRING,
&other.uri_entry, prefs_set_data_from_entry, prefs_set_entry},
{"print_command", "lpr %s", &prefs_common.print_cmd, P_STRING,
&prefs_common.ext_editor_cmd, P_STRING,
&other.exteditor_entry, prefs_set_data_from_entry, prefs_set_entry},
+ {"add_address_by_click", "FALSE", &prefs_common.add_address_by_click,
+ P_BOOL, &other.checkbtn_addaddrbyclick,
+ prefs_set_data_from_toggle, prefs_set_toggle},
+
{"confirm_on_exit", "TRUE", &prefs_common.confirm_on_exit, P_BOOL,
&other.checkbtn_confonexit,
prefs_set_data_from_toggle, prefs_set_toggle},
{"warn_queued_on_exit", "TRUE", &prefs_common.warn_queued_on_exit,
P_BOOL, &other.checkbtn_warnqueued,
prefs_set_data_from_toggle, prefs_set_toggle},
+#if 0
+#ifdef USE_OPENSSL
+ {"ssl_ask_unknown_valid", "TRUE", &prefs_common.ssl_ask_unknown_valid,
+ P_BOOL, &other.checkbtn_ssl_ask_unknown_valid,
+ prefs_set_data_from_toggle, prefs_set_toggle},
+#endif
+#endif
{"work_offline", "FALSE", &prefs_common.work_offline, P_BOOL,
NULL, NULL, NULL},
+ {"summary_quicksearch_type", "0", &prefs_common.summary_quicksearch_type, P_INT,
+ NULL, NULL, NULL},
- {"kill_score", "-9999", &prefs_common.kill_score, P_INT,
+ {"io_timeout_secs", "60", &prefs_common.io_timeout_secs,
+ P_INT, &other.spinbtn_iotimeout,
+ prefs_set_data_from_spinbtn, prefs_set_spinbtn},
+ {"hide_score", "-9999", &prefs_common.kill_score, P_INT,
NULL, NULL, NULL},
{"important_score", "1", &prefs_common.important_score, P_INT,
NULL, NULL, NULL},
- {"clip_log", "FALSE", &prefs_common.cliplog, P_BOOL,
+ {"clip_log", "TRUE", &prefs_common.cliplog, P_BOOL,
&other.checkbtn_cliplog,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"log_length", "1000", &prefs_common.loglength, P_INT,
+ {"log_length", "500", &prefs_common.loglength, P_INT,
&other.loglength_entry,
prefs_set_data_from_entry, prefs_set_entry},
{"cache_min_keep_time", "15", &prefs_common.cache_min_keep_time, P_INT,
NULL, NULL, NULL},
+ {"color_new", "179", &prefs_common.color_new, P_COLOR,
+ NULL, NULL, NULL},
+
{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
};
static void prefs_common_create (void);
static void prefs_receive_create (void);
static void prefs_send_create (void);
-static void prefs_compose_create (void);
+#ifdef USE_ASPELL
static void prefs_spelling_create (void);
+#endif
+static void prefs_compose_create (void);
static void prefs_quote_create (void);
static void prefs_display_create (void);
static void prefs_message_create (void);
static void prefs_common_apply (void);
static void prefs_common_cancel (void);
-void prefs_common_init() {
- prefs_common.fltlist = NULL;
+void prefs_common_init(void)
+{
prefs_common.disphdr_list = NULL;
}
+PrefsCommon *prefs_common_get(void)
+{
+ return &prefs_common;
+}
+
void prefs_common_read_config(void)
{
FILE *fp;
{
gint page = 0;
- debug_print(_("Creating common preferences window...\n"));
+ debug_print("Creating common preferences window...\n");
prefs_dialog_create(&dialog);
gtk_window_set_title (GTK_WINDOW(dialog.window),
SET_NOTEBOOK_LABEL(dialog.notebook, _("Send"), page++);
prefs_compose_create();
SET_NOTEBOOK_LABEL(dialog.notebook, _("Compose"), page++);
-#if USE_PSPELL
+#if USE_ASPELL
prefs_spelling_create();
SET_NOTEBOOK_LABEL(dialog.notebook, _("Spell Checker"), page++);
#endif
GtkWidget *entry_newmail_notify_cmd;
GtkWidget *label_newmail_notify_cmd;
- GtkWidget *frame_news;
- GtkWidget *label_maxarticle;
- GtkWidget *spinbtn_maxarticle;
- GtkObject *spinbtn_maxarticle_adj;
+ GtkWidget *hbox_recvdialog;
+ GtkWidget *label_recvdialog;
+ GtkWidget *menu;
+ GtkWidget *menuitem;
+ GtkWidget *optmenu_recvdialog;
+ GtkWidget *checkbtn_no_recv_err_panel;
+ GtkWidget *checkbtn_close_recv_dialog;
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
PACK_CHECK_BUTTON (vbox2, checkbtn_scan_after_inc,
_("Update all local folders after incorporation"));
+
+ /* receive dialog */
+ hbox_recvdialog = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox_recvdialog);
+ gtk_box_pack_start (GTK_BOX (vbox2), hbox_recvdialog, FALSE, FALSE, 0);
+
+ label_recvdialog = gtk_label_new (_("Show receive dialog"));
+ gtk_misc_set_alignment(GTK_MISC(label_recvdialog), 0, 0.5);
+ gtk_widget_show (label_recvdialog);
+ gtk_box_pack_start (GTK_BOX (hbox_recvdialog), label_recvdialog, FALSE, FALSE, 0);
+
+ optmenu_recvdialog = gtk_option_menu_new ();
+ gtk_widget_show (optmenu_recvdialog);
+ gtk_box_pack_start (GTK_BOX (hbox_recvdialog), optmenu_recvdialog, FALSE, FALSE, 0);
+
+ menu = gtk_menu_new ();
+ MENUITEM_ADD (menu, menuitem, _("Always"), RECV_DIALOG_ALWAYS);
+ MENUITEM_ADD (menu, menuitem, _("Only if a window is active"),
+ RECV_DIALOG_ACTIVE);
+ MENUITEM_ADD (menu, menuitem, _("Never"), RECV_DIALOG_NEVER);
+
+ gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu_recvdialog), menu);
+
+ PACK_CHECK_BUTTON (vbox2, checkbtn_no_recv_err_panel,
+ _("Don't popup error dialog on receive error"));
+
+ PACK_CHECK_BUTTON (vbox2, checkbtn_close_recv_dialog,
+ _("Close receive dialog when finished"));
PACK_FRAME(vbox1, frame_newmail, _("Run command when new mail "
"arrives"));
gtk_box_pack_start (GTK_BOX (vbox2), hbox_newmail_notify, FALSE,
FALSE, 0);
- label_newmail_notify_cmd = gtk_label_new (_("Command to execute:\n"
+ label_newmail_notify_cmd = gtk_label_new (_("Command to execute:\n"
"(use %d as number of new "
"mails)"));
gtk_label_set_justify(GTK_LABEL(label_newmail_notify_cmd),
prefs_common.newmail_notify_auto ||
prefs_common.newmail_notify_manu);
- PACK_FRAME(vbox1, frame_news, _("News"));
-
- hbox = gtk_hbox_new (FALSE, 8);
- gtk_widget_show (hbox);
- gtk_container_add (GTK_CONTAINER (frame_news), hbox);
- gtk_container_set_border_width (GTK_CONTAINER (hbox), 8);
-
- label_maxarticle = gtk_label_new
- (_("Maximum number of articles to download\n"
- "(unlimited if 0 is specified)"));
- gtk_widget_show (label_maxarticle);
- gtk_box_pack_start (GTK_BOX (hbox), label_maxarticle, FALSE, FALSE, 0);
- gtk_label_set_justify (GTK_LABEL (label_maxarticle), GTK_JUSTIFY_LEFT);
-
- spinbtn_maxarticle_adj =
- gtk_adjustment_new (300, 0, 10000, 10, 100, 100);
- spinbtn_maxarticle = gtk_spin_button_new
- (GTK_ADJUSTMENT (spinbtn_maxarticle_adj), 10, 0);
- gtk_widget_show (spinbtn_maxarticle);
- gtk_box_pack_start (GTK_BOX (hbox), spinbtn_maxarticle,
- FALSE, FALSE, 0);
- gtk_widget_set_usize (spinbtn_maxarticle, 64, -1);
- gtk_spin_button_set_numeric
- (GTK_SPIN_BUTTON (spinbtn_maxarticle), TRUE);
-
receive.checkbtn_incext = checkbtn_incext;
receive.entry_incext = entry_incext;
/* receive.button_incext = button_incext; */
receive.checkbtn_newmail_manu = checkbtn_newmail_manu;
receive.hbox_newmail_notify = hbox_newmail_notify;
receive.entry_newmail_notify_cmd = entry_newmail_notify_cmd;
-
- receive.spinbtn_maxarticle = spinbtn_maxarticle;
- receive.spinbtn_maxarticle_adj = spinbtn_maxarticle_adj;
+ receive.optmenu_recvdialog = optmenu_recvdialog;
+ receive.checkbtn_no_recv_err_panel = checkbtn_no_recv_err_panel;
+ receive.checkbtn_close_recv_dialog = checkbtn_close_recv_dialog;
}
static void prefs_send_create(void)
GtkWidget *checkbtn_savemsg;
GtkWidget *checkbtn_queuemsg;
GtkWidget *label_outcharset;
- GtkWidget *optmenu;
+ GtkWidget *optmenu_charset;
GtkWidget *optmenu_menu;
GtkWidget *menuitem;
GtkWidget *label_charset_desc;
+ GtkWidget *optmenu_encoding;
+ GtkWidget *label_encoding;
+ GtkWidget *label_encoding_desc;
+ GtkWidget *label_senddialog;
+ GtkWidget *menu;
+ GtkWidget *optmenu_senddialog;
+ GtkWidget *hbox_senddialog;
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, FALSE, 0);
PACK_CHECK_BUTTON (vbox2, checkbtn_savemsg,
- _("Save sent messages to Sent"));
+ _("Save sent messages to Sent folder"));
PACK_CHECK_BUTTON (vbox2, checkbtn_queuemsg,
_("Queue messages that fail to send"));
+ hbox_senddialog = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox1);
+ gtk_box_pack_start (GTK_BOX (vbox1), hbox_senddialog, FALSE, FALSE, 0);
+
+ label_senddialog = gtk_label_new (_("Show send dialog"));
+ gtk_widget_show (label_senddialog);
+ gtk_box_pack_start (GTK_BOX (hbox_senddialog), label_senddialog, FALSE, FALSE, 0);
+
+ optmenu_senddialog = gtk_option_menu_new ();
+ gtk_widget_show (optmenu_senddialog);
+ gtk_box_pack_start (GTK_BOX (hbox_senddialog), optmenu_senddialog, FALSE, FALSE, 0);
+
+ menu = gtk_menu_new ();
+ MENUITEM_ADD (menu, menuitem, _("Always"), SEND_DIALOG_ALWAYS);
+ MENUITEM_ADD (menu, menuitem, _("Never"), SEND_DIALOG_NEVER);
+
+ gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu_senddialog), menu);
+
hbox1 = gtk_hbox_new (FALSE, 8);
gtk_widget_show (hbox1);
gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
gtk_widget_show (label_outcharset);
gtk_box_pack_start (GTK_BOX (hbox1), label_outcharset, FALSE, FALSE, 0);
- optmenu = gtk_option_menu_new ();
- gtk_widget_show (optmenu);
- gtk_box_pack_start (GTK_BOX (hbox1), optmenu, FALSE, FALSE, 0);
+ optmenu_charset = gtk_option_menu_new ();
+ gtk_widget_show (optmenu_charset);
+ gtk_box_pack_start (GTK_BOX (hbox1), optmenu_charset, FALSE, FALSE, 0);
optmenu_menu = gtk_menu_new ();
-#define SET_MENUITEM(str, charset) \
+#define SET_MENUITEM(str, data) \
{ \
- MENUITEM_ADD(optmenu_menu, menuitem, str, charset); \
+ MENUITEM_ADD(optmenu_menu, menuitem, str, data); \
}
SET_MENUITEM(_("Automatic (Recommended)"), CS_AUTO);
SET_MENUITEM(_("7bit ascii (US-ASCII)"), CS_US_ASCII);
-#if HAVE_LIBJCONV
+#if HAVE_ICONV
SET_MENUITEM(_("Unicode (UTF-8)"), CS_UTF_8);
#endif
SET_MENUITEM(_("Western European (ISO-8859-1)"), CS_ISO_8859_1);
SET_MENUITEM(_("Baltic (ISO-8859-4)"), CS_ISO_8859_4);
SET_MENUITEM(_("Greek (ISO-8859-7)"), CS_ISO_8859_7);
SET_MENUITEM(_("Turkish (ISO-8859-9)"), CS_ISO_8859_9);
-#if HAVE_LIBJCONV
+#if HAVE_ICONV
SET_MENUITEM(_("Cyrillic (ISO-8859-5)"), CS_ISO_8859_5);
#endif
SET_MENUITEM(_("Cyrillic (KOI8-R)"), CS_KOI8_R);
-#if HAVE_LIBJCONV
+#if HAVE_ICONV
SET_MENUITEM(_("Cyrillic (Windows-1251)"), CS_WINDOWS_1251);
SET_MENUITEM(_("Cyrillic (KOI8-U)"), CS_KOI8_U);
#endif
SET_MENUITEM(_("Thai (TIS-620)"), CS_TIS_620);
SET_MENUITEM(_("Thai (Windows-874)"), CS_WINDOWS_874);
- gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu), optmenu_menu);
+ gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu_charset),
+ optmenu_menu);
hbox1 = gtk_hbox_new (FALSE, 8);
gtk_widget_show (hbox1);
gtk_widget_show (label_charset_desc);
gtk_box_pack_start (GTK_BOX (hbox1), label_charset_desc,
FALSE, FALSE, 0);
- gtk_label_set_justify(GTK_LABEL (label_charset_desc), GTK_JUSTIFY_LEFT);
+ gtk_label_set_justify (GTK_LABEL (label_charset_desc),
+ GTK_JUSTIFY_LEFT);
+
+ hbox1 = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox1);
+ gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
+
+ label_encoding = gtk_label_new (_("Transfer encoding"));
+ gtk_widget_show (label_encoding);
+ gtk_box_pack_start (GTK_BOX (hbox1), label_encoding, FALSE, FALSE, 0);
- send.checkbtn_extsend = checkbtn_extsend;
- send.entry_extsend = entry_extsend;
- /* send.button_extsend = button_extsend; */
+ optmenu_encoding = gtk_option_menu_new ();
+ gtk_widget_show (optmenu_encoding);
+ gtk_box_pack_start (GTK_BOX (hbox1), optmenu_encoding, FALSE, FALSE, 0);
- send.checkbtn_savemsg = checkbtn_savemsg;
- send.checkbtn_queuemsg = checkbtn_queuemsg;
+ optmenu_menu = gtk_menu_new ();
+
+ SET_MENUITEM(_("Automatic"), CTE_AUTO);
+ SET_MENUITEM("base64", CTE_BASE64);
+ SET_MENUITEM("quoted-printable", CTE_QUOTED_PRINTABLE);
+ SET_MENUITEM("8bit", CTE_8BIT);
+
+ gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu_encoding),
+ optmenu_menu);
+
+ hbox1 = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox1);
+ gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
- send.optmenu_charset = optmenu;
+ label_encoding_desc = gtk_label_new
+ (_("Specify Content-Transfer-Encoding used when\n"
+ "message body contains non-ASCII characters."));
+ gtk_widget_show (label_encoding_desc);
+ gtk_box_pack_start (GTK_BOX (hbox1), label_encoding_desc,
+ FALSE, FALSE, 0);
+ gtk_label_set_justify (GTK_LABEL (label_encoding_desc),
+ GTK_JUSTIFY_LEFT);
+
+ p_send.checkbtn_extsend = checkbtn_extsend;
+ p_send.entry_extsend = entry_extsend;
+ /* p_send.button_extsend = button_extsend; */
+
+ p_send.checkbtn_savemsg = checkbtn_savemsg;
+ p_send.checkbtn_queuemsg = checkbtn_queuemsg;
+ p_send.optmenu_senddialog = optmenu_senddialog;
+
+ p_send.optmenu_charset = optmenu_charset;
+ p_send.optmenu_encoding_method = optmenu_encoding;
}
static void prefs_common_recv_dialog_newmail_notify_toggle_cb(GtkWidget *w, gpointer data)
gtk_widget_set_sensitive(receive.hbox_newmail_notify, toggled);
}
-#if USE_PSPELL
+#if USE_ASPELL
static void prefs_dictionary_set_data_from_optmenu(PrefParam *param)
{
gchar *str;
g_return_if_fail(param->widget);
g_return_if_fail(*(param->widget));
- dict_fullname = gtkpspell_get_dictionary_menu_active_item
+ dict_fullname = gtkaspell_get_dictionary_menu_active_item
(gtk_option_menu_get_menu(GTK_OPTION_MENU(*(param->widget))));
str = *((gchar **) param->data);
if (str)
g_return_if_fail(param->widget);
g_return_if_fail(*(param->widget));
- sugmode = gtkpspell_get_sugmode_from_option_menu
+ sugmode = gtkaspell_get_sugmode_from_option_menu
(GTK_OPTION_MENU(*(param->widget)));
*((gint *) param->data) = sugmode;
}
g_return_if_fail(pparam->data != NULL);
sugmode = *(gint *) pparam->data;
- gtkpspell_sugmode_option_menu_set(optmenu, sugmode);
+ gtkaspell_sugmode_option_menu_set(optmenu, sugmode);
}
-static void prefs_spelling_checkbtn_enable_pspell_toggle_cb
+static void prefs_spelling_checkbtn_enable_aspell_toggle_cb
(GtkWidget *widget,
gpointer data)
{
toggled = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
- gtk_widget_set_sensitive(spelling.entry_pspell_path, toggled);
+ gtk_widget_set_sensitive(spelling.entry_aspell_path, toggled);
gtk_widget_set_sensitive(spelling.optmenu_dictionary, toggled);
gtk_widget_set_sensitive(spelling.optmenu_sugmode, toggled);
- gtk_widget_set_sensitive(spelling.btn_pspell_path, toggled);
+ gtk_widget_set_sensitive(spelling.btn_aspell_path, toggled);
gtk_widget_set_sensitive(spelling.misspelled_btn, toggled);
gtk_widget_set_sensitive(spelling.checkbtn_use_alternate, toggled);
gtk_widget_set_sensitive(spelling.checkbtn_check_while_typing, toggled);
}
-static void prefs_spelling_btn_pspell_path_clicked_cb(GtkWidget *widget,
+static void prefs_spelling_btn_aspell_path_clicked_cb(GtkWidget *widget,
gpointer data)
{
gchar *file_path, *tmp;
GtkWidget *new_menu;
file_path = filesel_select_file(_("Select dictionaries location"),
- prefs_common.pspell_path);
+ prefs_common.aspell_path);
if (file_path == NULL) {
/* don't change */
}
else {
tmp=g_dirname(file_path);
- if (prefs_common.pspell_path)
- g_free(prefs_common.pspell_path);
- prefs_common.pspell_path = g_strdup_printf("%s%s",tmp,
+ if (prefs_common.aspell_path)
+ g_free(prefs_common.aspell_path);
+ prefs_common.aspell_path = g_strdup_printf("%s%s",tmp,
G_DIR_SEPARATOR_S);
- new_menu = gtkpspell_dictionary_option_menu_new(prefs_common.pspell_path);
+ new_menu = gtkaspell_dictionary_option_menu_new(prefs_common.aspell_path);
gtk_option_menu_set_menu(GTK_OPTION_MENU(spelling.optmenu_dictionary),
new_menu);
- gtk_entry_set_text(GTK_ENTRY(spelling.entry_pspell_path),
- prefs_common.pspell_path);
+ gtk_entry_set_text(GTK_ENTRY(spelling.entry_aspell_path),
+ prefs_common.aspell_path);
/* select first one */
gtk_option_menu_set_history(GTK_OPTION_MENU(
spelling.optmenu_dictionary), 0);
g_free(prefs_common.dictionary);
prefs_common.dictionary =
- gtkpspell_get_dictionary_menu_active_item(
+ gtkaspell_get_dictionary_menu_active_item(
gtk_option_menu_get_menu(
GTK_OPTION_MENU(
spelling.optmenu_dictionary)));
GtkWidget *vbox1;
GtkWidget *frame_spell;
GtkWidget *vbox_spell;
- GtkWidget *hbox_pspell_path;
- GtkWidget *checkbtn_enable_pspell;
- GtkWidget *label_pspell_path;
- GtkWidget *entry_pspell_path;
- GtkWidget *btn_pspell_path;
+ GtkWidget *hbox_aspell_path;
+ GtkWidget *checkbtn_enable_aspell;
+ GtkWidget *label_aspell_path;
+ GtkWidget *entry_aspell_path;
+ GtkWidget *btn_aspell_path;
GtkWidget *spell_table;
GtkWidget *label_dictionary;
GtkWidget *optmenu_dictionary;
gtk_container_add(GTK_CONTAINER(frame_spell), vbox_spell);
gtk_container_set_border_width(GTK_CONTAINER(vbox_spell), 8);
- PACK_CHECK_BUTTON(vbox_spell, checkbtn_enable_pspell,
- _("Enable spell checker (EXPERIMENTAL)"));
+ PACK_CHECK_BUTTON(vbox_spell, checkbtn_enable_aspell,
+ _("Enable spell checker"));
- gtk_signal_connect(GTK_OBJECT(checkbtn_enable_pspell), "toggled",
- GTK_SIGNAL_FUNC(prefs_spelling_checkbtn_enable_pspell_toggle_cb),
+ gtk_signal_connect(GTK_OBJECT(checkbtn_enable_aspell), "toggled",
+ GTK_SIGNAL_FUNC(prefs_spelling_checkbtn_enable_aspell_toggle_cb),
NULL);
/* Check while typing */
PACK_CHECK_BUTTON(vbox_spell, checkbtn_use_alternate,
_("Enable alternate dictionary"));
- help_label = gtk_label_new(_("Enabling alternate dictionary makes switching\nwith the last used dictionary faster."));
+ help_label = gtk_label_new(_("Enabling an alternate dictionary makes switching\n"
+ "with the last used dictionary faster."));
+ gtk_misc_set_alignment (GTK_MISC (help_label), 0, 0);
gtk_widget_show(help_label);
gtk_box_pack_start(GTK_BOX(vbox_spell), help_label, FALSE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(vbox_spell), spell_table, TRUE, TRUE, 0);
- label_pspell_path = gtk_label_new (_("Dictionaries path:"));
- gtk_misc_set_alignment(GTK_MISC(label_pspell_path), 1.0, 0.5);
- gtk_widget_show(label_pspell_path);
- gtk_table_attach (GTK_TABLE (spell_table), label_pspell_path, 0, 1, 0,
+ label_aspell_path = gtk_label_new (_("Dictionaries path:"));
+ gtk_misc_set_alignment(GTK_MISC(label_aspell_path), 1.0, 0.5);
+ gtk_widget_show(label_aspell_path);
+ gtk_table_attach (GTK_TABLE (spell_table), label_aspell_path, 0, 1, 0,
1, GTK_FILL, (GTK_EXPAND | GTK_FILL), 0, 0);
- hbox_pspell_path = gtk_hbox_new (FALSE, 8);
- gtk_table_attach (GTK_TABLE (spell_table), hbox_pspell_path, 1, 2, 0,
+ hbox_aspell_path = gtk_hbox_new (FALSE, 8);
+ gtk_table_attach (GTK_TABLE (spell_table), hbox_aspell_path, 1, 2, 0,
1, GTK_FILL, (GTK_EXPAND | GTK_FILL), 0, 0);
- gtk_widget_show(hbox_pspell_path);
+ gtk_widget_show(hbox_aspell_path);
- entry_pspell_path = gtk_entry_new();
- gtk_widget_show(entry_pspell_path);
- gtk_box_pack_start(GTK_BOX(hbox_pspell_path), entry_pspell_path, TRUE,
+ entry_aspell_path = gtk_entry_new();
+ gtk_widget_show(entry_aspell_path);
+ gtk_box_pack_start(GTK_BOX(hbox_aspell_path), entry_aspell_path, TRUE,
TRUE, 0);
- gtk_widget_set_sensitive(entry_pspell_path, prefs_common.enable_pspell);
+ gtk_widget_set_sensitive(entry_aspell_path, prefs_common.enable_aspell);
- btn_pspell_path = gtk_button_new_with_label(" ... ");
- gtk_widget_show(btn_pspell_path);
- gtk_box_pack_start(GTK_BOX(hbox_pspell_path), btn_pspell_path, FALSE, FALSE, 0);
- gtk_widget_set_sensitive(btn_pspell_path, prefs_common.enable_pspell);
+ btn_aspell_path = gtk_button_new_with_label(" ... ");
+ gtk_widget_show(btn_aspell_path);
+ gtk_box_pack_start(GTK_BOX(hbox_aspell_path), btn_aspell_path, FALSE, FALSE, 0);
+ gtk_widget_set_sensitive(btn_aspell_path, prefs_common.enable_aspell);
- gtk_signal_connect(GTK_OBJECT(btn_pspell_path), "clicked",
- GTK_SIGNAL_FUNC(prefs_spelling_btn_pspell_path_clicked_cb),
+ gtk_signal_connect(GTK_OBJECT(btn_aspell_path), "clicked",
+ GTK_SIGNAL_FUNC(prefs_spelling_btn_aspell_path_clicked_cb),
NULL);
label_dictionary = gtk_label_new(_("Default dictionary:"));
optmenu_dictionary = gtk_option_menu_new();
gtk_widget_show(optmenu_dictionary);
gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu_dictionary),
- gtkpspell_dictionary_option_menu_new(
- prefs_common.pspell_path));
+ gtkaspell_dictionary_option_menu_new(
+ prefs_common.aspell_path));
gtk_table_attach (GTK_TABLE (spell_table), optmenu_dictionary, 1, 2, 1,
2, GTK_FILL, (GTK_EXPAND | GTK_FILL), 0, 0);
- gtk_widget_set_sensitive(optmenu_dictionary, prefs_common.enable_pspell);
+ gtk_widget_set_sensitive(optmenu_dictionary, prefs_common.enable_aspell);
/* Suggestion mode */
sugmode_label = gtk_label_new(_("Default suggestion mode"));
sugmode_optmenu = gtk_option_menu_new();
gtk_widget_show(sugmode_optmenu);
gtk_option_menu_set_menu(GTK_OPTION_MENU(sugmode_optmenu),
- gtkpspell_sugmode_option_menu_new(prefs_common.pspell_sugmode));
+ gtkaspell_sugmode_option_menu_new(prefs_common.aspell_sugmode));
gtk_table_attach(GTK_TABLE(spell_table), sugmode_optmenu, 1, 2, 2, 3,
GTK_FILL, (GTK_EXPAND | GTK_FILL), 0, 0);
- gtk_widget_set_sensitive(sugmode_optmenu, prefs_common.enable_pspell);
+ gtk_widget_set_sensitive(sugmode_optmenu, prefs_common.enable_aspell);
/* Color */
color_label = gtk_label_new(_("Misspelled word color:"));
set_button_bg_color(spelling.misspelled_btn,
prefs_common.misspelled_col);
gtk_widget_set_usize (spelling.misspelled_btn, 30, 20);
- gtk_widget_set_sensitive(spelling.misspelled_btn, prefs_common.enable_pspell);
+ gtk_widget_set_sensitive(spelling.misspelled_btn, prefs_common.enable_aspell);
gtk_signal_connect (GTK_OBJECT (spelling.misspelled_btn), "clicked",
GTK_SIGNAL_FUNC(quote_color_set_dialog), "Misspelled word");
gtk_container_add(GTK_CONTAINER(col_align), spelling.misspelled_btn);
- spelling.checkbtn_enable_pspell = checkbtn_enable_pspell;
- spelling.entry_pspell_path = entry_pspell_path;
- spelling.btn_pspell_path = btn_pspell_path;
+ spelling.checkbtn_enable_aspell = checkbtn_enable_aspell;
+ spelling.entry_aspell_path = entry_aspell_path;
+ spelling.btn_aspell_path = btn_aspell_path;
spelling.optmenu_dictionary = optmenu_dictionary;
spelling.optmenu_sugmode = sugmode_optmenu;
spelling.checkbtn_use_alternate = checkbtn_use_alternate;
{
GtkWidget *vbox1;
GtkWidget *vbox2;
- GtkWidget *hbox1;
-
- GtkWidget *frame_sig;
- GtkWidget *vbox_sig;
- GtkWidget *checkbtn_autosig;
- GtkWidget *label_sigsep;
- GtkWidget *entry_sigsep;
GtkWidget *checkbtn_autoextedit;
GtkWidget *checkbtn_autowrap;
GtkWidget *checkbtn_wrapatsend;
+ GtkWidget *checkbtn_default_reply_list;
+
GtkWidget *checkbtn_forward_as_attachment;
GtkWidget *checkbtn_redirect_keep_from;
GtkWidget *checkbtn_smart_wrapping;
GtkWidget *checkbtn_block_cursor;
GtkWidget *frame_msgwrap;
+ GtkWidget *hbox_autosave;
+ GtkWidget *checkbtn_autosave;
+ GtkWidget *entry_autosave_length;
+ GtkWidget *label_autosave_length;
+
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
gtk_container_add (GTK_CONTAINER (dialog.notebook), vbox1);
gtk_container_set_border_width (GTK_CONTAINER (vbox1), VBOX_BORDER);
- PACK_FRAME(vbox1, frame_sig, _("Signature"));
-
- vbox_sig = gtk_vbox_new (FALSE, VSPACING_NARROW);
- gtk_widget_show (vbox_sig);
- gtk_container_add (GTK_CONTAINER (frame_sig), vbox_sig);
- gtk_container_set_border_width (GTK_CONTAINER (vbox_sig), 8);
-
- PACK_CHECK_BUTTON (vbox_sig, checkbtn_autosig,
- _("Insert signature automatically"));
-
- hbox1 = gtk_hbox_new (FALSE, 8);
- gtk_widget_show (hbox1);
- gtk_box_pack_start (GTK_BOX (vbox_sig), hbox1, TRUE, TRUE, 0);
- label_sigsep = gtk_label_new (_("Signature separator"));
- gtk_widget_show (label_sigsep);
- gtk_box_pack_start (GTK_BOX (hbox1), label_sigsep, FALSE, FALSE, 0);
-
- entry_sigsep = gtk_entry_new ();
- gtk_widget_show (entry_sigsep);
- gtk_box_pack_start (GTK_BOX (hbox1), entry_sigsep, FALSE, FALSE, 0);
-
- gtk_widget_set_usize (entry_sigsep, 64, -1);
-
/* Account autoselection */
PACK_FRAME(vbox1, frame_autosel, _("Automatic account selection"));
gtk_widget_show (vbox2);
gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, FALSE, 0);
+ PACK_CHECK_BUTTON (vbox2, checkbtn_default_reply_list,
+ _("Reply button invokes mailing list reply"));
+
PACK_CHECK_BUTTON (vbox2, checkbtn_autoextedit,
_("Automatically launch the external editor"));
PACK_CHECK_BUTTON (vbox2, checkbtn_redirect_keep_from,
_("Keep the original 'From' header when redirecting"));
+
+ hbox_autosave = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox_autosave);
+ gtk_box_pack_start (GTK_BOX (vbox1), hbox_autosave, FALSE, FALSE, 0);
+
+ PACK_CHECK_BUTTON (hbox_autosave, checkbtn_autosave,
+ _("Autosave to Drafts folder every "));
+
+ entry_autosave_length = gtk_entry_new();
+ gtk_widget_set_usize (entry_autosave_length, 64, -1);
+ gtk_widget_show (entry_autosave_length);
+ gtk_box_pack_start (GTK_BOX (hbox_autosave), entry_autosave_length, FALSE, FALSE, 0);
+
+ label_autosave_length = gtk_label_new(_("characters"));
+ gtk_widget_show (label_autosave_length);
+ gtk_box_pack_start (GTK_BOX (hbox_autosave), label_autosave_length, FALSE, FALSE, 0);
+
hbox_undolevel = gtk_hbox_new (FALSE, 8);
gtk_widget_show (hbox_undolevel);
gtk_box_pack_start (GTK_BOX (vbox1), hbox_undolevel, FALSE, FALSE, 0);
compose.entry_quotemark = entry_quotemark;
compose.text_quotefmt = text_quotefmt;
*/
- compose.checkbtn_autosig = checkbtn_autosig;
- compose.entry_sigsep = entry_sigsep;
compose.checkbtn_autoextedit = checkbtn_autoextedit;
compose.spinbtn_undolevel = spinbtn_undolevel;
compose.spinbtn_undolevel_adj = spinbtn_undolevel_adj;
- compose.spinbtn_linewrap = spinbtn_linewrap;
- compose.spinbtn_linewrap_adj = spinbtn_linewrap_adj;
- compose.checkbtn_wrapquote = checkbtn_wrapquote;
- compose.checkbtn_autowrap = checkbtn_autowrap;
- compose.checkbtn_wrapatsend = checkbtn_wrapatsend;
+ compose.spinbtn_linewrap = spinbtn_linewrap;
+ compose.spinbtn_linewrap_adj = spinbtn_linewrap_adj;
+ compose.checkbtn_wrapquote = checkbtn_wrapquote;
+ compose.checkbtn_autowrap = checkbtn_autowrap;
+ compose.checkbtn_wrapatsend = checkbtn_wrapatsend;
+ compose.checkbtn_autosave = checkbtn_autosave;
+ compose.entry_autosave_length = entry_autosave_length;
+
compose.checkbtn_forward_as_attachment =
checkbtn_forward_as_attachment;
compose.checkbtn_redirect_keep_from =
checkbtn_smart_wrapping;
compose.checkbtn_block_cursor =
checkbtn_block_cursor;
-
+ compose.checkbtn_default_reply_list = checkbtn_default_reply_list;
}
static void prefs_quote_create(void)
/* quote chars */
- PACK_FRAME (vbox1, frame_quote, _("Quoting characters"));
+ PACK_FRAME (vbox1, frame_quote, _("Quotation characters"));
vbox_quote = gtk_vbox_new (FALSE, VSPACING_NARROW);
gtk_widget_show (vbox_quote);
GtkWidget *label_textfont;
GtkWidget *entry_textfont;
GtkWidget *button_textfont;
- GtkWidget *chkbtn_display_img;
GtkWidget *chkbtn_transhdr;
GtkWidget *chkbtn_folder_unread;
GtkWidget *hbox1;
GtkWidget *frame_summary;
GtkWidget *vbox2;
GtkWidget *chkbtn_swapfrom;
- GtkWidget *chkbtn_hscrollbar;
GtkWidget *chkbtn_useaddrbook;
- GtkWidget *chkbtn_expand_thread;
- GtkWidget *chkbtn_bold_unread;
+ GtkWidget *chkbtn_threadsubj;
GtkWidget *vbox3;
GtkWidget *label_datefmt;
GtkWidget *button_datefmt;
PACK_CHECK_BUTTON (vbox2, chkbtn_folder_unread,
_("Display unread number next to folder name"));
- PACK_CHECK_BUTTON (vbox2, chkbtn_display_img,
- _("Automatically display images"));
-
PACK_VSPACER(vbox2, vbox3, VSPACING_NARROW_2);
hbox1 = gtk_hbox_new (FALSE, 8);
gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, TRUE, 0);
label_ng_abbrev = gtk_label_new
- (_("Abbreviate newsgroups longer than"));
+ (_("Abbreviate newsgroup names longer than"));
gtk_widget_show (label_ng_abbrev);
gtk_box_pack_start (GTK_BOX (hbox1), label_ng_abbrev, FALSE, FALSE, 0);
PACK_CHECK_BUTTON
(vbox2, chkbtn_swapfrom,
- _("Display recipient on `From' column if sender is yourself"));
+ _("Display recipient in `From' column if sender is yourself"));
PACK_CHECK_BUTTON
(vbox2, chkbtn_useaddrbook,
_("Display sender using address book"));
PACK_CHECK_BUTTON
- (vbox2, chkbtn_hscrollbar, _("Enable horizontal scroll bar"));
- PACK_CHECK_BUTTON
- (vbox2, chkbtn_expand_thread, _("Expand threads"));
- PACK_CHECK_BUTTON
- (vbox2, chkbtn_bold_unread,
- _("Display unread messages with bold font"));
+ (vbox2, chkbtn_threadsubj,
+ _("Thread using subject in addition to standard headers"));
PACK_VSPACER(vbox2, vbox3, VSPACING_NARROW_2);
gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, TRUE, 0);
button_dispitem = gtk_button_new_with_label
- (_(" Set display item of summary... "));
+ (_(" Set displayed items in summary... "));
gtk_widget_show (button_dispitem);
gtk_box_pack_start (GTK_BOX (hbox1), button_dispitem, FALSE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (button_dispitem), "clicked",
display.entry_textfont = entry_textfont;
display.button_textfont = button_textfont;
- display.chkbtn_display_img = chkbtn_display_img;
display.chkbtn_transhdr = chkbtn_transhdr;
display.chkbtn_folder_unread = chkbtn_folder_unread;
display.spinbtn_ng_abbrev_len = spinbtn_ng_abbrev_len;
display.spinbtn_ng_abbrev_len_adj = spinbtn_ng_abbrev_len_adj;
display.chkbtn_swapfrom = chkbtn_swapfrom;
- display.chkbtn_hscrollbar = chkbtn_hscrollbar;
- display.chkbtn_expand_thread = chkbtn_expand_thread;
- display.chkbtn_bold_unread = chkbtn_bold_unread;
display.chkbtn_useaddrbook = chkbtn_useaddrbook;
+ display.chkbtn_threadsubj = chkbtn_threadsubj;
display.entry_datefmt = entry_datefmt;
}
GtkWidget *spinbtn_scrollstep;
GtkWidget *chkbtn_halfpage;
+ GtkWidget *chkbtn_attach_desc;
+
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
gtk_container_add (GTK_CONTAINER (dialog.notebook), vbox1);
gtk_container_set_border_width (GTK_CONTAINER (vbox1), VBOX_BORDER);
+ vbox2 = gtk_vbox_new (FALSE, 0);
+ gtk_widget_show (vbox2);
+ gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, FALSE, 0);
+
hbox1 = gtk_hbox_new (FALSE, 8);
gtk_widget_show (hbox1);
- gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, TRUE, 0);
PACK_CHECK_BUTTON (hbox1, chkbtn_enablecol,
_("Enable coloration of message"));
SET_TOGGLE_SENSITIVITY(chkbtn_enablecol, button_edit_col);
- vbox2 = gtk_vbox_new (FALSE, 0);
- gtk_widget_show (vbox2);
- gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, FALSE, 0);
-
PACK_CHECK_BUTTON
(vbox2, chkbtn_mbalnum,
- _("Display 2-byte alphabet and numeric with 1-byte character"));
+ _("Display multi-byte alphanumeric as\n"
+ "ASCII character (Japanese only)"));
+ gtk_label_set_justify (GTK_LABEL (GTK_BIN(chkbtn_mbalnum)->child),
+ GTK_JUSTIFY_LEFT);
+
PACK_CHECK_BUTTON(vbox2, chkbtn_disphdrpane,
_("Display header pane above message view"));
SET_TOGGLE_SENSITIVITY (chkbtn_smoothscroll, hbox_scr)
+ vbox3 = gtk_vbox_new (FALSE, 0);
+ gtk_widget_show (vbox3);
+ gtk_box_pack_start (GTK_BOX (vbox1), vbox3, FALSE, FALSE, 0);
+
+ PACK_CHECK_BUTTON(vbox3, chkbtn_attach_desc,
+ _("Show attachment descriptions (rather than names)"));
+
+
message.chkbtn_enablecol = chkbtn_enablecol;
message.button_edit_col = button_edit_col;
message.chkbtn_mbalnum = chkbtn_mbalnum;
message.spinbtn_scrollstep = spinbtn_scrollstep;
message.spinbtn_scrollstep_adj = spinbtn_scrollstep_adj;
message.chkbtn_halfpage = chkbtn_halfpage;
+
+ message.chkbtn_attach_desc = chkbtn_attach_desc;
}
#if USE_GPGME
{
GtkWidget *vbox1;
GtkWidget *vbox2;
+ GtkWidget *vbox3;
GtkWidget *hbox1;
+ GtkWidget *hbox_spc;
+ GtkWidget *label;
GtkWidget *checkbtn_auto_check_signatures;
GtkWidget *checkbtn_gpg_signature_popup;
- GtkWidget *hbox_stpass;
GtkWidget *checkbtn_store_passphrase;
- GtkWidget *label_stpass1;
GtkObject *spinbtn_store_passphrase_adj;
GtkWidget *spinbtn_store_passphrase;
- GtkWidget *label_stpass2;
- GtkWidget *hbox_stpassinfo;
- GtkWidget *label_stpassinfo;
GtkWidget *checkbtn_passphrase_grab;
GtkWidget *checkbtn_gpg_warning;
- GtkWidget *label;
- GtkWidget *menuitem;
- GtkWidget *optmenu;
- GtkWidget *optmenu_menu;
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
PACK_CHECK_BUTTON (vbox2, checkbtn_gpg_signature_popup,
_("Show signature check result in a popup window"));
- hbox_stpass = gtk_hbox_new(FALSE, 8);
- gtk_box_pack_start(GTK_BOX(vbox2), hbox_stpass, FALSE, FALSE, 0);
-
- PACK_CHECK_BUTTON (hbox_stpass, checkbtn_store_passphrase,
- _("Store passphrase temporarily"));
-
- label_stpass1 = gtk_label_new(_("- remove after"));
- gtk_box_pack_start(GTK_BOX(hbox_stpass), label_stpass1, FALSE, FALSE, 0);
-
- spinbtn_store_passphrase_adj = gtk_adjustment_new(0, 0, 1440, 1, 5, 5);
- spinbtn_store_passphrase = gtk_spin_button_new(
- GTK_ADJUSTMENT(spinbtn_store_passphrase_adj), 1, 0);
- gtk_box_pack_start(GTK_BOX(hbox_stpass), spinbtn_store_passphrase, FALSE,
- FALSE, 0);
- gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(spinbtn_store_passphrase),
- TRUE);
- gtk_widget_set_usize(spinbtn_store_passphrase, 50, -1);
-
- label_stpass2 = gtk_label_new(_("minute(s)"));
- gtk_box_pack_start(GTK_BOX(hbox_stpass), label_stpass2, FALSE, FALSE, 0);
- gtk_widget_show_all(hbox_stpass);
-
- hbox_stpassinfo = gtk_hbox_new(FALSE, 8);
- gtk_box_pack_start(GTK_BOX(vbox2), hbox_stpassinfo, FALSE, FALSE, 0);
-
- label_stpassinfo = gtk_label_new
- (_("(A setting of '0' will store the passphrase\n"
- " for the whole session)"));
- gtk_box_pack_start (GTK_BOX (hbox_stpassinfo), label_stpassinfo, FALSE, FALSE, 0);
- gtk_label_set_justify (GTK_LABEL (label_stpassinfo), GTK_JUSTIFY_LEFT);
- gtk_widget_show_all(hbox_stpassinfo);
-
- SET_TOGGLE_SENSITIVITY(checkbtn_store_passphrase, label_stpass1);
- SET_TOGGLE_SENSITIVITY(checkbtn_store_passphrase, spinbtn_store_passphrase);
- SET_TOGGLE_SENSITIVITY(checkbtn_store_passphrase, label_stpass2);
- SET_TOGGLE_SENSITIVITY(checkbtn_store_passphrase, label_stpassinfo);
+ PACK_CHECK_BUTTON (vbox2, checkbtn_store_passphrase,
+ _("Store passphrase in memory temporarily"));
+
+ vbox3 = gtk_vbox_new (FALSE, 0);
+ gtk_widget_show (vbox3);
+ gtk_box_pack_start (GTK_BOX (vbox2), vbox3, FALSE, FALSE, 0);
+
+ hbox1 = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox1);
+ gtk_box_pack_start (GTK_BOX (vbox3), hbox1, FALSE, FALSE, 0);
+
+ hbox_spc = gtk_hbox_new (FALSE, 0);
+ gtk_widget_show (hbox_spc);
+ gtk_box_pack_start (GTK_BOX (hbox1), hbox_spc, FALSE, FALSE, 0);
+ gtk_widget_set_usize (hbox_spc, 12, -1);
+
+ label = gtk_label_new (_("Expire after"));
+ gtk_widget_show (label);
+ gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
+
+ spinbtn_store_passphrase_adj = gtk_adjustment_new (0, 0, 1440, 1, 5, 5);
+ spinbtn_store_passphrase = gtk_spin_button_new
+ (GTK_ADJUSTMENT (spinbtn_store_passphrase_adj), 1, 0);
+ gtk_widget_show (spinbtn_store_passphrase);
+ gtk_box_pack_start (GTK_BOX (hbox1), spinbtn_store_passphrase, FALSE, FALSE, 0);
+ gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbtn_store_passphrase),
+ TRUE);
+ gtk_widget_set_usize (spinbtn_store_passphrase, 64, -1);
+
+ label = gtk_label_new (_("minute(s) "));
+ gtk_widget_show (label);
+ gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
+
+ hbox1 = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox1);
+ gtk_box_pack_start (GTK_BOX (vbox3), hbox1, FALSE, FALSE, 0);
+
+ hbox_spc = gtk_hbox_new (FALSE, 0);
+ gtk_widget_show (hbox_spc);
+ gtk_box_pack_start (GTK_BOX (hbox1), hbox_spc, FALSE, FALSE, 0);
+ gtk_widget_set_usize (hbox_spc, 12, -1);
+
+ label = gtk_label_new (_("(Setting to '0' will store the passphrase\n"
+ " for the whole session)"));
+ gtk_widget_show (label);
+ gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
+ gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
+
+ SET_TOGGLE_SENSITIVITY (checkbtn_store_passphrase, vbox3);
#ifndef __MINGW32__
PACK_CHECK_BUTTON (vbox2, checkbtn_passphrase_grab,
gtk_widget_show (hbox1);
gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
- /* create default signkey box */
- label = gtk_label_new (_("Default Sign Key"));
- gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
- optmenu = gtk_option_menu_new ();
- gtk_widget_show (optmenu);
- gtk_box_pack_start(GTK_BOX (hbox1), optmenu, FALSE, FALSE, 0);
- optmenu_menu = gtk_menu_new ();
-
- MENUITEM_ADD(optmenu_menu, menuitem, "Default Key", "def_key");
- MENUITEM_ADD(optmenu_menu, menuitem, "Second Key", "2nd_key");
- gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu), optmenu_menu);
- /* FIXME: disabled because not implemented */
- gtk_widget_set_sensitive(optmenu, FALSE);
-
privacy.checkbtn_auto_check_signatures
- = checkbtn_auto_check_signatures;
+ = checkbtn_auto_check_signatures;
privacy.checkbtn_gpg_signature_popup
- = checkbtn_gpg_signature_popup;
+ = checkbtn_gpg_signature_popup;
privacy.checkbtn_store_passphrase = checkbtn_store_passphrase;
privacy.spinbtn_store_passphrase = spinbtn_store_passphrase;
privacy.spinbtn_store_passphrase_adj = spinbtn_store_passphrase_adj;
- privacy.checkbtn_passphrase_grab = checkbtn_passphrase_grab;
- privacy.checkbtn_gpg_warning = checkbtn_gpg_warning;
- privacy.optmenu_default_signkey = optmenu;
-}
-
-static void
-prefs_common_default_signkey_set_data_from_optmenu(PrefParam *pparam)
-{
-#if 0
- GtkWidget *menu;
- GtkWidget *menuitem;
- gchar *charset;
-
- menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(*pparam->widget));
- menuitem = gtk_menu_get_active(GTK_MENU(menu));
- charset = gtk_object_get_user_data(GTK_OBJECT(menuitem));
- g_free(*((gchar **)pparam->data));
- *((gchar **)pparam->data) = g_strdup(charset);
-#endif
-}
-
-static void prefs_common_default_signkey_set_optmenu(PrefParam *pparam)
-{
-#if 0
- GList *cur;
- GtkOptionMenu *optmenu = GTK_OPTION_MENU(*pparam->widget);
- GtkWidget *menu;
- GtkWidget *menuitem;
- gchar *charset;
- gint n = 0;
-
- g_return_if_fail(optmenu != NULL);
- g_return_if_fail(*((gchar **)pparam->data) != NULL);
-
- menu = gtk_option_menu_get_menu(optmenu);
- for (cur = GTK_MENU_SHELL(menu)->children;
- cur != NULL; cur = cur->next) {
- menuitem = GTK_WIDGET(cur->data);
- charset = gtk_object_get_user_data(GTK_OBJECT(menuitem));
- if (!strcmp(charset, *((gchar **)pparam->data))) {
- gtk_option_menu_set_history(optmenu, n);
- return;
- }
- n++;
- }
-
- gtk_option_menu_set_history(optmenu, 0);
- prefs_common_charset_set_data_from_optmenu(pparam);
-#endif
+ privacy.checkbtn_passphrase_grab = checkbtn_passphrase_grab;
+ privacy.checkbtn_gpg_warning = checkbtn_gpg_warning;
}
#endif /* USE_GPGME */
GtkWidget *vbox2;
GtkWidget *vbox3;
/* GtkWidget *checkbtn_emacs; */
- GtkWidget *checkbtn_show_msg_with_cursor;
+ GtkWidget *checkbtn_always_show_msg;
GtkWidget *checkbtn_openunread;
+ GtkWidget *checkbtn_mark_as_read_on_newwin;
GtkWidget *checkbtn_openinbox;
GtkWidget *checkbtn_immedexec;
GtkWidget *hbox1;
GtkWidget *label;
- GtkWidget *optmenu_recvdialog;
GtkWidget *menu;
GtkWidget *menuitem;
- GtkWidget *checkbtn_no_recv_err_panel;
-
- GtkWidget *frame_addr;
- GtkWidget *vbox_addr;
- GtkWidget *checkbtn_addaddrbyclick;
GtkWidget *button_keybind;
- GtkWidget *hbox2;
+ GtkWidget *hbox_nextunreadmsgdialog;
GtkWidget *optmenu_nextunreadmsgdialog;
- GtkWidget *optmenu_nextunreadmsgdialog_menu;
- GtkWidget *nextunreadmsgdialog_menuitem;
GtkWidget *frame_pixmap_theme;
GtkWidget *vbox_pixmap_theme;
GTK_JUSTIFY_LEFT); */
PACK_CHECK_BUTTON
- (vbox2, checkbtn_show_msg_with_cursor,
- _("Open message when cursor keys are pressed on summary"));
+ (vbox2, checkbtn_always_show_msg,
+ _("Always open messages in summary when selected"));
PACK_CHECK_BUTTON
(vbox2, checkbtn_openunread,
_("Open first unread message when entering a folder"));
+ PACK_CHECK_BUTTON
+ (vbox2, checkbtn_mark_as_read_on_newwin,
+ _("Only mark message as read when opened in new window"));
+
PACK_CHECK_BUTTON
(vbox2, checkbtn_openinbox,
_("Go to inbox after receiving new mail"));
gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 8);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
- PACK_VSPACER(vbox2, vbox3, VSPACING_NARROW);
-
- PACK_CHECK_BUTTON (vbox2, checkbtn_no_recv_err_panel,
- _("No popup error dialog on receive error"));
-
- hbox1 = gtk_hbox_new (FALSE, 8);
+ /* Next Unread Message Dialog */
+ hbox_nextunreadmsgdialog = gtk_hbox_new (FALSE, 8);
gtk_widget_show (hbox1);
- gtk_box_pack_start (GTK_BOX (vbox2), hbox1, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox1), hbox_nextunreadmsgdialog, FALSE, FALSE, 0);
- label = gtk_label_new (_("Show receive dialog"));
+ label = gtk_label_new (_("Show no-unread-message dialog"));
gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
-
- optmenu_recvdialog = gtk_option_menu_new ();
- gtk_widget_show (optmenu_recvdialog);
- gtk_box_pack_start (GTK_BOX (hbox1), optmenu_recvdialog,
- FALSE, FALSE, 0);
-
- menu = gtk_menu_new ();
- MENUITEM_ADD (menu, menuitem, _("Always"), RECV_DIALOG_ALWAYS);
- MENUITEM_ADD (menu, menuitem, _("Only if a window is active"),
- RECV_DIALOG_ACTIVE);
- MENUITEM_ADD (menu, menuitem, _("Never"), RECV_DIALOG_NEVER);
-
- gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu_recvdialog), menu);
-
- PACK_FRAME (vbox1, frame_addr, _("Address book"));
-
- vbox_addr = gtk_vbox_new (FALSE, 0);
- gtk_widget_show (vbox_addr);
- gtk_container_add (GTK_CONTAINER (frame_addr), vbox_addr);
- gtk_container_set_border_width (GTK_CONTAINER (vbox_addr), 8);
-
- PACK_CHECK_BUTTON
- (vbox_addr, checkbtn_addaddrbyclick,
- _("Add address to destination when double-clicked"));
-
- /* Next Unread Message Dialog */
- hbox2 = gtk_hbox_new (FALSE, 8);
- gtk_widget_show (hbox2);
- gtk_box_pack_start (GTK_BOX (vbox2), hbox2, FALSE, FALSE, 0);
-
- label = gtk_label_new (_("Show no-unread-message dialog"));
- gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (hbox2), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox_nextunreadmsgdialog), label, FALSE, FALSE, 8);
optmenu_nextunreadmsgdialog = gtk_option_menu_new ();
gtk_widget_show (optmenu_nextunreadmsgdialog);
- gtk_box_pack_start (GTK_BOX (hbox2), optmenu_nextunreadmsgdialog,
- FALSE, FALSE, 0);
-
- optmenu_nextunreadmsgdialog_menu = gtk_menu_new ();
- MENUITEM_ADD (optmenu_nextunreadmsgdialog_menu, nextunreadmsgdialog_menuitem,
- _("Always"), NEXTUNREADMSGDIALOG_ALWAYS);
- MENUITEM_ADD (optmenu_nextunreadmsgdialog_menu, nextunreadmsgdialog_menuitem,
- _("Assume 'Yes'"), NEXTUNREADMSGDIALOG_ASSUME_YES);
- MENUITEM_ADD (optmenu_nextunreadmsgdialog_menu, nextunreadmsgdialog_menuitem,
- _("Assume 'No'"), NEXTUNREADMSGDIALOG_ASSUME_NO);
-
- gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu_nextunreadmsgdialog),
- optmenu_nextunreadmsgdialog_menu);
-
-
- /* Receive Dialog */
-/* hbox = gtk_hbox_new (FALSE, 8);
- gtk_widget_show (hbox);
- gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0);
-
- label = gtk_label_new (_("Show receive Dialog"));
- gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
-
- recvdialog_optmenu = gtk_option_menu_new ();
- gtk_widget_show (recvdialog_optmenu);
- gtk_box_pack_start (GTK_BOX (hbox), recvdialog_optmenu, FALSE, FALSE, 0);
-
- recvdialog_optmenu_menu = gtk_menu_new ();
-
- MENUITEM_ADD (recvdialog_optmenu_menu, recvdialog_menuitem, _("Always"), RECVDIALOG_ALWAYS);
- MENUITEM_ADD (recvdialog_optmenu_menu, recvdialog_menuitem, _("Only if a sylpheed window is active"), RECVDIALOG_WINDOW_ACTIVE);
- MENUITEM_ADD (recvdialog_optmenu_menu, recvdialog_menuitem, _("Never"), RECVDIALOG_NEVER);
+ gtk_box_pack_start (GTK_BOX (hbox_nextunreadmsgdialog), optmenu_nextunreadmsgdialog, FALSE, FALSE, 8);
+
+ menu = gtk_menu_new ();
+ MENUITEM_ADD (menu, menuitem, _("Always"), NEXTUNREADMSGDIALOG_ALWAYS);
+ MENUITEM_ADD (menu, menuitem, _("Assume 'Yes'"),
+ NEXTUNREADMSGDIALOG_ASSUME_YES);
+ MENUITEM_ADD (menu, menuitem, _("Assume 'No'"),
+ NEXTUNREADMSGDIALOG_ASSUME_NO);
- gtk_option_menu_set_menu (GTK_OPTION_MENU (recvdialog_optmenu), recvdialog_optmenu_menu); */
+ gtk_option_menu_set_menu (GTK_OPTION_MENU (optmenu_nextunreadmsgdialog), menu);
hbox1 = gtk_hbox_new (FALSE, 8);
gtk_widget_show (hbox1);
gtk_signal_connect (GTK_OBJECT (button_keybind), "clicked",
GTK_SIGNAL_FUNC (prefs_keybind_select), NULL);
- PACK_FRAME(vbox1, frame_pixmap_theme, _("Pixmap theme"));
+ PACK_FRAME(vbox1, frame_pixmap_theme, _("Icon theme"));
vbox_pixmap_theme = gtk_vbox_new(FALSE, 0);
gtk_widget_show(vbox_pixmap_theme);
stock_pixmap_themes_list_free(avail_pixmap_themes);
/* interface.checkbtn_emacs = checkbtn_emacs; */
- interface.checkbtn_show_msg_with_cursor
- = checkbtn_show_msg_with_cursor;
+ interface.checkbtn_always_show_msg = checkbtn_always_show_msg;
interface.checkbtn_openunread = checkbtn_openunread;
+ interface.checkbtn_mark_as_read_on_newwin
+ = checkbtn_mark_as_read_on_newwin;
interface.checkbtn_openinbox = checkbtn_openinbox;
interface.checkbtn_immedexec = checkbtn_immedexec;
- interface.optmenu_recvdialog = optmenu_recvdialog;
- interface.checkbtn_no_recv_err_panel = checkbtn_no_recv_err_panel;
- interface.checkbtn_addaddrbyclick = checkbtn_addaddrbyclick;
interface.optmenu_nextunreadmsgdialog = optmenu_nextunreadmsgdialog;
interface.combo_pixmap_theme = combo_pixmap_theme;
interface.entry_pixmap_theme = entry_pixmap_theme;
GtkWidget *exteditor_combo;
GtkWidget *exteditor_entry;
+ GtkWidget *frame_addr;
+ GtkWidget *vbox_addr;
+ GtkWidget *checkbtn_addaddrbyclick;
+
GtkWidget *frame_cliplog;
GtkWidget *vbox_cliplog;
GtkWidget *hbox_cliplog;
GtkWidget *checkbtn_askonclean;
GtkWidget *checkbtn_warnqueued;
+ GtkWidget *label_iotimeout;
+ GtkWidget *spinbtn_iotimeout;
+ GtkObject *spinbtn_iotimeout_adj;
+
+#if 0
+#ifdef USE_OPENSSL
+ GtkWidget *frame_ssl;
+ GtkWidget *vbox_ssl;
+ GtkWidget *hbox_ssl;
+ GtkWidget *checkbtn_ssl_ask_unknown_valid;
+#endif
+#endif
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
gtk_container_add (GTK_CONTAINER (dialog.notebook), vbox1);
gtk_table_attach (GTK_TABLE (ext_table), uri_combo, 1, 2, 0, 1,
GTK_EXPAND | GTK_FILL, 0, 0, 0);
gtkut_combo_set_items (GTK_COMBO (uri_combo),
+ DEFAULT_BROWSER_CMD,
+ "galeon --new-tab '%s'",
"galeon '%s'",
"mozilla -remote 'openurl(%s,new-window)'",
- "netscape -remote 'openURL(%s,raise)'",
+ "netscape -remote 'openURL(%s, new-window)'",
"netscape '%s'",
- "gnome-moz-remote --raise --newwin '%s'",
+ "gnome-moz-remote --newwin '%s'",
"kfmclient openURL '%s'",
"opera -newwindow '%s'",
"kterm -e w3m '%s'",
NULL);
exteditor_entry = GTK_COMBO (exteditor_combo)->entry;
+ PACK_FRAME (vbox1, frame_addr, _("Address book"));
+
+ vbox_addr = gtk_vbox_new (FALSE, 0);
+ gtk_widget_show (vbox_addr);
+ gtk_container_add (GTK_CONTAINER (frame_addr), vbox_addr);
+ gtk_container_set_border_width (GTK_CONTAINER (vbox_addr), 8);
+
+ PACK_CHECK_BUTTON
+ (vbox_addr, checkbtn_addaddrbyclick,
+ _("Add address to destination when double-clicked"));
+
/* Clip Log */
PACK_FRAME (vbox1, frame_cliplog, _("Log Size"));
gtk_box_pack_start (GTK_BOX (hbox_cliplog), loglength_entry,
FALSE, TRUE, 0);
gtk_widget_show (GTK_WIDGET (loglength_entry));
+ loglength_label = gtk_label_new (_("(0 to stop logging in the log window)"));
+ gtk_box_pack_start (GTK_BOX (hbox_cliplog), loglength_label,
+ FALSE, TRUE, 0);
SET_TOGGLE_SENSITIVITY(checkbtn_cliplog, loglength_entry);
+#if 0
+#ifdef USE_OPENSSL
+ /* SSL */
+ PACK_FRAME (vbox1, frame_ssl, _("Security"));
+
+ vbox_ssl = gtk_vbox_new (FALSE, 0);
+ gtk_widget_show (vbox_ssl);
+ gtk_container_add (GTK_CONTAINER (frame_ssl), vbox_ssl);
+ gtk_container_set_border_width (GTK_CONTAINER (vbox_ssl), 8);
+ PACK_CHECK_BUTTON (vbox_ssl, checkbtn_ssl_ask_unknown_valid,
+ _("Ask before accepting SSL certificates"));
+ hbox_ssl = gtk_hbox_new (FALSE, 3);
+ gtk_container_add (GTK_CONTAINER (vbox_ssl), hbox_ssl);
+ gtk_widget_show (hbox_ssl);
+#endif
+#endif
+
/* On Exit */
PACK_FRAME (vbox1, frame_exit, _("On exit"));
PACK_CHECK_BUTTON (vbox_exit, checkbtn_warnqueued,
_("Warn if there are queued messages"));
+ hbox1 = gtk_hbox_new (FALSE, 8);
+ gtk_widget_show (hbox1);
+ gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
+
+ label_iotimeout = gtk_label_new (_("Socket I/O timeout:"));
+ gtk_widget_show (label_iotimeout);
+ gtk_box_pack_start (GTK_BOX (hbox1), label_iotimeout, FALSE, FALSE, 0);
+
+ spinbtn_iotimeout_adj = gtk_adjustment_new (60, 0, 1000, 1, 10, 10);
+ spinbtn_iotimeout = gtk_spin_button_new
+ (GTK_ADJUSTMENT (spinbtn_iotimeout_adj), 1, 0);
+ gtk_widget_show (spinbtn_iotimeout);
+ gtk_box_pack_start (GTK_BOX (hbox1), spinbtn_iotimeout,
+ FALSE, FALSE, 0);
+ gtk_widget_set_usize (spinbtn_iotimeout, 64, -1);
+ gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbtn_iotimeout), TRUE);
+
+ label_iotimeout = gtk_label_new (_("second(s)"));
+ gtk_widget_show (label_iotimeout);
+ gtk_box_pack_start (GTK_BOX (hbox1), label_iotimeout, FALSE, FALSE, 0);
+
other.uri_combo = uri_combo;
other.uri_entry = uri_entry;
other.printcmd_entry = printcmd_entry;
other.exteditor_combo = exteditor_combo;
other.exteditor_entry = exteditor_entry;
+ other.checkbtn_addaddrbyclick = checkbtn_addaddrbyclick;
+
other.checkbtn_cliplog = checkbtn_cliplog;
other.loglength_entry = loglength_entry;
other.checkbtn_cleanonexit = checkbtn_cleanonexit;
other.checkbtn_askonclean = checkbtn_askonclean;
other.checkbtn_warnqueued = checkbtn_warnqueued;
+
+ other.spinbtn_iotimeout = spinbtn_iotimeout;
+ other.spinbtn_iotimeout_adj = spinbtn_iotimeout_adj;
+
+#if 0
+#ifdef USE_OPENSSL
+ other.checkbtn_ssl_ask_unknown_valid = checkbtn_ssl_ask_unknown_valid;
+#endif
+#endif
}
static void date_format_ok_btn_clicked(GtkButton *button, GtkWidget **widget)
text = gtk_editable_get_chars(editable, 0, -1);
if (text)
strftime(buffer, sizeof buffer, text, cal_time);
- gtk_label_set_text(example, buffer);
g_free(text);
+ gtk_label_set_text(example, buffer);
}
static void date_format_select_row(GtkWidget *date_format_list, gint row,
GtkWidget *quotelevel2_label;
GtkWidget *quotelevel3_label;
GtkWidget *uri_label;
+ GtkWidget *signature_label;
GtkWidget *tgt_folder_label;
GtkWidget *hbbox;
GtkWidget *ok_btn;
gtk_container_set_border_width (GTK_CONTAINER (vbox), 8);
PACK_FRAME(vbox, frame_colors, _("Colors"));
- table = gtk_table_new (4, 2, FALSE);
+ table = gtk_table_new (5, 2, FALSE);
gtk_container_add (GTK_CONTAINER (frame_colors), table);
gtk_container_set_border_width (GTK_CONTAINER (table), 8);
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_widget_set_usize (color_buttons.tgt_folder_btn, 40, 30);
gtk_container_set_border_width (GTK_CONTAINER (color_buttons.tgt_folder_btn), 5);
+ color_buttons.signature_btn = gtk_button_new_with_label ("");
+ gtk_table_attach (GTK_TABLE (table), color_buttons.signature_btn,
+ 0, 1, 5, 6, 0, 0, 0, 0);
+ gtk_widget_set_usize (color_buttons.signature_btn, 40, 30);
+ gtk_container_set_border_width (GTK_CONTAINER (color_buttons.signature_btn), 5);
+
quotelevel1_label = gtk_label_new (_("Quoted Text - First Level"));
gtk_table_attach (GTK_TABLE (table), quotelevel1_label, 1, 2, 0, 1,
(GTK_EXPAND | GTK_FILL), 0, 0, 0);
gtk_label_set_justify (GTK_LABEL (tgt_folder_label), GTK_JUSTIFY_LEFT);
gtk_misc_set_alignment (GTK_MISC (tgt_folder_label), 0, 0.5);
+ signature_label = gtk_label_new (_("Signatures"));
+ gtk_table_attach (GTK_TABLE (table), signature_label, 1, 2, 5, 6,
+ (GTK_EXPAND | GTK_FILL), 0, 0, 0);
+ gtk_label_set_justify (GTK_LABEL (signature_label), GTK_JUSTIFY_LEFT);
+ gtk_misc_set_alignment (GTK_MISC (signature_label), 0, 0.5);
+
PACK_CHECK_BUTTON (vbox, recycle_colors_btn,
_("Recycle quote colors"));
GTK_SIGNAL_FUNC(quote_color_set_dialog), "URI");
gtk_signal_connect(GTK_OBJECT(color_buttons.tgt_folder_btn), "clicked",
GTK_SIGNAL_FUNC(quote_color_set_dialog), "TGTFLD");
+ gtk_signal_connect(GTK_OBJECT(color_buttons.signature_btn), "clicked",
+ GTK_SIGNAL_FUNC(quote_color_set_dialog), "SIGNATURE");
gtk_signal_connect(GTK_OBJECT(recycle_colors_btn), "toggled",
GTK_SIGNAL_FUNC(prefs_recycle_colors_toggled), NULL);
gtk_signal_connect(GTK_OBJECT(ok_btn), "clicked",
prefs_common.uri_col);
set_button_bg_color(color_buttons.tgt_folder_btn,
prefs_common.tgt_folder_col);
+ set_button_bg_color(color_buttons.signature_btn,
+ prefs_common.signature_col);
gtk_toggle_button_set_active((GtkToggleButton *)recycle_colors_btn,
prefs_common.recycle_quote_colors);
} else if(g_strcasecmp(type, "TGTFLD") == 0) {
title = _("Pick color for target folder");
rgbvalue = prefs_common.tgt_folder_col;
-#if USE_PSPELL
+ } else if(g_strcasecmp(type, "SIGNATURE") == 0) {
+ title = _("Pick color for signatures");
+ rgbvalue = prefs_common.signature_col;
+#if USE_ASPELL
} else if(g_strcasecmp(type, "Misspelled word") == 0) {
title = _("Pick color for misspelled word");
rgbvalue = prefs_common.misspelled_col;
prefs_common.tgt_folder_col = rgbvalue;
set_button_bg_color(color_buttons.tgt_folder_btn, rgbvalue);
folderview_set_target_folder_color(prefs_common.tgt_folder_col);
-#if USE_PSPELL
+ } else if (g_strcasecmp(type, "SIGNATURE") == 0) {
+ prefs_common.signature_col = rgbvalue;
+ set_button_bg_color(color_buttons.signature_btn, rgbvalue);
+#if USE_ASPELL
} else if (g_strcasecmp(type, "Misspelled word") == 0) {
prefs_common.misspelled_col = rgbvalue;
set_button_bg_color(spelling.misspelled_btn, rgbvalue);
gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
label = gtk_label_new
- (_("Select the preset of key bindings.\n"
- "You can also modify each menu's shortcuts by pressing\n"
- "any key(s) when placing the mouse pointer on the item."));
+ (_("Select preset:"));
gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
hbox1 = gtk_hbox_new (FALSE, 8);
gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
+ label = gtk_label_new
+ (_("You can also modify each menu shortcut by pressing\n"
+ "any key(s) when placing the mouse pointer on the item."));
+ gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
+ gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
+
+ hbox1 = gtk_hbox_new (FALSE, 8);
+ gtk_box_pack_start (GTK_BOX (vbox1), hbox1, FALSE, FALSE, 0);
+
gtkut_button_set_create (&confirm_area, &ok_btn, _("OK"),
&cancel_btn, _("Cancel"), NULL, NULL);
gtk_box_pack_end (GTK_BOX (hbox1), confirm_area, FALSE, FALSE, 0);
"(menu-path \"<Main>/View/Go to/Other folder...\" \"G\")\n"
"(menu-path \"<Main>/View/Open in new window\" \"<control><alt>N\")\n"
"(menu-path \"<Main>/View/View source\" \"<control>U\")\n"
- "(menu-path \"<Main>/View/Show all header\" \"<control>H\")\n"
+ "(menu-path \"<Main>/View/Show all headers\" \"<control>H\")\n"
"(menu-path \"<Main>/View/Update\" \"<control><alt>U\")\n"
"(menu-path \"<Main>/Message/Get new mail\" \"<control>I\")\n"
"(menu-path \"<Main>/Message/Get from all accounts\" \"<shift><control>I\")\n"
"(menu-path \"<Main>/Message/Compose an email message\" \"<control>M\")\n"
"(menu-path \"<Main>/Message/Reply\" \"<control>R\")\n"
- "(menu-path \"<Main>/Message/Reply to sender\" \"\")\n"
- "(menu-path \"<Main>/Message/Reply to all\" \"<shift><control>R\")\n"
+ "(menu-path \"<Main>/Message/Reply to/all\" \"<shift><control>R\")\n"
+ "(menu-path \"<Main>/Message/Reply to/sender\" \"\")\n"
+ "(menu-path \"<Main>/Message/Reply to/mailing list\" \"<control>L\")\n"
"(menu-path \"<Main>/Message/Forward\" \"<control><alt>F\")\n"
/* "(menu-path \"<Main>/Message/Forward as attachment\" \"\")\n" */
"(menu-path \"<Main>/Message/Move...\" \"<control>O\")\n"
"(menu-path \"<Main>/Tools/Address book\" \"<shift><control>A\")\n"
"(menu-path \"<Main>/Tools/Execute\" \"X\")\n"
- "(menu-path \"<Main>/Tools/Log window\" \"<control>L\")\n"
+ "(menu-path \"<Main>/Tools/Log window\" \"<shift><control>L\")\n"
"(menu-path \"<Compose>/File/Close\" \"<control>W\")\n"
"(menu-path \"<Compose>/Edit/Select all\" \"<control>A\")\n"
"(menu-path \"<Main>/View/Go to/Other folder...\" \"G\")\n"
"(menu-path \"<Main>/View/Open in new window\" \"<control><alt>N\")\n"
"(menu-path \"<Main>/View/View source\" \"<control>U\")\n"
- "(menu-path \"<Main>/View/Show all header\" \"<shift>H\")\n"
+ "(menu-path \"<Main>/View/Show all headers\" \"<shift>H\")\n"
"(menu-path \"<Main>/View/Update\" \"<shift>S\")\n"
"(menu-path \"<Main>/Message/Get new mail\" \"<control>I\")\n"
"(menu-path \"<Main>/Message/Get from all accounts\" \"<shift><control>I\")\n"
"(menu-path \"<Main>/Message/Compose an email message\" \"W\")\n"
"(menu-path \"<Main>/Message/Reply\" \"<control>R\")\n"
- "(menu-path \"<Main>/Message/Reply to sender\" \"\")\n"
- "(menu-path \"<Main>/Message/Reply to all\" \"<shift>A\")\n"
+ "(menu-path \"<Main>/Message/Reply to/all\" \"<shift>A\")\n"
+ "(menu-path \"<Main>/Message/Reply to/sender\" \"\")\n"
+ "(menu-path \"<Main>/Message/Reply to/mailing list\" \"<control>L\")\n"
"(menu-path \"<Main>/Message/Forward\" \"F\")\n"
/* "(menu-path \"<Main>/Message/Forward as attachment\" \"<shift>F\")\n" */
"(menu-path \"<Main>/Message/Move...\" \"O\")\n"
"(menu-path \"<Main>/Tools/Address book\" \"<shift><control>A\")\n"
"(menu-path \"<Main>/Tools/Execute\" \"X\")\n"
- "(menu-path \"<Main>/Tools/Log window\" \"<control>L\")\n"
+ "(menu-path \"<Main>/Tools/Log window\" \"<shift><control>L\")\n"
"(menu-path \"<Compose>/File/Close\" \"<alt>W\")\n"
"(menu-path \"<Compose>/Edit/Select all\" \"\")\n"
"(menu-path \"<Main>/View/Go to/Other folder...\" \"C\")\n"
"(menu-path \"<Main>/View/Open in new window\" \"<control><alt>N\")\n"
"(menu-path \"<Main>/View/View source\" \"<control>U\")\n"
- "(menu-path \"<Main>/View/Show all header\" \"<control>H\")\n"
+ "(menu-path \"<Main>/View/Show all headers\" \"<control>H\")\n"
"(menu-path \"<Main>/View/Update\" \"<control><alt>U\")\n"
"(menu-path \"<Main>/Message/Get new mail\" \"<control>I\")\n"
"(menu-path \"<Main>/Message/Get from all accounts\" \"<shift><control>I\")\n"
"(menu-path \"<Main>/Message/Compose new message\" \"M\")\n"
"(menu-path \"<Main>/Message/Reply\" \"R\")\n"
- "(menu-path \"<Main>/Message/Reply to all\" \"G\")\n"
- "(menu-path \"<Main>/Message/Reply to sender\" \"\")\n"
+ "(menu-path \"<Main>/Message/Reply to/all\" \"G\")\n"
+ "(menu-path \"<Main>/Message/Reply to/sender\" \"\")\n"
+ "(menu-path \"<Main>/Message/Reply to/mailing list\" \"<control>L\")\n"
"(menu-path \"<Main>/Message/Forward\" \"F\")\n"
"(menu-path \"<Main>/Message/Forward as attachment\" \"\")\n"
"(menu-path \"<Main>/Message/Move...\" \"<control>O\")\n"
"(menu-path \"<Main>/Tools/Address book\" \"<shift><control>A\")\n"
"(menu-path \"<Main>/Tools/Execute\" \"X\")\n"
- "(menu-path \"<Main>/Tools/Log window\" \"<control>L\")\n"
+ "(menu-path \"<Main>/Tools/Log window\" \"<shift><control>L\")\n"
"(menu-path \"<Compose>/File/Close\" \"<alt>W\")\n"
"(menu-path \"<Compose>/Edit/Select all\" \"\")\n"
"(menu-path \"<Main>/View/Go to/Other folder...\" \"<alt>G\")\n"
"(menu-path \"<Main>/View/Open in new window\" \"<shift><control>N\")\n"
"(menu-path \"<Main>/View/View source\" \"<control>U\")\n"
- "(menu-path \"<Main>/View/Show all header\" \"<control>H\")\n"
+ "(menu-path \"<Main>/View/Show all headers\" \"<control>H\")\n"
"(menu-path \"<Main>/View/Update\" \"<alt>U\")\n"
"(menu-path \"<Main>/Message/Get new mail\" \"<alt>I\")\n"
"(menu-path \"<Main>/Message/Get from all accounts\" \"<shift><alt>I\")\n"
"(menu-path \"<Main>/Message/Compose an email message\" \"<alt>N\")\n"
"(menu-path \"<Main>/Message/Reply\" \"<alt>R\")\n"
- "(menu-path \"<Main>/Message/Reply to sender\" \"<control><alt>R\")\n"
- "(menu-path \"<Main>/Message/Reply to all\" \"<shift><alt>R\")\n"
+ "(menu-path \"<Main>/Message/Reply to/all\" \"<shift><alt>R\")\n"
+ "(menu-path \"<Main>/Message/Reply to/sender\" \"<control><alt>R\")\n"
+ "(menu-path \"<Main>/Message/Reply to/mailing list\" \"<control>L\")\n"
"(menu-path \"<Main>/Message/Forward\" \"<shift><alt>F\")\n"
/* "(menu-path \"<Main>/Message/Forward as attachment\" \"<shift><control>F\")\n" */
"(menu-path \"<Main>/Message/Move...\" \"<alt>O\")\n"
"(menu-path \"<Compose>/Edit/Advanced/Delete a word backward\" \"<control>W\")\n"
"(menu-path \"<Compose>/Edit/Advanced/Delete a word forward\" \"<alt>D\")";
- static gchar *empty_menurc =
- "(menu-path \"<Main>/File/Empty trash\" \"\")\n"
- "(menu-path \"<Main>/File/Save as...\" \"\")\n"
- "(menu-path \"<Main>/File/Print...\" \"\")\n"
- "(menu-path \"<Main>/File/Exit\" \"\")\n"
-
- "(menu-path \"<Main>/Edit/Copy\" \"\")\n"
- "(menu-path \"<Main>/Edit/Select all\" \"\")\n"
- "(menu-path \"<Main>/Edit/Find in current message...\" \"\")\n"
- "(menu-path \"<Main>/Edit/Search folder...\" \"\")\n"
-
- "(menu-path \"<Main>/View/Expand Summary View\" \"\")\n"
- "(menu-path \"<Main>/View/Expand Message View\" \"\")\n"
- "(menu-path \"<Main>/View/Thread view\" \"\")\n"
- "(menu-path \"<Main>/View/Go to/Prev message\" \"\")\n"
- "(menu-path \"<Main>/View/Go to/Next message\" \"\")\n"
- "(menu-path \"<Main>/View/Go to/Prev unread message\" \"\")\n"
- "(menu-path \"<Main>/View/Go to/Next unread message\" \"\")\n"
- "(menu-path \"<Main>/View/Go to/Other folder...\" \"\")\n"
- "(menu-path \"<Main>/View/Open in new window\" \"\")\n"
- "(menu-path \"<Main>/View/View source\" \"\")\n"
- "(menu-path \"<Main>/View/Show all header\" \"\")\n"
- "(menu-path \"<Main>/View/Update\" \"\")\n"
-
- "(menu-path \"<Main>/Message/Get new mail\" \"\")\n"
- "(menu-path \"<Main>/Message/Get from all accounts\" \"\")\n"
- "(menu-path \"<Main>/Message/Compose an email message\" \"\")\n"
- "(menu-path \"<Main>/Message/Reply\" \"\")\n"
- "(menu-path \"<Main>/Message/Reply to sender\" \"\")\n"
- "(menu-path \"<Main>/Message/Reply to all\" \"\")\n"
- "(menu-path \"<Main>/Message/Forward\" \"\")\n"
- /* "(menu-path \"<Main>/Message/Forward as attachment\" \"\")\n" */
- "(menu-path \"<Main>/Message/Move...\" \"\")\n"
- "(menu-path \"<Main>/Message/Copy...\" \"\")\n"
- "(menu-path \"<Main>/Message/Delete\" \"\")\n"
- "(menu-path \"<Main>/Message/Mark/Mark\" \"\")\n"
- "(menu-path \"<Main>/Message/Mark/Unmark\" \"\")\n"
- "(menu-path \"<Main>/Message/Mark/Mark as unread\" \"\")\n"
- "(menu-path \"<Main>/Message/Mark/Mark as read\" \"\")\n"
-
- "(menu-path \"<Main>/Tools/Address book\" \"\")\n"
- "(menu-path \"<Main>/Tools/Execute\" \"\")\n"
- "(menu-path \"<Main>/Tools/Log window\" \"\")\n"
-
- "(menu-path \"<Compose>/File/Close\" \"\")\n"
- "(menu-path \"<Compose>/Edit/Select all\" \"\")\n"
- "(menu-path \"<Compose>/Edit/Advanced/Move a word backward\" \"\")\n"
- "(menu-path \"<Compose>/Edit/Advanced/Move a word forward\" \"\")\n"
- "(menu-path \"<Compose>/Edit/Advanced/Move to beginning of line\" \"\")\n"
- "(menu-path \"<Compose>/Edit/Advanced/Delete a word backward\" \"\")\n"
- "(menu-path \"<Compose>/Edit/Advanced/Delete a word forward\" \"\")";
-
text = gtk_entry_get_text(entry);
if (!strcmp(text, _("Default")))
else
return;
- gtk_item_factory_parse_rc_string(empty_menurc);
+ menu_factory_clear_rc(rc_str);
gtk_item_factory_parse_rc_string(rc_str);
gtk_widget_destroy(keybind.window);
static void prefs_common_charset_set_optmenu(PrefParam *pparam)
{
- GList *cur;
GtkOptionMenu *optmenu = GTK_OPTION_MENU(*pparam->widget);
- GtkWidget *menu;
- GtkWidget *menuitem;
- gchar *charset;
- gint n = 0;
+ gint index;
g_return_if_fail(optmenu != NULL);
g_return_if_fail(*((gchar **)pparam->data) != NULL);
- menu = gtk_option_menu_get_menu(optmenu);
- for (cur = GTK_MENU_SHELL(menu)->children;
- cur != NULL; cur = cur->next) {
- menuitem = GTK_WIDGET(cur->data);
- charset = gtk_object_get_user_data(GTK_OBJECT(menuitem));
- if (!strcmp(charset, *((gchar **)pparam->data))) {
- gtk_option_menu_set_history(optmenu, n);
- return;
- }
- n++;
+ index = menu_find_option_menu_index(optmenu, *((gchar **)pparam->data),
+ (GCompareFunc)strcmp);
+ if (index >= 0)
+ gtk_option_menu_set_history(optmenu, index);
+ else {
+ gtk_option_menu_set_history(optmenu, 0);
+ prefs_common_charset_set_data_from_optmenu(pparam);
}
+}
- gtk_option_menu_set_history(optmenu, 0);
- prefs_common_charset_set_data_from_optmenu(pparam);
+static void prefs_common_encoding_set_data_from_optmenu(PrefParam *pparam)
+{
+ GtkWidget *menu;
+ GtkWidget *menuitem;
+
+ menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(*pparam->widget));
+ menuitem = gtk_menu_get_active(GTK_MENU(menu));
+ *((TransferEncodingMethod *)pparam->data) = GPOINTER_TO_INT
+ (gtk_object_get_user_data(GTK_OBJECT(menuitem)));
+}
+
+static void prefs_common_encoding_set_optmenu(PrefParam *pparam)
+{
+ TransferEncodingMethod method =
+ *((TransferEncodingMethod *)pparam->data);
+ GtkOptionMenu *optmenu = GTK_OPTION_MENU(*pparam->widget);
+ gint index;
+
+ g_return_if_fail(optmenu != NULL);
+
+ index = menu_find_option_menu_index(optmenu, GINT_TO_POINTER(method),
+ NULL);
+ if (index >= 0)
+ gtk_option_menu_set_history(optmenu, index);
+ else {
+ gtk_option_menu_set_history(optmenu, 0);
+ prefs_common_encoding_set_data_from_optmenu(pparam);
+ }
}
static void prefs_common_recv_dialog_set_data_from_optmenu(PrefParam *pparam)
GtkOptionMenu *optmenu = GTK_OPTION_MENU(*pparam->widget);
GtkWidget *menu;
GtkWidget *menuitem;
+ gint index;
+
+ index = menu_find_option_menu_index(optmenu, GINT_TO_POINTER(mode),
+ NULL);
+ if (index >= 0)
+ gtk_option_menu_set_history(optmenu, index);
+ else {
+ gtk_option_menu_set_history(optmenu, 0);
+ prefs_common_recv_dialog_set_data_from_optmenu(pparam);
+ }
+
+ menu = gtk_option_menu_get_menu(optmenu);
+ menuitem = gtk_menu_get_active(GTK_MENU(menu));
+ gtk_menu_item_activate(GTK_MENU_ITEM(menuitem));
+}
+
+static void prefs_common_send_dialog_set_data_from_optmenu(PrefParam *pparam)
+{
+ GtkWidget *menu;
+ GtkWidget *menuitem;
+
+ menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(*pparam->widget));
+ menuitem = gtk_menu_get_active(GTK_MENU(menu));
+ *((SendDialogMode *)pparam->data) = GPOINTER_TO_INT
+ (gtk_object_get_user_data(GTK_OBJECT(menuitem)));
+}
+
+static void prefs_common_send_dialog_set_optmenu(PrefParam *pparam)
+{
+ SendDialogMode mode = *((SendDialogMode *)pparam->data);
+ GtkOptionMenu *optmenu = GTK_OPTION_MENU(*pparam->widget);
+ GtkWidget *menu;
+ GtkWidget *menuitem;
switch (mode) {
- case RECV_DIALOG_ALWAYS:
+ case SEND_DIALOG_ALWAYS:
gtk_option_menu_set_history(optmenu, 0);
break;
- case RECV_DIALOG_ACTIVE:
+ case SEND_DIALOG_NEVER:
gtk_option_menu_set_history(optmenu, 1);
break;
- case RECV_DIALOG_NEVER:
- gtk_option_menu_set_history(optmenu, 2);
- break;
default:
break;
}
{
gchar *entry_pixmap_theme_str;
gboolean update_pixmap_theme;
+ gchar *backup_theme_path;
entry_pixmap_theme_str = gtk_entry_get_text(GTK_ENTRY(interface.entry_pixmap_theme));
if (entry_pixmap_theme_str &&
update_pixmap_theme = TRUE;
else
update_pixmap_theme = FALSE;
-
+
+ /*!< FIXME: prefs_set_data_from_dialog() clears and frees all strings,
+ * but prefs_common.pixmap_theme_path is stored in the StockPixmapData
+ * in stock_pixmap.c::pixmaps[].icon_path, and used when reflecting
+ * the pixmap changes. Work around by saving the old one and freeing
+ * it later. */
+ backup_theme_path = prefs_common.pixmap_theme_path;
+ prefs_common.pixmap_theme_path = g_strdup(backup_theme_path);
prefs_set_data_from_dialog(param);
+ sock_set_io_timeout(prefs_common.io_timeout_secs);
- if (update_pixmap_theme)
- {
+ if (update_pixmap_theme) {
main_window_reflect_prefs_all_real(TRUE);
compose_reflect_prefs_pixmap_theme();
} else
main_window_reflect_prefs_all_real(FALSE);
+
+ /*!< FIXME: Now it's safe to delete the backup path */
+ g_free(backup_theme_path);
prefs_common_save_config();