GtkWidget *checkbtn_newmail_manu;
GtkWidget *entry_newmail_notify_cmd;
GtkWidget *hbox_newmail_notify;
-
- GtkWidget *spinbtn_maxarticle;
- GtkObject *spinbtn_maxarticle_adj;
} receive;
static struct Send {
GtkObject *spinbtn_scrollstep_adj;
GtkWidget *chkbtn_halfpage;
- GtkWidget *chkbtn_display_img;
- GtkWidget *chkbtn_resize_image;
+ GtkWidget *chkbtn_attach_desc;
} message;
#if USE_GPGME
GtkWidget *checkbtn_show_msg_with_cursor;
GtkWidget *checkbtn_openunread;
GtkWidget *checkbtn_mark_as_read_on_newwin;
+ GtkWidget *checkbtn_open_on_delete;
GtkWidget *checkbtn_openinbox;
GtkWidget *checkbtn_immedexec;
GtkWidget *optmenu_recvdialog;
&receive.entry_newmail_notify_cmd,
prefs_set_data_from_entry, prefs_set_entry},
- {"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,
&p_send.checkbtn_extsend,
{"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,
&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", "7960953", &prefs_common.signature_col, P_INT,
+ {"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},
&message.chkbtn_halfpage,
prefs_set_data_from_toggle, prefs_set_toggle},
- {"display_img", "TRUE", &prefs_common.display_img, P_BOOL,
- &message.chkbtn_display_img,
- prefs_set_data_from_toggle, prefs_set_toggle},
- {"resize_image", "TRUE", &prefs_common.resize_image, P_BOOL,
- &message.chkbtn_resize_image,
- prefs_set_data_from_toggle, prefs_set_toggle},
-
{"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},
&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_on_delete", "TRUE",
+ &prefs_common.open_on_delete,
+ P_BOOL, &interface.checkbtn_open_on_delete,
+ 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},
{"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}
};
prefs_common.disphdr_list = NULL;
}
+PrefsCommon *prefs_common_get(void)
+{
+ return &prefs_common;
+}
+
void prefs_common_read_config(void)
{
FILE *fp;
GtkWidget *entry_newmail_notify_cmd;
GtkWidget *label_newmail_notify_cmd;
- GtkWidget *frame_news;
- GtkWidget *label_maxarticle;
- GtkWidget *spinbtn_maxarticle;
- GtkObject *spinbtn_maxarticle_adj;
-
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
gtk_container_add (GTK_CONTAINER (dialog.notebook), vbox1);
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;
}
static void prefs_send_create(void)
{
GtkWidget *vbox1;
GtkWidget *vbox2;
- GtkWidget *hbox1;
GtkWidget *checkbtn_autoextedit;
GtkWidget *spinbtn_scrollstep;
GtkWidget *chkbtn_halfpage;
- GtkWidget *chkbtn_display_img;
- GtkWidget *chkbtn_resize_image;
+ GtkWidget *chkbtn_attach_desc;
vbox1 = gtk_vbox_new (FALSE, VSPACING);
gtk_widget_show (vbox1);
gtk_widget_show (vbox3);
gtk_box_pack_start (GTK_BOX (vbox1), vbox3, FALSE, FALSE, 0);
- PACK_CHECK_BUTTON(vbox3, chkbtn_display_img,
- _("Automatically display attached images"));
+ PACK_CHECK_BUTTON(vbox3, chkbtn_attach_desc,
+ _("Show attachment descriptions (rather than names)"));
- PACK_CHECK_BUTTON(vbox3, chkbtn_resize_image,
- _("Resize attached images"));
message.chkbtn_enablecol = chkbtn_enablecol;
message.button_edit_col = button_edit_col;
message.spinbtn_scrollstep_adj = spinbtn_scrollstep_adj;
message.chkbtn_halfpage = chkbtn_halfpage;
- message.chkbtn_display_img = chkbtn_display_img;
- message.chkbtn_resize_image = chkbtn_resize_image;
+ message.chkbtn_attach_desc = chkbtn_attach_desc;
}
#if USE_GPGME
GtkWidget *checkbtn_show_msg_with_cursor;
GtkWidget *checkbtn_openunread;
GtkWidget *checkbtn_mark_as_read_on_newwin;
+ GtkWidget *checkbtn_open_on_delete;
GtkWidget *checkbtn_openinbox;
GtkWidget *checkbtn_immedexec;
GtkWidget *frame_dialogs;
(vbox2, checkbtn_mark_as_read_on_newwin,
_("Only mark message as read when opened in new window"));
+ PACK_CHECK_BUTTON
+ (vbox2, checkbtn_open_on_delete,
+ _("Open next message on deletion"));
+
PACK_CHECK_BUTTON
(vbox2, checkbtn_openinbox,
_("Go to inbox after receiving new mail"));
interface.checkbtn_openunread = checkbtn_openunread;
interface.checkbtn_mark_as_read_on_newwin
= checkbtn_mark_as_read_on_newwin;
+ interface.checkbtn_open_on_delete
+ = checkbtn_open_on_delete;
interface.checkbtn_openinbox = checkbtn_openinbox;
interface.checkbtn_immedexec = checkbtn_immedexec;
interface.optmenu_recvdialog = optmenu_recvdialog;
"(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 headers\" \"\")\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/all\" \"\")\n"
- "(menu-path \"<Main>/Message/Reply to/sender\" \"\")\n"
- "(menu-path \"<Main>/Message/Reply to/mailing list\" \"\")\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);