1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 11:12:19 -05:00

Open channel list window on /list

This commit is contained in:
Farow 2013-10-13 22:39:17 +03:00 committed by TingPing
parent 6d3c176ff8
commit bb5d589c79
4 changed files with 13 additions and 1 deletions

View File

@ -179,5 +179,6 @@ typedef enum
void fe_tray_set_icon (feicon icon);
void fe_tray_set_tooltip (const char *text);
void fe_tray_set_balloon (const char *title, const char *text);
void fe_open_chan_list (server *serv, char *filter, int do_refresh);
#endif

View File

@ -2477,7 +2477,7 @@ cmd_lastlog (struct session *sess, char *tbuf, char *word[], char *word_eol[])
static int
cmd_list (struct session *sess, char *tbuf, char *word[], char *word_eol[])
{
sess->server->p_list_channels (sess->server, word_eol[2], 1);
fe_open_chan_list (sess->server, word_eol[2], TRUE);
return TRUE;
}

View File

@ -1091,3 +1091,9 @@ fe_get_file (const char *title, char *initial,
/* CANCEL: Call callback once with file=NULL. */
gtkutil_file_req (title, callback, userdata, initial, NULL, flags | FRF_FILTERISINITIAL);
}
void
fe_open_chan_list (server *serv, char *filter, int do_refresh)
{
chanlist_opengui (serv, do_refresh);
}

View File

@ -908,3 +908,8 @@ void fe_tray_set_icon (feicon icon){}
void fe_tray_set_tooltip (const char *text){}
void fe_tray_set_balloon (const char *title, const char *text){}
void fe_userlist_update (session *sess, struct User *user){}
void
fe_open_chan_list (server *serv, char *filter, int do_refresh)
{
serv->p_list_channels (serv, filter, 1);
}