about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-04 01:31:27 +0100
committerJames Booth <boothj5@gmail.com>2015-05-04 01:31:27 +0100
commitc8eaaa0ce918064a4009f706baac4a975999fc3f (patch)
tree6745a1b7c7c3cb05980a75f26ffa6465eefecb7c /src/event
parentb1dd1e2726892ac8152ba4b8f880f693c113a6e9 (diff)
downloadprofani-tty-c8eaaa0ce918064a4009f706baac4a975999fc3f.tar.gz
Added ui_ev_new_private_win to ui events
Diffstat (limited to 'src/event')
-rw-r--r--src/event/client_events.c6
-rw-r--r--src/event/client_events.h2
-rw-r--r--src/event/ui_events.c6
-rw-r--r--src/event/ui_events.h1
4 files changed, 11 insertions, 4 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c
index 167dfac7..db8f6497 100644
--- a/src/event/client_events.c
+++ b/src/event/client_events.c
@@ -82,8 +82,8 @@ cl_ev_send_muc_msg(ProfMucWin *mucwin, const char * const msg)
 }
 
 void
-cl_ev_send_priv_msg(const char * const fulljid, const char * const msg)
+cl_ev_send_priv_msg(ProfPrivateWin *privwin, const char * const msg)
 {
-    message_send_private(fulljid, msg);
-    ui_outgoing_private_msg(fulljid, msg);
+    message_send_private(privwin->fulljid, msg);
+    ui_outgoing_private_msg(privwin, msg);
 }
\ No newline at end of file
diff --git a/src/event/client_events.h b/src/event/client_events.h
index 3685cb2d..a7ecc583 100644
--- a/src/event/client_events.h
+++ b/src/event/client_events.h
@@ -40,6 +40,6 @@ jabber_conn_status_t cl_ev_connect_account(ProfAccount *account);
 
 void cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg);
 void cl_ev_send_muc_msg(ProfMucWin *mucwin, const char * const msg);
-void cl_ev_send_priv_msg(const char * const fulljid, const char * const msg);
+void cl_ev_send_priv_msg(ProfPrivateWin *privwin, const char * const msg);
 
 #endif
\ No newline at end of file
diff --git a/src/event/ui_events.c b/src/event/ui_events.c
index bebffc07..ff1d7273 100644
--- a/src/event/ui_events.c
+++ b/src/event/ui_events.c
@@ -47,4 +47,10 @@ ProfChatWin*
 ui_ev_new_chat_win(const char * const barejid)
 {
     return ui_new_chat_win(barejid);
+}
+
+ProfPrivateWin*
+ui_ev_new_private_win(const char * const fulljid)
+{
+    return ui_new_private_win(fulljid);
 }
\ No newline at end of file
diff --git a/src/event/ui_events.h b/src/event/ui_events.h
index b7075e61..3f7fed02 100644
--- a/src/event/ui_events.h
+++ b/src/event/ui_events.h
@@ -37,5 +37,6 @@
 
 void ui_ev_focus_win(ProfWin *win);
 ProfChatWin* ui_ev_new_chat_win(const char * const barejid);
+ProfPrivateWin* ui_ev_new_private_win(const char * const fulljid);
 
 #endif
\ No newline at end of file