added left2right and right2left value to systray_sort option

git-svn-id: http://tint2.googlecode.com/svn/trunk@205 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-09-27 20:00:34 +00:00
parent 277ca7502c
commit a372cfbd60
2 changed files with 8 additions and 4 deletions

View File

@@ -319,8 +319,10 @@ gboolean add_icon(Window id)
traywin = g_new0(TrayWindow, 1);
traywin->id = id;
if (systray.sort == 0)
if (systray.sort == 3)
systray.list_icons = g_slist_prepend(systray.list_icons, traywin);
else if (systray.sort == 2)
systray.list_icons = g_slist_append(systray.list_icons, traywin);
else
systray.list_icons = g_slist_insert_sorted(systray.list_icons, traywin, compare_traywindows);
systray.area.resize = 1;