]> err.no Git - mapper/commitdiff
Inform if didn't init properly
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 19 Oct 2007 09:26:31 +0000 (12:26 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 19 Oct 2007 09:26:31 +0000 (12:26 +0300)
src/mapper.c

index 989b5a68848f1c32f478e23ccdaa5089f0e45a97..62ecda10b99cc48f71c513e9a795e633b4cb4bca 100644 (file)
@@ -229,7 +229,10 @@ switch (mis) {
        break;
        case MAPPER_INIT_VOICE:
                #if defined (WITH_GST) && defined (WITH_ESPEAK)
-               speak_init("en",_voice_speed,_voice_pitch);
+               if (speak_init("en",_voice_speed,_voice_pitch)==FALSE) {
+                       g_printerr("Espeak init failed\n");
+                       popup_error(_window, "Speech init failed. Disabled.");
+               }
                #endif
                mis=MAPPER_INIT_MISC;
        break;
@@ -248,6 +251,7 @@ switch (mis) {
                #ifdef WITH_HILDON_DBUS_BT
                if (NULL == (_rfcomm_req_proxy = dbus_g_proxy_new_for_name(dbus_conn, BTCOND_SERVICE, BTCOND_REQ_PATH, BTCOND_REQ_INTERFACE))) {
                        g_printerr("Failed to open connection to %s.\n", BTCOND_REQ_INTERFACE);
+                       popup_error(_window, "Bluetooth connection handling failed.");
                }
                #endif
                mis=MAPPER_INIT_UI;
@@ -258,7 +262,7 @@ switch (mis) {
        break;
        case MAPPER_INIT_GOTO:
                if (map_goto_position(&_home)==FALSE)
-                       g_printf("Home is not set\n");
+                       g_printerr("Home is not set.\n");
                mis=MAPPER_INIT_DONE;
        break;
        case MAPPER_INIT_DONE:
@@ -293,7 +297,7 @@ gst_init(&argc, &argv);
 #endif
 
 init_progress=gtk_progress_bar_new();
-init_dialog=progress_dialog("Mapper starting...",init_progress);
+init_dialog=progress_dialog("Mapper is loading...",init_progress);
 g_idle_add((GSourceFunc)mapper_init, NULL);
 gtk_main();
 mapper_destroy();