+ if (actlist_sort == 2) {
+ if (node != NULL) {
+ if (window->data_level == GPOINTER_TO_INT(oldlevel)) {
+ if (window->hilight_color != 0)
+ statusbar_items_redraw("act");
+ return;
+ }
+ activity_list = g_list_delete_link(activity_list, node);
+ }
+ if (window->data_level != 0)
+ activity_list = g_list_insert_sorted(activity_list, window, (GCompareFunc)
+ window_level_cmp);
+ statusbar_items_redraw("act");
+ return;
+ }
+
+ if (actlist_sort == 3) {
+ if (node != NULL)
+ activity_list = g_list_delete_link(activity_list, node);
+ if (window->data_level != 0)
+ activity_list = g_list_insert_sorted(activity_list, window, (GCompareFunc)
+ window_level_recent_cmp);
+ statusbar_items_redraw("act");
+ return;
+ }
+
+ if (node != NULL) {