2013-01-21 [paul] 3.9.0cvs56
[claws.git] / src / common / defs.h
index 63e04892d24b33f35954fdd9906f1489ce884cd1..dfbf8e2380830d395b90452bc1ebbfac0774d9d1 100644 (file)
@@ -1,10 +1,10 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
+ * Copyright (C) 1999-2012 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
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * 
  */
 
 #ifndef __DEFS_H__
 #define __DEFS_H__
 
 #ifdef HAVE_CONFIG_H
-#  include "config.h"
+#include "claws-features.h"
 #endif
 
-#include <glibconfig.h>
-
-#ifdef G_OS_WIN32
-#  include <glib/gwin32.h>
-#endif
+#include <glib.h>
 
 #if HAVE_PATHS_H
 #  include <paths.h>
@@ -47,6 +43,7 @@
 #define OLD_GTK2_RC_DIR                ".sylpheed-claws"
 #define OLDER_GTK2_RC_DIR      ".sylpheed-gtk2"
 #define OLD_GTK1_RC_DIR                ".sylpheed"
+#define SYLPHEED_RC_DIR                ".sylpheed-2.0"
 #define NEWS_CACHE_DIR         "newscache"
 #define IMAP_CACHE_DIR         "imapcache"
 #define MBOX_CACHE_DIR         "mboxcache"
@@ -63,6 +60,7 @@
 #define MATCHER_RC             "matcherrc"
 #define MENU_RC                        "menurc"
 #define RENDERER_RC            "rendererrc"
+#define TAGS_RC                        "tagsrc"
 #define QUICKSEARCH_HISTORY    "quicksearch_history"
 #define SUMMARY_SEARCH_FROM_HISTORY    "summarysearch_from_history"
 #define SUMMARY_SEARCH_TO_HISTORY      "summarysearch_to_history"
 #define SUMMARY_SEARCH_BODY_HISTORY    "summary_searchbody_history"
 #define SUMMARY_SEARCH_ADV_CONDITION_HISTORY   "summarysearch_adv_history"
 #define MESSAGE_SEARCH_HISTORY "messagesearch_history"
+#define COMPOSE_SAVE_TO_HISTORY        "compose_save_to_history"
+#define ADDRESSBOOK_CUSTOM_ATTRIBUTES "attributesrc"
 #define TEMPLATE_DIR           "templates"
 #define TMP_DIR                        "tmp"
 #define UIDL_DIR               "uidl"
 #define NEWSGROUP_LIST         ".newsgroup_list"
 #define ADDRESS_BOOK           "addressbook.xml"
+#define ADDRBOOK_DIR           "addrbook"
 #define MANUAL_HTML_INDEX      "claws-mail-manual.html"
 #define HOMEPAGE_URI           "http://www.claws-mail.org/"
 #define MANUAL_URI             "http://www.claws-mail.org/documentation.php"
 #define FAQ_URI                        "http://www.claws-mail.org/faq/index.php"
 #define PLUGINS_URI            "http://www.claws-mail.org/plugins.php"
+#define DICTS_URI              "http://www.claws-mail.org/win32/dictionaries.php"
 #define BUGZILLA_URI           "http://www.thewildbeast.co.uk/claws-mail/bugzilla/enter_bug.cgi"
 #define THEMES_URI             "http://www.claws-mail.org/themes.php"
+#define TOOLS_URI              "http://www.claws-mail.org/tools.php"
 #define MAILING_LIST_URI       "http://www.claws-mail.org/MLs.php"
-#define USERS_ML_ADDR          "claws-mail-users@dotsrc.org"
+#define USERS_ML_ADDR          "users@lists.claws-mail.org"
+#define USERS_ML_URI           "http://lists.claws-mail.org/cgi-bin/mailman/listinfo/users"
 #define GPL_URI                        "http://www.gnu.org/licenses/gpl.html"
 #define DONATE_URI             "http://www.claws-mail.org/sponsors.php"
-#define OPENSSL_URI            "http://www.openssl.org/"
 #define RELEASE_NOTES_FILE     "RELEASE_NOTES"
 #define THEMEINFO_FILE         ".claws_themeinfo"
 #define FOLDER_LIST            "folderlist.xml"
-#define CACHE_FILE             ".sylpheed_claws_cache"
-#define MARK_FILE              ".sylpheed_mark"
+#define OLD_CACHE_FILE         ".sylpheed_claws_cache"
+#define CACHE_FILE             ".claws_cache"
+#define OLD_MARK_FILE          ".sylpheed_mark"
+#define MARK_FILE              ".claws_mark"
+#define TAGS_FILE              ".claws_tags"
+#define PRINTING_PAGE_SETUP_STORAGE_FILE "print_page_setup"
 #define CACHE_VERSION          24
 #define MARK_VERSION           2
+#define TAGS_VERSION           1
+
+#ifdef MAEMO
+#define MMC1_PATH "/media/mmc1"
+#define MMC2_PATH "/media/mmc2"
+#endif
 
 #ifdef G_OS_WIN32
 #  define ACTIONS_RC           "actionswinrc"
 #define FOLDER_UPDATE_INTERVAL         1500    /* msec */
 #define PROGRESS_UPDATE_INTERVAL       200     /* msec */
 #define SESSION_TIMEOUT_INTERVAL       60      /* sec */
-#define MAX_HISTORY_SIZE               16
-
+#define MAX_HISTORY_SIZE               32
+#define HSPACING_NARROW                        4
+#define VSPACING                       10
+#define VSPACING_NARROW                        4
+#define VSPACING_NARROW_2              2
+#define VBOX_BORDER                    8
+#define DEFAULT_ENTRY_WIDTH            80
+/* labels bigger than this causes crash with the X Window System error:
+   'BadAlloc (insufficient resources for operation)' */
+#define MAX_MENU_LABEL_LENGTH          5453
+
+#define BOLD_FONT prefs_common.boldfont
 #define NORMAL_FONT prefs_common.normalfont
 #define SMALL_FONT     prefs_common.smallfont