Remove obsolete font prefs
[claws.git] / src / prefs_common.c
index f4acf34c01b679c6ac011c3fbef0fcefc1be1c6a..7be13c4bae1e95ec8ea28a2513a875cfb4f2040a 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2016 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
@@ -14,7 +14,6 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * 
  */
 
 #ifdef HAVE_CONFIG_H
@@ -141,6 +140,9 @@ static PrefParam param_os_specific[] = {
  */
 
 static PrefParam param[] = {
+       {"config_version", "0",
+        &prefs_common.config_version, P_INT, NULL, NULL, NULL},
+
        /* Receive */
        {"use_ext_inc", "FALSE", &prefs_common.use_extinc, P_BOOL,
         NULL, NULL, NULL},
@@ -149,7 +151,7 @@ static PrefParam param[] = {
 
        {"autochk_newmail", "FALSE", &prefs_common.autochk_newmail, P_BOOL,
         NULL, NULL, NULL},
-       {"autochk_interval", "10", &prefs_common.autochk_itv, P_INT,
+       {"autochk_interval", "600", &prefs_common.autochk_itv, P_INT,
         NULL, NULL, NULL},
        {"check_on_startup", "FALSE", &prefs_common.chk_on_startup, P_BOOL,
         NULL, NULL, NULL},
@@ -197,9 +199,16 @@ static PrefParam param[] = {
         NULL, NULL, NULL},
        {"outgoing_fallback_to_ascii", "TRUE", &prefs_common.outgoing_fallback_to_ascii, P_BOOL,
         NULL, NULL, NULL},
-        {"warn_empty_subj", "TRUE", &prefs_common.warn_empty_subj,
+        {"rewrite_first_from", "TRUE", &prefs_common.rewrite_first_from,
+         P_BOOL, NULL, NULL, NULL},
+       {"warn_empty_subj", "TRUE", &prefs_common.warn_empty_subj,
+        P_BOOL, NULL, NULL, NULL},
+       {"warn_sending_many_recipients", "FALSE", &prefs_common.warn_sending_many_recipients,
+        P_BOOL, NULL, NULL, NULL},
+       {"warn_sending_many_recipients_num", "1", &prefs_common.warn_sending_many_recipients_num, P_INT,
+        NULL, NULL, NULL},
+       {"hide_timezone", "FALSE", &prefs_common.hide_timezone,
         P_BOOL, NULL, NULL, NULL},
-
        {"allow_jisx0201_kana", "FALSE", &prefs_common.allow_jisx0201_kana,
         P_BOOL, NULL, NULL, NULL},
 
@@ -310,19 +319,7 @@ static PrefParam param[] = {
         NULL, NULL, NULL},
 
        /* Display */
-       /* Obsolete fonts. For coexisting with Gtk+-1.2 version */
-       {"widget_font",         NULL,
-         &prefs_common.widgetfont_gtk1,        P_STRING, NULL, NULL, NULL},
-       {"message_font",        "-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*",
-        &prefs_common.textfont_gtk1,           P_STRING, NULL, NULL, NULL},
-       {"small_font",          "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*",
-         &prefs_common.smallfont_gtk1,         P_STRING, NULL, NULL, NULL},
-       {"bold_font",           "-*-helvetica-bold-r-normal--12-*-*-*-*-*-*-*",
-         &prefs_common.boldfont_gtk1,          P_STRING, NULL, NULL, NULL},
-       {"normal_font",         "-*-helvetica-medium-r-normal--12-*-*-*-*-*-*-*",
-         &prefs_common.normalfont_gtk1,        P_STRING, NULL, NULL, NULL},
-
-       /* new fonts */
+       /* fonts */
 #ifndef GENERIC_UMPC
        {"widget_font_gtk2",    NULL,
          &SPECIFIC_PREFS.widgetfont,           P_STRING, NULL, NULL, NULL},
@@ -721,6 +718,23 @@ static PrefParam param[] = {
        {"recycle_quote_colors", "FALSE", &prefs_common.recycle_quote_colors,
         P_BOOL, NULL, NULL, NULL},
 
+       {"default_header_color", "#000000", &prefs_common.default_header_color, P_COLOR,
+        NULL, NULL, NULL},
+       {"default_header_bgcolor", "#f5f6be", &prefs_common.default_header_bgcolor, P_COLOR,
+        NULL, NULL, NULL},
+       {"tags_color", "#000000", &prefs_common.tags_color, P_COLOR,
+        NULL, NULL, NULL},
+       {"tags_bgcolor", "#f5f6be", &prefs_common.tags_bgcolor, P_COLOR,
+        NULL, NULL, NULL},
+       {"qs_active_color", "#000000", &prefs_common.qs_active_color, P_COLOR,
+        NULL, NULL, NULL},
+       {"qs_active_bgcolor", "#f5f6be", &prefs_common.qs_active_bgcolor, P_COLOR,
+        NULL, NULL, NULL},
+       {"qs_error_color", "#000000", &prefs_common.qs_error_color, P_COLOR,
+        NULL, NULL, NULL},
+       {"qs_error_bgcolor", "#ff7070", &prefs_common.qs_error_bgcolor, P_COLOR,
+        NULL, NULL, NULL},
+
        {"display_header_pane", "FALSE", &prefs_common.display_header_pane,
         P_BOOL, NULL, NULL, NULL},
        {"display_header", "TRUE", &prefs_common.display_header, P_BOOL,
@@ -781,6 +795,9 @@ static PrefParam param[] = {
 #endif
        /* {"emulate_emacs", "FALSE", &prefs_common.emulate_emacs, P_BOOL,
         NULL, NULL, NULL}, */
+       {"open_selected_message_on_folder_open", "FALSE",
+        &prefs_common.open_selected_on_folder_open,
+        P_BOOL, NULL, NULL, NULL},
        {"always_show_message_when_selected", "0",
         &prefs_common.always_show_msg,
         P_ENUM, NULL, NULL, NULL},