From: Kaj-Michael Lang Date: Thu, 17 Jan 2008 11:44:50 +0000 (+0200) Subject: Show banner X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37512a3f5b4d5f6bae6fd45c9ab2dc8e97063aa4;p=mapper Show banner --- diff --git a/src/announcements.c b/src/announcements.c index 80b8ac7..e7ac5f5 100644 --- a/src/announcements.c +++ b/src/announcements.c @@ -27,6 +27,8 @@ #include #include +#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