From 3344e2189f3585a9ac407b56aa78547b3f769bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 19 Nov 2013 19:18:40 +0000 Subject: MobileState: add new facebook clients recognition git-svn-id: http://svn.miranda-ng.org/main/trunk@6941 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MobileState/src/clients.h | 5 ++++- plugins/MobileState/src/main.cpp | 6 ++++-- plugins/MobileState/src/version.h | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'plugins/MobileState') 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 -- cgit v1.2.3