summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-02 19:08:21 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-02 19:08:21 +0000
commitdf94b9a44ca6fe33d3ffc43f80f2ea9185dc3734 (patch)
tree7a952e97189b12230f63b4b78c53f28aa3744f99 /src/fe-text/mainwindows.c
parented550c01d1aeb8ee94db3b288cfd343f7d750734 (diff)
downloadirssi-df94b9a44ca6fe33d3ffc43f80f2ea9185dc3734.zip
window_[add|remove]_item -> window_item_[add|remove]
added window_item_destroy(), window_item_remove() doesn't destroy the item anymore window_find_item()'s first parameter changed from WINDOW_REC to SERVER_REC git-svn-id: http://svn.irssi.org/repos/irssi/trunk@922 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r--src/fe-text/mainwindows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c
index 48bbf0b9..81d08707 100644
--- a/src/fe-text/mainwindows.c
+++ b/src/fe-text/mainwindows.c
@@ -588,7 +588,7 @@ static void cmd_window_hide(const char *data)
else if (is_numeric(data, 0))
window = window_find_refnum(atoi(data));
else
- window = window_find_item(active_win, data);
+ window = window_find_item(active_win->active_server, data);
if (window == NULL) return;
if (!is_window_visible(window)) return;
@@ -610,7 +610,7 @@ static void cmd_window_show(const char *data)
window = is_numeric(data, 0) ?
window_find_refnum(atoi(data)) :
- window_find_item(active_win, data);
+ window_find_item(active_win->active_server, data);
if (window == NULL) return;
if (is_window_visible(window)) return;