aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-02-14 23:18:23 +1300
committerDavid <dbphillipsnz@gmail.com>2014-02-14 23:18:23 +1300
commitf4af50c07021804c266e2c09906a17f01516a7a2 (patch)
treeca19a27e901c3f9235c4e459aa09dfc52f788c89
parentf81fc6e604623b16b4c619777ee2dceb8be1b60b (diff)
downloadparamano-f4af50c07021804c266e2c09906a17f01516a7a2.tar.xz
Fixed floating point error
-rw-r--r--src/bat_tray.c1
-rw-r--r--src/tray.c1
-rw-r--r--src/utilities.h4
3 files changed, 5 insertions, 1 deletions
diff --git a/src/bat_tray.c b/src/bat_tray.c
index c8dd238..60b6039 100644
--- a/src/bat_tray.c
+++ b/src/bat_tray.c
@@ -103,6 +103,7 @@ void bat_tray_update_icon_percent()
static gboolean update_icon(gpointer user_data)
{
bat_tray_update_icon_percent();
+ return TRUE;
}
void bat_tray_init()
diff --git a/src/tray.c b/src/tray.c
index 13e995f..d3672f1 100644
--- a/src/tray.c
+++ b/src/tray.c
@@ -211,6 +211,7 @@ static void activate(GtkStatusIcon* statuc_icon,gpointer data)
static gboolean update_icon(gpointer user_data)
{
tray_update_icon_percent();
+ return TRUE;
}
void tray_init()
diff --git a/src/utilities.h b/src/utilities.h
index 7decd6f..b065cae 100644
--- a/src/utilities.h
+++ b/src/utilities.h
@@ -18,8 +18,10 @@
#ifndef UTILITIES_H
#define UTILITIES_H 1
+#define PREFIX "NONE"
+
#include <glib.h>
-#include "config.h"
+//#include "config.h"
/* > 0 if a > b, = 0 if a = b, < 0 if a < b*/
gint util_compare_gdouble(gdouble a, gdouble b);