added taskbar_active_background_id to change current desktop background

git-svn-id: http://tint2.googlecode.com/svn/trunk@166 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-08-30 15:40:02 +00:00
parent c8d09ed731
commit 69ad0897d1
4 changed files with 44 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ void init_config()
panel_config = calloc(1, sizeof(Panel));
systray.sort = 1;
// window manager's menu default value == false
wm_menu = 0;
max_tick_urgent = 7;
@@ -476,6 +477,13 @@ void add_entry (char *key, char *value)
memcpy(&panel_config->g_taskbar.pix.back, &a->pix.back, sizeof(Color));
memcpy(&panel_config->g_taskbar.pix.border, &a->pix.border, sizeof(Border));
}
else if (strcmp (key, "taskbar_active_background_id") == 0) {
int id = atoi (value);
Area *a = g_slist_nth_data(list_back, id);
memcpy(&panel_config->g_taskbar.pix_active.back, &a->pix.back, sizeof(Color));
memcpy(&panel_config->g_taskbar.pix_active.border, &a->pix.border, sizeof(Border));
panel_config->g_taskbar.use_active = 1;
}
/* Task */
else if (strcmp (key, "task_text") == 0)