diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-10-20 15:13:37 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-10-20 15:13:37 +0000 |
commit | 7d1babb61cffcf4c376463053397e3b11659f349 (patch) | |
tree | b8249b332a665b5d95a413d92b3729cd138be2cf /protocols/Omegle/src/theme.cpp | |
parent | 7d1d2dad298eb1fb008c3116dc7c62dda051645b (diff) |
Omegle: Various improvements; version bump
* Show icon with typing info in statusbar
* Don't send "hi message" when in mode for anwering questions
* Clear typing info on more events (e.g. on spy message)
* Fix icons labels in icolib
* Fix help messages
* Show which stranger is typing in spy mode
git-svn-id: http://svn.miranda-ng.org/main/trunk@15582 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle/src/theme.cpp')
-rw-r--r-- | protocols/Omegle/src/theme.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/Omegle/src/theme.cpp b/protocols/Omegle/src/theme.cpp index aa794eb8f1..98253cbfcd 100644 --- a/protocols/Omegle/src/theme.cpp +++ b/protocols/Omegle/src/theme.cpp @@ -26,11 +26,11 @@ extern OBJLIST<OmegleProto> g_Instances; static IconItem icons[] =
{
- { "omegle", LPGEN("Omegle Icon"), IDI_OMEGLE },
+ { LPGEN("Omegle Icon"), "omegle", IDI_OMEGLE },
+ { LPGEN("Stranger is typing"), "typing_on", IDI_TYPING_ON },
+ { LPGEN("Stranger stopped typing"), "typing_off", IDI_TYPING_OFF },
};
-static HANDLE hIconLibItem[_countof(icons)];
-
void InitIcons(void)
{
Icon_Register(g_hInstance, "Protocols/Omegle", icons, _countof(icons), "Omegle");
@@ -39,9 +39,8 @@ void InitIcons(void) HANDLE GetIconHandle(const char* name)
{
for (size_t i = 0; i < _countof(icons); i++)
- {
if (mir_strcmp(icons[i].szName, name) == 0)
- return hIconLibItem[i];
- }
+ return icons[i].hIcolib;
+
return 0;
}
|