]> err.no Git - mapper/blobdiff - src/utils.h
Add header and cast properly.
[mapper] / src / utils.h
index 6bfaa1b8b772d7d48abb1ca55ce8ed8dbe41e133..53a647120964fcc6b4f1764ecbaa4ddca474bdd9 100644 (file)
@@ -76,7 +76,6 @@
     if(error_check == (str)) \
     { \
         g_printerr("Line %d: Failed to parse string as int: %s\n", __LINE__, str); \
-        MACRO_BANNER_SHOW_INFO(_window, _("Invalid NMEA input from receiver!")); \
         return; \
     } \
 }
@@ -86,7 +85,6 @@
     if(error_check == (str)) \
     { \
         g_printerr("Failed to parse string as float: %s\n", str); \
-        MACRO_BANNER_SHOW_INFO(_window, _("Invalid NMEA input from receiver!")); \
         return; \
     } \
 }
@@ -132,7 +130,7 @@ if (_http_proxy_host) { \
 
 #ifdef WITH_HILDON
 #define MACRO_BANNER_SHOW_INFO(A, S) { \
-    gchar *my_macro_buffer = g_strdup_printf("<span size='%s'>%s</span>", \
+    gchar *my_macro_buffer = g_markup_printf_escaped("<span size='%s'>%s</span>", \
             INFO_FONT_TEXT[_info_font_size], (S)); \
     hildon_banner_show_information_with_markup(A, NULL, my_macro_buffer); \
     g_free(my_macro_buffer); \