aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"