From 995ae3c72be85dde0b48eaa3d99e3f602649f588 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Wed, 5 Aug 2015 02:59:44 +0200 Subject: [PATCH] fix battery option parsing Fix copy&paste mistake, battery should be enabled for obsolete "battery" option instead of obsolete "systray" option. --- src/tint2conf/properties_rw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tint2conf/properties_rw.c b/src/tint2conf/properties_rw.c index ab75c1a..ad217a3 100644 --- a/src/tint2conf/properties_rw.c +++ b/src/tint2conf/properties_rw.c @@ -900,7 +900,7 @@ void add_entry(char *key, char *value) } /* Battery */ - else if (strcmp(key, "systray") == 0) { + else if (strcmp(key, "battery") == 0) { // Obsolete option config_has_battery = 1; config_battery_enabled = atoi(value); @@ -1466,4 +1466,4 @@ char *get_action(GtkWidget *combo) if (gtk_combo_box_get_active(GTK_COMBO_BOX(combo)) == 10) return "prev_task"; return "none"; -} \ No newline at end of file +}