gint
main(gint argc, gchar * argv[])
{
- printf("%s()\n", __PRETTY_FUNCTION__);
-
- /* Initialize localization. */
- setlocale(LC_ALL, "");
- bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
- bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
- textdomain(GETTEXT_PACKAGE);
-
- g_thread_init(NULL);
- g_type_init();
- if (mapper_osso_init()!=0)
- return 1;
- set_var_defaults();
-#ifdef WITH_GST
- gst_init(&argc, &argv);
- speak_init(120,50);
+/* Initialize localization. */
+setlocale(LC_ALL, "");
+bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
+bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+textdomain(GETTEXT_PACKAGE);
+
+g_thread_init(NULL);
+g_type_init();
+if (mapper_osso_init()!=0)
+ return 1;
+set_var_defaults();
+#if defined (WITH_GST) && defined (WITH_ESPEAK)
+gst_init(&argc, &argv);
+speak_init(120,50);
#endif
- gtk_init(&argc, &argv);
- gconf_init(argc, argv, NULL);
- gnome_vfs_init();
- curl_global_init(CURL_GLOBAL_NOTHING);
- timezone_init();
- gpx_init();
- mapper_init(argc, argv);
- if (mapper_osso_cb_init()!=0)
- return 1;
- gtk_main();
- mapper_destroy();
-#ifdef WITH_GST
- speak_deinit();
+gtk_init(&argc, &argv);
+gconf_init(argc, argv, NULL);
+gnome_vfs_init();
+curl_global_init(CURL_GLOBAL_NOTHING);
+timezone_init();
+gpx_init();
+mapper_init(argc, argv);
+if (mapper_osso_cb_init()!=0)
+ return 1;
+gtk_main();
+mapper_destroy();
+#if defined (WITH_GST) && defined (WITH_ESPEAK)
+speak_deinit();
#endif
- gnome_vfs_shutdown();
+gnome_vfs_shutdown();
#ifdef WITH_OSSO
- osso_deinitialize(_osso);
+osso_deinitialize(_osso);
#endif
- vprintf("%s(): return\n", __PRETTY_FUNCTION__);
- return 0;
+return 0;
}