all repos — tint2 @ 924464423d14b5457dadba013c4044a80e2dad0e

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

Merge branch 'master' into 'master'

tint2conf: Disable Executor tooltip when text config value is empty

This fixes a bug where if an Executor had the "Tooltip" option disabled,
editing the theme in tint2conf would re-enable it.

See merge request !18
o9000 mrovi9000@gmail.com
commit

924464423d14b5457dadba013c4044a80e2dad0e

parent

047c59b53f80a8066ba42c95614d0edbe663d85c

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

jump to
M src/tint2conf/properties_rw.csrc/tint2conf/properties_rw.c

@@ -1694,7 +1694,12 @@ else if (strcmp(key, "execp_markup") == 0) {

gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(execp_get_last()->execp_markup), atoi(value)); } else if (strcmp(key, "execp_tooltip") == 0) { - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(execp_get_last()->execp_show_tooltip), 1); + if (strlen(value) > 0) { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(execp_get_last()->execp_show_tooltip), 1); + } + else { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(execp_get_last()->execp_show_tooltip), 0); + } gtk_entry_set_text(GTK_ENTRY(execp_get_last()->execp_tooltip), value); } else if (strcmp(key, "execp_lclick_command") == 0) {