all repos — tint2 @ a8e1c9d3aadd9ce68629dee26ad19fc0490978af

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

tint2conf: Fix read of panel_monitor (issue #520)
o9000 o9000
commit

a8e1c9d3aadd9ce68629dee26ad19fc0490978af

parent

3dbd13aa777d5801d98a974325654ddf0716b683

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

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

@@ -856,20 +856,18 @@ }

else if (strcmp(key, "panel_monitor") == 0) { if (strcmp(value, "all") == 0) gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 0); - else if (strcmp(value, "0") == 0) - gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 1); else if (strcmp(value, "1") == 0) + gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 1); + else if (strcmp(value, "2") == 0) gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 2); - else if (strcmp(value, "2") == 0) - gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 3); else if (strcmp(value, "3") == 0) - gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 4); + gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 3); else if (strcmp(value, "4") == 0) + gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 4); + else if (strcmp(value, "5") == 0) gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 5); - else if (strcmp(value, "5") == 0) + else if (strcmp(value, "6") == 0) gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 6); - else if (strcmp(value, "6") == 0) - gtk_combo_box_set_active(GTK_COMBO_BOX(panel_combo_monitor), 7); } /* autohide options */