From f4af50c07021804c266e2c09906a17f01516a7a2 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 14 Feb 2014 23:18:23 +1300 Subject: Fixed floating point error --- src/bat_tray.c | 1 + src/tray.c | 1 + src/utilities.h | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) 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 -#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); -- cgit v1.1