mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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
This commit is contained in:
parent
ed550c01d1
commit
df94b9a44c
10 changed files with 62 additions and 58 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue