summaryrefslogtreecommitdiff
path: root/plugins/MobileState/src
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-19 19:18:40 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-19 19:18:40 +0000
commit3344e2189f3585a9ac407b56aa78547b3f769bc8 (patch)
treed898212412c196e5ddd70a2e619b0a55d7cb6933 /plugins/MobileState/src
parentd9afe7697ba309f6d78b61adea474942c0b55424 (diff)
MobileState: add new facebook clients recognition
git-svn-id: http://svn.miranda-ng.org/main/trunk@6941 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MobileState/src')
-rw-r--r--plugins/MobileState/src/clients.h5
-rw-r--r--plugins/MobileState/src/main.cpp6
-rw-r--r--plugins/MobileState/src/version.h2
3 files changed, 9 insertions, 4 deletions
diff --git a/plugins/MobileState/src/clients.h b/plugins/MobileState/src/clients.h
index 896438188b..00bf0ee55c 100644
--- a/plugins/MobileState/src/clients.h
+++ b/plugins/MobileState/src/clients.h
@@ -47,5 +47,8 @@ static const TCHAR *clients[] = {
_T("prelude"),
_T("nimbuzz"),
_T("mqutim"),
- _T("sleekxmpp.com")
+ _T("sleekxmpp.com"),
+ _T("facebook (mobile"),
+ _T("facebook app"),
+ _T("facebook messenger")
};
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp
index 8e57f294bd..17de9672af 100644
--- a/plugins/MobileState/src/main.cpp
+++ b/plugins/MobileState/src/main.cpp
@@ -71,9 +71,11 @@ int ExtraIconsApply(WPARAM wParam, LPARAM lParam)
if (wParam == NULL)
return 0;
- const char *icon = hasMobileClient((HANDLE) wParam, lParam) ? "mobile_icon" : NULL;
+ if (hasMobileClient((HANDLE)wParam, lParam))
+ ExtraIcon_SetIcon(hExtraIcon, (HANDLE)wParam, "mobile_icon");
+ else
+ ExtraIcon_Clear(hExtraIcon, (HANDLE)wParam);
- ExtraIcon_SetIcon(hExtraIcon, (HANDLE)wParam, icon);
return 0;
}
diff --git a/plugins/MobileState/src/version.h b/plugins/MobileState/src/version.h
index a9edbdbdf2..f026e0724e 100644
--- a/plugins/MobileState/src/version.h
+++ b/plugins/MobileState/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
#define __RELEASE_NUM 1
-#define __BUILD_NUM 3
+#define __BUILD_NUM 4
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM