aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-03-29 00:02:21 +1300
committerDavid <dbphillipsnz@gmail.com>2014-03-29 00:02:21 +1300
commit6532d80ed657c0cbd8c56d2e875ea093dcfadacd (patch)
treeb7f9a63082079a4f7899edbd6afc87257ad5bed0
parent95284f10e95566ab949dca3c384cd63748640f01 (diff)
downloadparamano-6532d80ed657c0cbd8c56d2e875ea093dcfadacd.tar.xz
Quick bugfix
-rw-r--r--src/bat_tray/bat_tray.c7
-rw-r--r--src/trayfreq.c1
2 files changed, 3 insertions, 5 deletions
diff --git a/src/bat_tray/bat_tray.c b/src/bat_tray/bat_tray.c
index 0cfb415..9f6adfb 100644
--- a/src/bat_tray/bat_tray.c
+++ b/src/bat_tray/bat_tray.c
@@ -17,7 +17,6 @@
************************************************************************/
#include "bat_tray.h"
-#include "getbat.h"
#include "../common.h"
#include <gtk/gtk.h>
@@ -49,7 +48,7 @@ gchar tooltip_text[TOOLTIP_TEXT_SIZE];
static gboolean update_tooltip(GtkStatusIcon* status_icon,gint x,gint y,gboolean keyboard_mode,GtkTooltip* tooltip,gpointer data)
{
gchar msg[TOOLTIP_TEXT_SIZE];
-
+ //memset(msg,0,TOOLTIP_TEXT_SIZE);
switch(get_battery_state())
{
case STATE_DISCHARGING:
@@ -57,14 +56,14 @@ static gboolean update_tooltip(GtkStatusIcon* status_icon,gint x,gint y,gboolean
break;
case STATE_CHARGING:
- break;
sprintf(msg, "Charging (%i%%)", get_bat_percent());
+ break;
case STATE_CHARGED:
sprintf(msg, "Fully charged");
break;
default:
- sprintf(msg, "Warning: Unknown status");
+ sprintf(msg, "Unknown status");
break;
}
diff --git a/src/trayfreq.c b/src/trayfreq.c
index 4e43e0b..f8b0cc8 100644
--- a/src/trayfreq.c
+++ b/src/trayfreq.c
@@ -21,7 +21,6 @@
#include "bat_tray/bat_tray.h"
#include "freq_tray/getfreq.h"
#include "freq_tray/getcore.h"
-#include "bat_tray/getbat.h"
#include "freq_tray/getgov.h"
#include "config_file.h"
#include "defaults.h"