stefan pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3ea364300e0d33dfbc329fda30650673d2221787

commit 3ea364300e0d33dfbc329fda30650673d2221787
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Wed Aug 5 18:03:41 2015 +0200

    modules/geolocation: Limit the accurancy double to one decimal in the popup
    
    Having to mayn decimal places in there is confusing.
---
 src/modules/geolocation/e_mod_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/geolocation/e_mod_main.c 
b/src/modules/geolocation/e_mod_main.c
index 7e6da0d..11d0282 100644
--- a/src/modules/geolocation/e_mod_main.c
+++ b/src/modules/geolocation/e_mod_main.c
@@ -84,7 +84,7 @@ popup_update(Instance *inst)
 
    e_widget_label_text_set(inst->popup_altitude, buf);
 
-   snprintf(buf, sizeof(buf), _("Accuracy:  %f"), inst->accuracy);
+   snprintf(buf, sizeof(buf), _("Accuracy:  %.1f m"), inst->accuracy);
    e_widget_label_text_set(inst->popup_accuracy, buf);
 }
 
@@ -137,7 +137,7 @@ popup_new(Instance *inst)
    inst->popup_altitude = e_widget_label_add(evas, buf);
    e_widget_list_object_append(list, inst->popup_altitude, 1, 1, 0.5);
 
-   snprintf(buf, sizeof(buf), _("Accuracy:  %f"), inst->accuracy);
+   snprintf(buf, sizeof(buf), _("Accuracy:  %.1f m"), inst->accuracy);
    inst->popup_accuracy = e_widget_label_add(evas, buf);
    e_widget_list_object_append(list, inst->popup_accuracy, 1, 1, 0.5);
 

-- 


Reply via email to