summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-05-02 22:35:01 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-05-02 22:35:01 +0000
commitf376e558f7ff58cd9bccc773964e27cbc43fcf11 (patch)
tree5deb00cab39b91358453ea31431b6ec31cdaf9c7 /src/fe-common
parent55c2554dbab7eef4ef025aff8028c3c1422f8a79 (diff)
downloadirssi-f376e558f7ff58cd9bccc773964e27cbc43fcf11.zip
reversed the window->items change, it broke ^X
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2748 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/window-items.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fe-common/core/window-items.c b/src/fe-common/core/window-items.c
index 7d0b98d1..e53e5a1d 100644
--- a/src/fe-common/core/window-items.c
+++ b/src/fe-common/core/window-items.c
@@ -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;