mirror of
https://github.com/irssi/irssi.git
synced 2026-08-13 21:52:17 +02:00
CTCP msgs/replies stops the "event privmsg" or "event notice" signals now
so you don't have to check for them anymore (unless you use signal_add_first()..). /WINDOW MOVE command had some bugs. CTCP reply to some channel didn't display the channel name. Several code cleanups. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@327 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
919abb2c6f
commit
18f3c74d68
19 changed files with 231 additions and 229 deletions
|
|
@ -112,6 +112,22 @@ void window_item_set_active(WINDOW_REC *window, WI_ITEM_REC *item)
|
|||
}
|
||||
}
|
||||
|
||||
/* Return TRUE if `item' is the active window item in the window.
|
||||
`item' can be NULL. */
|
||||
int window_item_is_active(WI_ITEM_REC *item)
|
||||
{
|
||||
WINDOW_REC *window;
|
||||
|
||||
if (item == NULL)
|
||||
return FALSE;
|
||||
|
||||
window = window_item_window(item);
|
||||
if (window == NULL)
|
||||
return FALSE;
|
||||
|
||||
return window->active == item;
|
||||
}
|
||||
|
||||
void window_item_prev(WINDOW_REC *window)
|
||||
{
|
||||
WI_ITEM_REC *last;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue