+ else if (strcmp (key, "panel_items") == 0) {
+ new_config_file = 1;
+ panel_items_order = strdup(value);
+ int j;
+ for (j=0 ; j < strlen(panel_items_order) ; j++) {
+ if (panel_items_order[j] == 'L')
+ launcher_enabled = 1;
+ if (panel_items_order[j] == 'T')
+ taskbar_enabled = 1;
+ if (panel_items_order[j] == 'B') {
+#ifdef ENABLE_BATTERY
+ battery_enabled = 1;
+#else
+ fprintf(stderr, "tint2 is build without battery support\n");
+#endif
+ }
+ if (panel_items_order[j] == 'S') {
+ // systray disabled in snapshot mode
+ if (snapshot_path == 0)
+ systray_enabled = 1;
+ }
+ if (panel_items_order[j] == 'C')
+ clock_enabled = 1;
+ }
+ }