X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fui_unity.c;h=17ee29dbe85fc355b0db78a41c6f5ca968b2ff07;hp=b9461d10cae04e45256a6ff0d9c3c395de1af328;hb=e248180cc4ebc258fdd5778a26c08287089165b1;hpb=dcd813f21c83592155f712ff1acf450b483d8072 diff --git a/src/ui_unity.c b/src/ui_unity.c index b9461d1..17ee29d 100644 --- a/src/ui_unity.c +++ b/src/ui_unity.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 jeanfi@gmail.com + * Copyright (C) 2010-2014 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -18,7 +18,7 @@ */ #include -#include "psensor.h" +#include static int initialized; static UnityLauncherEntry *psensor_entry; @@ -26,11 +26,10 @@ static unsigned int last_visible = -1; void ui_unity_launcher_entry_update(struct psensor **sensors, unsigned int show, - int use_celcius) + int use_celsius) { double v; - if (!initialized) { psensor_entry = unity_launcher_entry_get_for_desktop_file ("psensor.desktop"); @@ -52,8 +51,8 @@ void ui_unity_launcher_entry_update(struct psensor **sensors, if (sensors && *sensors) { v = psensor_get_max_current_value(sensors, SENSOR_TYPE_TEMP); - if (!use_celcius) - v = celcius_to_fahrenheit(v); + if (!use_celsius) + v = celsius_to_fahrenheit(v); unity_launcher_entry_set_count(psensor_entry, v); }