#include "widgets/modest-global-settings-dialog.h"
#include "modest-tny-msg.h"
#ifdef MODEST_PLATFORM_MAEMO
-#include <hildon/hildon-notification.h>
-#else
-#include <libnotify/notify.h>
+#include "modest-hildon-includes.h"
#endif
+#include <locale.h>
static gboolean init_header_columns (ModestConf *conf, gboolean overwrite);
static gboolean init_default_account_maybe (ModestAccountMgr *acc_mgr);
init_i18n();
init_debug_g_type();
init_debug_logging();
-
- if (!g_thread_supported())
- g_thread_init(NULL);
-
- gdk_threads_init ();
if (!modest_runtime_init()) {
modest_init_uninit ();
init_stock_icons ();
/* Init notification system */
+ #ifndef MODEST_HILDON_VERSION_0
notify_init ("Basics");
+ #endif
return TRUE;
}
const gchar* gettext_package;
/* Setup gettext, to use our .po files: */
/* GETTEXT_PACKAGE and MODEST_LOCALE_DIR are defined in config.h */
-#ifdef MODEST_HILDON_VERSION_0
- gettext_package = GETTEXT_PACKAGE;
- bindtextdomain (gettext_package, MODEST_LOCALE_DIR);
-#else
- gettext_package = "osso-email"; /* HACK to use the localizations */
- bindtextdomain (gettext_package, "/usr/share/locale");
-#endif /*MODEST_HILDON_VERSION_0*/
+/* #ifdef MODEST_HILDON_VERSION_0 */
+/* gettext_package = GETTEXT_PACKAGE; */
+/* bindtextdomain (gettext_package, MODEST_LOCALE_DIR); */
+/* #else */
+/* gettext_package = "osso-email"; /\* HACK to use the localizations *\/ */
+/* bindtextdomain (gettext_package, "/usr/share/locale"); */
+/* #endif /\*MODEST_HILDON_VERSION_0*\/ */
+ gettext_package = GETTEXT_PACKAGE;
+
bind_textdomain_codeset (gettext_package, "UTF-8");
textdomain (gettext_package);
+
+ setlocale (LC_ALL, "");
}
static void
init_device_name (ModestConf *conf)
{
- int len = 255; /* max len */
+ unsigned int len = 255; /* max len */
gchar *devname = NULL;
if (!g_file_get_contents("/etc/hostname", &devname, &len, NULL) || len < 2 || len > 254) {