Return new window on new chat win event

This commit is contained in:
James Booth
2015-04-29 22:10:32 +01:00
parent 8de308c96a
commit 0df8b8beff
3 changed files with 9 additions and 12 deletions

View File

@@ -40,9 +40,8 @@ ui_ev_focus_win(ProfWin *win)
ui_switch_win(win);
}
void
ProfWin*
ui_ev_new_chat_win(const char * const barejid)
{
ProfWin *win = ui_new_chat_win(barejid);
ui_switch_win(win);
return ui_new_chat_win(barejid);
}

View File

@@ -36,6 +36,6 @@
#define UI_EVENTS_H
void ui_ev_focus_win(ProfWin *win);
void ui_ev_new_chat_win(const char * const barejid);
ProfWin* ui_ev_new_chat_win(const char * const barejid);
#endif