all repos — tint2 @ ad716c907a75f3c0e996eed57ea6af5374b02415

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

*fix* applied patch from issue 299


git-svn-id: http://tint2.googlecode.com/svn/trunk@576 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

ad716c907a75f3c0e996eed57ea6af5374b02415

parent

00e6485d268f7d03d2563cc0d81d122109e83a41

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M src/battery/battery.csrc/battery/battery.c

@@ -194,8 +194,14 @@ fprintf(stderr, "ERROR: can't found energy_* or charge_*\n");

} g_free(path2); } - if (path_energy_now && path_energy_full) { + + path_current_now = g_build_filename(battery_dir, "power_now", NULL); + if (!g_file_test (path_current_now, G_FILE_TEST_EXISTS)) { + g_free(path_current_now); path_current_now = g_build_filename(battery_dir, "current_now", NULL); + } + + if (path_energy_now && path_energy_full) { path_status = g_build_filename(battery_dir, "status", NULL); // check file