From f376e558f7ff58cd9bccc773964e27cbc43fcf11 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 2 May 2002 22:35:01 +0000 Subject: reversed the window->items change, it broke ^X git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2748 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/window-items.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') 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; -- cgit v1.2.3