From: Kaj-Michael Lang Date: Fri, 19 Oct 2007 09:26:31 +0000 (+0300) Subject: Inform if didn't init properly X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36624c7312aef41a8ff8a6d016926a8aa628ca5c;p=mapper Inform if didn't init properly --- diff --git a/src/mapper.c b/src/mapper.c index 989b5a6..62ecda1 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -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();