tint2conf: Fix read of panel_monitor (issue #520)
o9000 o9000
1 files changed,
6 insertions(+),
8 deletions(-)
jump to
M
src/tint2conf/properties_rw.c
→
src/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 */