/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2009 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2011 Hiroyuki Yamamoto and the Claws Mail team
*
* 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
&prefs_common.compose_subject_format, P_STRING, NULL, NULL, NULL},
{"compose_body_format", N_("Hello,\\n"),
&prefs_common.compose_body_format, P_STRING, NULL, NULL, NULL},
+ {"show_compose_margin", "FALSE", &prefs_common.show_compose_margin, P_BOOL,
+ NULL, NULL, NULL},
+
{"linewrap_length", "72", &prefs_common.linewrap_len, P_INT,
NULL, NULL, NULL},
P_BOOL, NULL, NULL, NULL},
{"autosave_length", "50", &prefs_common.autosave_length, P_INT,
NULL, NULL, NULL},
+ {"warn_large_insert", "TRUE", &prefs_common.warn_large_insert,
+ P_BOOL, NULL, NULL, NULL},
+ {"warn_large_insert_size", "500", &prefs_common.warn_large_insert_size,
+ P_INT, NULL, NULL, NULL},
{"enable_aspell", "TRUE", &prefs_common.enable_aspell, P_BOOL,
NULL, NULL, NULL},
NULL, NULL, NULL},
{"thread_by_subject", "TRUE", &prefs_common.thread_by_subject, P_BOOL,
NULL, NULL, NULL},
- {"date_format", N_("%y/%m/%d(%a) %H:%M"), &prefs_common.date_format,
+ {"date_format", N_("%x(%a) %H:%M"), &prefs_common.date_format,
P_STRING, NULL, NULL, NULL},
+ {"msgview_date_format", "FALSE", &prefs_common.msgview_date_format, P_BOOL,
+ NULL, NULL, NULL},
{"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
NULL, NULL, NULL},
NULL, NULL, NULL},
{"messagewin_height", "540", &prefs_common.msgwin_height, P_INT,
NULL, NULL, NULL},
+ {"mimeview_tree_height", "60", &prefs_common.mimeview_tree_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,
{"compose_height", "470", &prefs_common.compose_height, P_INT,
NULL, NULL, NULL},
#endif
+ {"compose_notebook_height", "130", &prefs_common.compose_notebook_height, P_INT,
+ NULL, NULL, NULL},
{"compose_x", "0", &prefs_common.compose_x, P_INT,
NULL, NULL, NULL},
{"compose_y", "0", &prefs_common.compose_y, P_INT,
NULL, NULL, NULL},
{"scroll_half_page", "FALSE", &prefs_common.scroll_halfpage, P_BOOL,
NULL, NULL, NULL},
+ {"hide_quoted", "TRUE",
+ &prefs_common.hide_quoted, P_BOOL,
+ NULL, NULL, NULL},
{"respect_flowed_format", "FALSE", &prefs_common.respect_flowed_format, P_BOOL,
NULL, NULL, NULL},
&SPECIFIC_PREFS.mime_textviewer, P_STRING, NULL, NULL, NULL},
{"mime_open_command", "gedit '%s'",
&SPECIFIC_PREFS.mime_open_cmd, P_STRING, NULL, NULL, NULL},
+ {"show_inline_attachments", "TRUE",
+ &prefs_common.show_inline_attachments, P_BOOL, NULL, NULL, NULL},
/* Interface */
#ifndef GENERIC_UMPC
NULL, NULL, NULL},
{"nextunreadmsg_dialog", "1", &prefs_common.next_unread_msg_dialog, P_ENUM,
NULL, NULL, NULL},
+ {"summary_from_show", "0", &prefs_common.summary_from_show, P_ENUM,
+ NULL, NULL, NULL},
{"pixmap_theme_path", DEFAULT_PIXMAP_THEME,
&SPECIFIC_PREFS.pixmap_theme_path, P_STRING,
#ifndef G_OS_WIN32
{"uri_open_command", DEFAULT_BROWSER_CMD,
&SPECIFIC_PREFS.uri_cmd, P_STRING, NULL, NULL, NULL},
- {"print_command", "lpr %s",
- &SPECIFIC_PREFS.print_cmd, P_STRING, NULL, NULL, NULL},
#endif
{"ext_editor_command", DEFAULT_EDITOR_CMD,
&SPECIFIC_PREFS.ext_editor_cmd, P_STRING, NULL, NULL, NULL},
- {"cmds_use_system_default", "FALSE",
+ {"cmds_use_system_default", "TRUE",
&prefs_common.cmds_use_system_default, P_BOOL, NULL, NULL, NULL},
{"add_address_by_click", "FALSE", &prefs_common.add_address_by_click,
P_BOOL, NULL, NULL, NULL},
{"filtering_debug_log_length", "500", &prefs_common.filtering_debug_loglength, P_INT,
NULL, NULL, NULL},
- {"gtk_can_change_accels", "TRUE", &prefs_common.gtk_can_change_accels, P_BOOL,
+ {"gtk_can_change_accels", "FALSE", &prefs_common.gtk_can_change_accels, P_BOOL,
NULL, NULL, NULL},
{"color_new", "#0000b3", &prefs_common.color_new, P_COLOR,
{"addressbook_folderselwin_height", "-1", &prefs_common.addressbook_folderselwin_height, P_INT,
NULL, NULL, NULL},
+ {"aboutwin_width", "450", &prefs_common.aboutwin_width, P_INT,
+ NULL, NULL, NULL},
+ {"aboutwin_height", "500", &prefs_common.aboutwin_height, P_INT,
+ NULL, NULL, NULL},
+
+ {"addrgather_width", "450", &prefs_common.addrgather_width, P_INT,
+ NULL, NULL, NULL},
+ {"addrgather_height", "-1", &prefs_common.addrgather_height, P_INT,
+ NULL, NULL, NULL},
+
+ {"news_subscribe_width", "450", &prefs_common.news_subscribe_width, P_INT,
+ NULL, NULL, NULL},
+ {"news_subscribe_height", "400", &prefs_common.news_subscribe_height, P_INT,
+ NULL, NULL, NULL},
+
/* Hidden */
{"warn_dnd", "1", &prefs_common.warn_dnd, P_INT,
NULL, NULL, NULL},
NULL, NULL, NULL},
{"stripes_color_offset", "4000", &prefs_common.stripes_color_offset, P_INT,
NULL, NULL, NULL},
- {"enable_dotted_lines", "FALSE", &prefs_common.enable_dotted_lines, P_BOOL,
- NULL, NULL, NULL},
{"enable_hscrollbar", "TRUE", &prefs_common.enable_hscrollbar, P_BOOL,
NULL, NULL, NULL},
{"folderview_vscrollbar_policy", "0",
{"inherit_folder_properties", "FALSE", &prefs_common.inherit_folder_props, P_BOOL,
NULL, NULL, NULL},
+ {"flush_metadata", "TRUE", &prefs_common.flush_metadata, P_BOOL,
+ NULL, NULL, NULL},
+
{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
};
if (!txt) {
gtk_text_buffer_set_text(buffer, "", -1);
} else {
- out = malloc(strlen(txt)+1);
+ out = g_malloc(strlen(txt)+1);
pref_get_unescaped_pref(out, txt);
if (!txt) {
gtk_entry_set_text(entry, "");
} else {
- out = malloc(strlen(txt)+1);
+ out = g_malloc(strlen(txt)+1);
pref_get_unescaped_pref(out, txt);
return prefs_common.use_shred;
}
+gboolean prefs_common_get_flush_metadata (void)
+{
+ return prefs_common.flush_metadata;
+}
+
PrefsCommon *prefs_common_get_prefs(void)
{
return &prefs_common;