inital gtk2 patch
[claws.git] / src / common / sylpheed.c
index 716e09e9c2d68cc2bbc9400f2e1e5f58cee6b6f0..99b82aa80c511fdcd79f392732ef4fb4d3d7ae92 100644 (file)
@@ -21,6 +21,8 @@
 #  include "config.h"
 #endif
 
+#include "defs.h"
+#include <stdlib.h>
 #include <glib.h>
 
 #if HAVE_LOCALE_H
@@ -29,7 +31,6 @@
 
 #include "sylpheed.h"
 #include "intl.h"
-#include "defs.h"
 #include "utils.h"
 #include "ssl.h"
 #include "version.h"
@@ -89,9 +90,13 @@ gboolean sylpheed_init(int *argc, char ***argv)
 
        parse_parameter(argc, argv);
 
+       debug_print("Starting sylpheed version %08x\n", VERSION_NUMERIC);
+
        setlocale(LC_ALL, "");
        bindtextdomain(PACKAGE, LOCALEDIR);
+       bind_textdomain_codeset (PACKAGE, "UTF-8");
        textdomain(PACKAGE);
+       putenv("G_BROKEN_FILENAMES=1");
 
        /* backup if old rc file exists */
        if (is_file_exist(RC_DIR)) {
@@ -114,7 +119,7 @@ gboolean sylpheed_init(int *argc, char ***argv)
        return TRUE;
 }
 
-void sylpheed_done()
+void sylpheed_done(void)
 {
        plugin_unload_all("Common");
 
@@ -123,7 +128,12 @@ void sylpheed_done()
 #endif
 }
 
-const gchar *sylpheed_get_startup_dir()
+const gchar *sylpheed_get_startup_dir(void)
 {
        return startup_dir;
 }
+
+guint sylpheed_get_version(void)
+{
+       return VERSION_NUMERIC;
+}