]> err.no Git - mapper/blobdiff - src/utils.h
Fix GPS settings dialog so it works.
[mapper] / src / utils.h
index 9e9236b622386f376d5803fda9cc1eb3781e3e90..a1e1467d85575c1a352b62810f07dbefa2a3d880 100644 (file)
     } \
 }
 
-#define DISTANCE_SQUARED(a, b) \
-   ((guint64)((((gint64)(b).unitx)-(a).unitx)*(((gint64)(b).unitx)-(a).unitx))\
-  + (guint64)((((gint64)(b).unity)-(a).unity)*(((gint64)(b).unity)-(a).unity)))
-
-
 #ifdef WITH_OSSO
 #define KEEP_DISPLAY_ON() { \
     /* Note that the flag means keep on ONLY when fullscreen. */ \
@@ -137,7 +132,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); \