diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-06-14 17:31:19 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-06-14 17:31:19 +0000 |
commit | c3a49bd95dce1276b4b02e0c236146f2184e31cc (patch) | |
tree | e8e3a4d5e8477b60df88127e738611e9e17990a6 /protocols/Omegle | |
parent | 3b84c05daa208192d55d74c0f37d2bfabfa5a3b1 (diff) |
Facebook, Omegle: adapt for new MS_MSG_SETSTATUSTEXT
git-svn-id: http://svn.miranda-ng.org/main/trunk@9480 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle')
-rw-r--r-- | protocols/Omegle/src/communication.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp index d10f335b29..c82ae24cab 100644 --- a/protocols/Omegle/src/communication.cpp +++ b/protocols/Omegle/src/communication.cpp @@ -575,7 +575,15 @@ bool Omegle_client::events( ) {
// Stranger is typing, not supported by chat module yet
SkinPlaySound( "StrangerTyp" );
- CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)parent->GetChatHandle(), (LPARAM)TranslateT("Stranger is typing."));
+
+
+ StatusTextData st = { 0 };
+ st.cbSize = sizeof(st);
+ // st.hIcon = Skin_GetIconByHandle(GetIconHandle("typing_on")); // TODO: typing icon
+
+ mir_sntprintf(st.tszText, SIZEOF(st.tszText), TranslateT("%s is typing."), TranslateT("Stranger"));
+
+ CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)parent->GetChatHandle(), (LPARAM)&st);
}
if ( resp.data.find( "[\"stoppedTyping\"]" ) != std::string::npos
@@ -583,7 +591,14 @@ bool Omegle_client::events( ) {
// Stranger stopped typing, not supported by chat module yet
SkinPlaySound( "StrangerTypStop" );
- CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)parent->GetChatHandle(), (LPARAM)TranslateT("Stranger stopped typing."));
+
+ StatusTextData st = { 0 };
+ st.cbSize = sizeof(st);
+ // st.hIcon = Skin_GetIconByHandle(GetIconHandle("typing_off")); // TODO: typing icon
+
+ mir_sntprintf(st.tszText, SIZEOF(st.tszText), TranslateT("%s stopped typing."), TranslateT("Stranger"));
+
+ CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)parent->GetChatHandle(), (LPARAM)&st);
}
pos = 0;
|