]> Dogcows Code - chaz/tint2/blobdiff - src/config.c
add some code around taskbar_name
[chaz/tint2] / src / config.c
index 37a30eff74d31dc2228d5e45356eaf44996d8568..8170631cc12941e8570390a4763f5ee8084cfa98 100644 (file)
@@ -40,6 +40,7 @@
 #include "panel.h"
 #include "task.h"
 #include "taskbar.h"
+#include "taskbarname.h"
 #include "systraybar.h"
 #include "launcher.h"
 #include "clock.h"
@@ -451,13 +452,25 @@ void add_entry (char *key, char *value)
                int id = atoi (value);
                id = (id < backgrounds->len && id >= 0) ? id : 0;
                panel_config.g_taskbar.bg = &g_array_index(backgrounds, Background, id);
+               if (panel_config.g_taskbar.bg_active == 0)
+                       panel_config.g_taskbar.bg_active = panel_config.g_taskbar.bg;
                panel_config.g_taskbar.area.bg = panel_config.g_taskbar.bg;
        }
        else if (strcmp (key, "taskbar_active_background_id") == 0) {
                int id = atoi (value);
                id = (id < backgrounds->len && id >= 0) ? id : 0;
                panel_config.g_taskbar.bg_active = &g_array_index(backgrounds, Background, id);
-               panel_config.g_taskbar.use_active = 1;
+       }
+       else if (strcmp (key, "taskbar_name") == 0) {
+               taskbarname_enabled = atoi (value);
+       }
+       else if (strcmp (key, "taskbar_name_background_id") == 0) {
+       }
+       else if (strcmp (key, "taskbar_name_active_background_id") == 0) {
+       }
+       else if (strcmp (key, "taskbar_font_color") == 0) {
+       }
+       else if (strcmp (key, "taskbar_active_font_color") == 0) {
        }
 
        /* Task */
This page took 0.019823 seconds and 4 git commands to generate.