diff options
author | David <dbphillipsnz@gmail.com> | 2014-03-29 00:02:21 +1300 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-03-29 00:02:21 +1300 |
commit | 6532d80ed657c0cbd8c56d2e875ea093dcfadacd (patch) | |
tree | b7f9a63082079a4f7899edbd6afc87257ad5bed0 /src/bat_tray/bat_tray.c | |
parent | 95284f10e95566ab949dca3c384cd63748640f01 (diff) | |
download | paramano-6532d80ed657c0cbd8c56d2e875ea093dcfadacd.tar.xz |
Quick bugfix
Diffstat (limited to 'src/bat_tray/bat_tray.c')
-rw-r--r-- | src/bat_tray/bat_tray.c | 7 |
1 files changed, 3 insertions, 4 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; } |