2006-02-08 [colin] 2.0.0cvs36
[claws.git] / src / common / defs.h
index 730591c6b6f68d20dee9e4a306b2de0133346177..0de58cbdea209ad3c0ca765ea5fbaffa2425f90a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2004 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws 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,7 @@
  *
  * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #ifndef __DEFS_H__
 #  include "config.h"
 #endif
 
+#include <glibconfig.h>
+
+#ifdef G_OS_WIN32
+#  include <glib/gwin32.h>
+#endif
+
 #if HAVE_PATHS_H
 #  include <paths.h>
 #endif
 #define QUEUE_DIR              "queue"
 #define DRAFT_DIR              "draft"
 #define TRASH_DIR              "trash"
-#ifndef CLAWS /* easier to sync */
-#define RC_DIR                 ".sylpheed"
-#else
-#define RC_DIR                 CFG_RC_DIR      
-#endif /* CLAWS */
+#define RC_DIR                 CFG_RC_DIR
+#define OLD_GTK2_RC_DIR                ".sylpheed-gtk2"
+#define OLD_GTK1_RC_DIR                ".sylpheed"
 #define NEWS_CACHE_DIR         "newscache"
 #define IMAP_CACHE_DIR         "imapcache"
 #define MBOX_CACHE_DIR         "mboxcache"
 #define FILTERING_RC           "filteringrc"
 #define MATCHER_RC             "matcherrc"
 #define MENU_RC                        "menurc"
-#define ACTIONS_RC             "actionsrc"
 #define RENDERER_RC            "rendererrc"
-#define COMMAND_HISTORY                "command_history"
 #define QUICKSEARCH_HISTORY    "quicksearch_history"
 #define TEMPLATE_DIR           "templates"
 #define TMP_DIR                        "tmp"
+#define UIDL_DIR               "uidl"
 #define NEWSGROUP_LIST         ".newsgroup_list"
 #define ADDRESS_BOOK           "addressbook.xml"
-#define MANUAL_HTML_INDEX      "sylpheed.html"
-#define FAQ_HTML_INDEX         "sylpheed-faq.html"
+#define MANUAL_HTML_INDEX      "sylpheed-claws-manual.html"
 #define HOMEPAGE_URI           "http://claws.sylpheed.org/"
-#define SYLDOC_URI             "http://sylpheeddoc.sourceforge.net/"
-#define SYLDOC_MANUAL_HTML_INDEX "/manual/manual.html"
-#define SYLDOC_FAQ_HTML_INDEX  "/faq/faq.html"
-#define CLAWS_FAQ_URI          "http://sylpheed-claws.sourceforge.net/phpwiki/index.php"
-#define CLAWS_BUGZILLA_URI     "http://www.thewildbeast.co.uk/sylpheed-claws/bugzilla/enter_bug.cgi"
-#define CLAWS_THEMES_URI       "http://sylpheed-claws.sourceforge.net/themes.php"
+#define MANUAL_URI             "http://claws.sylpheed.org/manual/"
+#define FAQ_URI                        "http://claws.sylpheed.org/faq.php"
+#define BUGZILLA_URI           "http://www.thewildbeast.co.uk/sylpheed-claws/bugzilla/enter_bug.cgi"
+#define THEMES_URI             "http://claws.sylpheed.org/themes.php"
+#define MAILING_LIST_URI       "http://claws.sylpheed.org/MLs.php"
+#define GPL_URI                        "http://www.gnu.org/licenses/gpl.html"
+#define DONATE_URI             "https://sourceforge.net/donate/index.php?group_id=25528"
 #define THEMEINFO_FILE         ".sylpheed_themeinfo"
 #define FOLDER_LIST            "folderlist.xml"
-#define CACHE_FILE             ".sylpheed_cache"
+#define CACHE_FILE             ".sylpheed_claws_cache"
 #define MARK_FILE              ".sylpheed_mark"
-/* #warning FIXME_GTK2 */
-#define CACHE_VERSION          2020
+#define CACHE_VERSION          24
 #define MARK_VERSION           2
 
-#define DEFAULT_SIGNATURE      ".signature"
+#ifdef G_OS_WIN32
+#  define ACTIONS_RC           "actionswinrc"
+#  define COMMAND_HISTORY      "command_history_win"
+#  define DEFAULT_SIGNATURE    "signature.txt"
+#else
+#  define ACTIONS_RC           "actionsrc"
+#  define COMMAND_HISTORY      "command_history"
+#  define DEFAULT_SIGNATURE    ".signature"
+#endif
+
 #define DEFAULT_INC_PATH       "/usr/bin/mh/inc"
 #define DEFAULT_INC_PROGRAM    "inc"
 /* #define DEFAULT_INC_PATH    "/usr/bin/imget" */
 /* #define DEFAULT_INC_PROGRAM "imget" */
 #define DEFAULT_SENDMAIL_CMD   "/usr/sbin/sendmail -t -i"
-#define DEFAULT_BROWSER_CMD    "mozilla -remote 'openURL(%s, new-window)'"
+#define DEFAULT_BROWSER_CMD    "mozilla-firefox -remote 'openURL(%s,new-window)'"
+#define DEFAULT_EDITOR_CMD     "gedit %s"
+#define DEFAULT_MIME_CMD       "metamail -d -b -x -c %s '%s'"
+#define DEFAULT_IMAGE_VIEWER_CMD "display '%s'"
+#define DEFAULT_AUDIO_PLAYER_CMD "play '%s'"
 
 #ifdef _PATH_MAILDIR
 #  define DEFAULT_SPOOL_PATH   _PATH_MAILDIR
 #define MAX_HISTORY_SIZE               16
 
 #define NORMAL_FONT prefs_common.normalfont
-#define BOLD_FONT   prefs_common.boldfont
 #define SMALL_FONT     prefs_common.smallfont
 
 #define DEFAULT_PIXMAP_THEME   "INTERNAL_DEFAULT"