support of fahrenheit for the indicator label
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 19 Apr 2014 09:24:46 +0000 (11:24 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 19 Apr 2014 09:24:46 +0000 (11:24 +0200)
src/ui_appindicator.c

index 29244b5..4b4f9d6 100644 (file)
@@ -187,7 +187,8 @@ void ui_appindicator_update(struct ui_psensor *ui, unsigned int attention)
        label = NULL;
        while (*p) {
                if (config_is_appindicator_label_enabled((*p)->id)) {
-                       str = psensor_current_value_to_str(*p, 1);
+                       str = psensor_current_value_to_str
+                               (*p, ui->config->temperature_unit == CELCIUS);
                        if (label == NULL) {
                                label = str;
                        } else {