Fix bug 2458 “Option to force header type to pre-defined-only”
[claws.git] / src / prefs_common.h
index b2a9daf4a28bc9ceb1d38fe6b38079bd25f35d90..e9686ae12fdf50d331589f4089f5b0a3246e9e7d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2011 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2013 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
@@ -21,7 +21,7 @@
 #define __PREFS_COMMON_H__
 
 #ifdef HAVE_CONFIG_H
-#  include "config.h"
+#include "claws-features.h"
 #endif
 
 #include <glib.h>
@@ -102,11 +102,16 @@ typedef enum
        SHOW_BOTH
 } SummaryFromShow;
 
+typedef enum
+{
+       AVATARS_DISABLE = 0,
+       AVATARS_ENABLE_CAPTURE = 1,
+       AVATARS_ENABLE_RENDER = 2,
+       AVATARS_ENABLE_BOTH = 3
+} EnableAvatars;
+
 struct _PrefsCommon
 {
-#ifdef MAEMO
-       gchar *data_root;
-#endif
        /* Receive */
        gboolean use_extinc;
        gchar *extinc_cmd;
@@ -118,11 +123,6 @@ struct _PrefsCommon
        gboolean newmail_notify_auto;
        gboolean newmail_notify_manu;
        gchar   *newmail_notify_cmd;
-#ifdef MAEMO
-       gboolean maemo_show_led;
-       gboolean maemo_play_sound;
-       gboolean maemo_show_banner;
-#endif
        RecvDialogMode recv_dialog_mode;
        gint receivewin_width;
        gint receivewin_height;
@@ -138,6 +138,7 @@ struct _PrefsCommon
        gchar *outgoing_charset;
        TransferEncodingMethod encoding_method;
        gboolean outgoing_fallback_to_ascii;
+       gboolean warn_empty_subj;
 
        gboolean allow_jisx0201_kana;
 
@@ -157,6 +158,7 @@ struct _PrefsCommon
        gboolean show_ruler;
        gboolean autosave;
        gint autosave_length;
+       gboolean autosave_encrypted;
        gboolean warn_large_insert;
        gint warn_large_insert_size;
        gboolean compose_no_markup;
@@ -165,6 +167,7 @@ struct _PrefsCommon
        gchar *compose_subject_format;
        gchar *compose_body_format;
        gboolean show_compose_margin;
+       gboolean type_any_header;
 
        /* Quote */
        gboolean reply_with_quote;
@@ -174,7 +177,6 @@ struct _PrefsCommon
        gchar *fw_quotefmt;
        gboolean forward_as_attachment;
        gboolean redirect_keep_from;
-       gboolean block_cursor;
        gchar *quote_chars;
        
        gboolean enable_aspell;
@@ -288,6 +290,7 @@ struct _PrefsCommon
        gint mainwin_height;
        gint mainwin_maximised;
        gint mainwin_fullscreen;
+       gint mainwin_menubar;
 
        gint msgwin_width;
        gint msgwin_height;
@@ -330,6 +333,7 @@ struct _PrefsCommon
        gboolean scroll_halfpage;
        gboolean hide_quoted;
        gboolean respect_flowed_format;
+       gboolean show_all_headers;
 
        gboolean show_other_header;
        GSList *disphdr_list;
@@ -377,6 +381,8 @@ struct _PrefsCommon
        /* Other */
 #ifndef G_OS_WIN32
        gchar *uri_cmd;
+#else
+       gchar *gtk_theme;
 #endif
        gchar *ext_editor_cmd;
        gboolean cmds_use_system_default;
@@ -518,6 +524,16 @@ struct _PrefsCommon
        gboolean inherit_folder_props;
        gboolean flush_metadata;
 
+       gint nav_history_length;
+
+       gulong diff_added_color;
+       gulong diff_deleted_color;
+       gulong diff_hunk_color;
+       
+       gboolean folder_search_wildcard;
+       gboolean address_search_wildcard;
+
+       guint enable_avatars;
 };
 
 extern PrefsCommon prefs_common;