]> err.no Git - mapper/commitdiff
Show banner
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 17 Jan 2008 11:44:50 +0000 (13:44 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 17 Jan 2008 11:44:50 +0000 (13:44 +0200)
src/announcements.c

index 80b8ac76ed4aabca50469b7cb6ae6029caeafbd9..e7ac5f50d761401fb27c4c5a51aeb61d8d2f484b 100644 (file)
@@ -27,6 +27,8 @@
 #include <libintl.h>
 #include <locale.h>
 
+#include "ui-common.h"
+#include "utils.h"
 #include "announcements.h"
 #include "speak.h"
 
@@ -45,18 +47,23 @@ if (distance>climit) {
        g_snprintf(buffer, sizeof(buffer), _("Distance to destination: %.02f %s"), distance, unit);
 }
 SPEAK(buffer);
+MACRO_BANNER_SHOW_INFO(_window, buffer);
 }
 
 void
 announce_destination_reached(void)
 {
-SPEAK(_("You have reached your destination."));
+gchar *msg=_("You have reached your destination.");
+SPEAK(msg);
+MACRO_BANNER_SHOW_INFO(_window, msg);
 }
 
 void
 announce_over_speed_limit(guint limit)
 {
-SPEAK(_("Warning, you are over speed limit!"));
+gchar *msg=_("Warning, you are over speed limit!");
+SPEAK(msg);
+MACRO_BANNER_SHOW_INFO(_window, msg);
 }
 
 #if 0