projects
/
psensor-pkg-debian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch to standard 3.9.6
[psensor-pkg-debian.git]
/
src
/
ui_unity.c
diff --git
a/src/ui_unity.c
b/src/ui_unity.c
index
b9461d1
..
2c00403
100644
(file)
--- a/
src/ui_unity.c
+++ b/
src/ui_unity.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2010-201
3
jeanfi@gmail.com
+ * Copyright (C) 2010-201
4
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
*
* 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,8
@@
*/
#include <unity.h>
*/
#include <unity.h>
-#include "psensor.h"
+#include <temperature.h>
+#include <ui_unity.h>
static int initialized;
static UnityLauncherEntry *psensor_entry;
static int initialized;
static UnityLauncherEntry *psensor_entry;
@@
-26,14
+27,13
@@
static unsigned int last_visible = -1;
void ui_unity_launcher_entry_update(struct psensor **sensors,
unsigned int show,
void ui_unity_launcher_entry_update(struct psensor **sensors,
unsigned int show,
- int use_cel
c
ius)
+ int use_cel
s
ius)
{
double v;
{
double v;
-
if (!initialized) {
psensor_entry = unity_launcher_entry_get_for_desktop_file
if (!initialized) {
psensor_entry = unity_launcher_entry_get_for_desktop_file
- (
"psensor.desktop"
);
+ (
PSENSOR_DESKTOP_FILE
);
unity_launcher_entry_set_count(psensor_entry, 0);
initialized = 1;
unity_launcher_entry_set_count(psensor_entry, 0);
initialized = 1;
@@
-52,8
+52,8
@@
void ui_unity_launcher_entry_update(struct psensor **sensors,
if (sensors && *sensors) {
v = psensor_get_max_current_value(sensors, SENSOR_TYPE_TEMP);
if (sensors && *sensors) {
v = psensor_get_max_current_value(sensors, SENSOR_TYPE_TEMP);
- if (!use_cel
c
ius)
- v = cel
c
ius_to_fahrenheit(v);
+ if (!use_cel
s
ius)
+ v = cel
s
ius_to_fahrenheit(v);
unity_launcher_entry_set_count(psensor_entry, v);
}
unity_launcher_entry_set_count(psensor_entry, v);
}