diff options
author | James Booth <boothj5@gmail.com> | 2015-04-29 22:10:32 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-04-29 22:10:32 +0100 |
commit | 0df8b8beff8aeeae072beee8fc3ed69f9d132fb2 (patch) | |
tree | 0adc8936ae6e69c481c647d953f958472e0c47e7 /src/event | |
parent | 8de308c96af476de607d7ba5ecee5dc7c990ffc5 (diff) | |
download | profani-tty-0df8b8beff8aeeae072beee8fc3ed69f9d132fb2.tar.gz |
Return new window on new chat win event
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/ui_events.c | 5 | ||||
-rw-r--r-- | src/event/ui_events.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/event/ui_events.c b/src/event/ui_events.c index c079c0e6..5e16cc43 100644 --- a/src/event/ui_events.c +++ b/src/event/ui_events.c @@ -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); } \ No newline at end of file diff --git a/src/event/ui_events.h b/src/event/ui_events.h index 77017d2c..9e2dc7ee 100644 --- a/src/event/ui_events.h +++ b/src/event/ui_events.h @@ -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 \ No newline at end of file |