battery: Tooltips for FreeBSD (fix format string)
This commit is contained in:
parent
9d2e62f724
commit
61d786cf4f
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ char* battery_os_tooltip() {
|
||||||
|
|
||||||
gchar *state = (battery_state.state == BATTERY_UNKNOWN) ? "Level" : chargestate2str(battery_state.state);
|
gchar *state = (battery_state.state == BATTERY_UNKNOWN) ? "Level" : chargestate2str(battery_state.state);
|
||||||
|
|
||||||
g_string_append_printf(tooltip, "\t%s: %s", state, battery_state.percentage);
|
g_string_append_printf(tooltip, "\t%s: %d%%", state, battery_state.percentage);
|
||||||
|
|
||||||
g_string_append_c(tooltip, '\n');
|
g_string_append_c(tooltip, '\n');
|
||||||
g_string_append_printf(tooltip, "AC\n");
|
g_string_append_printf(tooltip, "AC\n");
|
||||||
|
|
Loading…
Reference in a new issue