mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
reversed the window->items change, it broke ^X
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2748 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
55c2554dba
commit
f376e558f7
@ -50,7 +50,7 @@ void window_item_add(WINDOW_REC *window, WI_ITEM_REC *item, int automatic)
|
||||
window_set_active(window);
|
||||
}
|
||||
|
||||
window->items = g_slist_prepend(window->items, item);
|
||||
window->items = g_slist_append(window->items, item);
|
||||
signal_emit("window item new", 2, window, item);
|
||||
|
||||
if (g_slist_length(window->items) == 1 ||
|
||||
@ -112,11 +112,7 @@ void window_item_set_active(WINDOW_REC *window, WI_ITEM_REC *item)
|
||||
/* move item to different window */
|
||||
window_item_remove(item);
|
||||
window_item_add(window, item, FALSE);
|
||||
} else if (item != NULL) {
|
||||
/* reorder the window item stack */
|
||||
window->items = g_slist_remove(window->items, item);
|
||||
window->items = g_slist_prepend(window->items, item);
|
||||
}
|
||||
}
|
||||
|
||||
if (window->active != item) {
|
||||
window->active = item;
|
||||
|
Loading…
Reference in New Issue
Block a user