all repos — tint2 @ 277ca7502cefcc265265556a454b33e57519f834

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

*add* option for ascending/descending/unsorted systray


git-svn-id: http://tint2.googlecode.com/svn/trunk@204 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

277ca7502cefcc265265556a454b33e57519f834

parent

7fa7bf77c0e39813ab0464b5d3c6b3f03c673c70

2 files changed, 7 insertions(+), 3 deletions(-)

jump to
M src/config.csrc/config.c

@@ -575,8 +575,10 @@ }

else if (strcmp(key, "systray_sort") == 0) { if (strcmp(value, "desc") == 0) systray.sort = -1; - else + else if (strcmp(value, "asc") == 0) systray.sort = 1; + else + systray.sort = 0; } /* Tooltip */
M src/systray/systraybar.csrc/systray/systraybar.c

@@ -319,8 +319,10 @@

traywin = g_new0(TrayWindow, 1); traywin->id = id; - // systray.list_icons = g_slist_prepend(systray.list_icons, traywin); - systray.list_icons = g_slist_insert_sorted(systray.list_icons, traywin, compare_traywindows); + if (systray.sort == 0) + systray.list_icons = g_slist_prepend(systray.list_icons, traywin); + else + systray.list_icons = g_slist_insert_sorted(systray.list_icons, traywin, compare_traywindows); systray.area.resize = 1; systray.area.redraw = 1; //printf("add_icon id %lx, %d\n", id, g_slist_length(systray.list_icons));