Sort tasks on taskbar: config + sort by title or center (disabled, work in progress) - issue 478

git-svn-id: http://tint2.googlecode.com/svn/trunk@743 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000
2015-03-28 22:38:57 +00:00
committed by mrovi9000@gmail.com
parent 67d5bfcfce
commit e539c6536f
8 changed files with 293 additions and 38 deletions

View File

@@ -503,6 +503,15 @@ void add_entry (char *key, char *value)
else if (strcmp (key, "taskbar_hide_different_monitor") == 0) {
hide_task_diff_monitor = atoi (value);
}
else if (strcmp (key, "taskbar_sort_order") == 0) {
if (strcmp(value, "center") == 0) {
taskbar_sort_method = TASKBAR_SORT_CENTER;
} else if (strcmp(value, "title") == 0) {
taskbar_sort_method = TASKBAR_SORT_TITLE;
} else {
taskbar_sort_method = TASKBAR_NOSORT;
}
}
/* Task */
else if (strcmp (key, "task_text") == 0)