From 50c2fbbb1f7f6f233c980d7e4a52151fb72820f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 9 May 2021 18:45:30 +0300 Subject: suddenly: tipper services were used as string constants (cherry picked from commit 15fcbbc128178ea5a4cdb1a58927a43ea740be88) --- plugins/TipperYM/src/options.h | 2 -- plugins/TipperYM/src/tipper.cpp | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/TipperYM/src') diff --git a/plugins/TipperYM/src/options.h b/plugins/TipperYM/src/options.h index b95cf7c533..deccb7dd50 100644 --- a/plugins/TipperYM/src/options.h +++ b/plugins/TipperYM/src/options.h @@ -31,8 +31,6 @@ Boston, MA 02111-1307, USA. #define IDPRESETITEM 1000 -#define MS_TOOLTIP_SHOWTIP "mToolTip/ShowTip" - struct OPTBUTTON { UINT id, uintCoreIconId, uintResIconId; diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp index eb81f2f938..4c67fbe5c3 100644 --- a/plugins/TipperYM/src/tipper.cpp +++ b/plugins/TipperYM/src/tipper.cpp @@ -303,9 +303,9 @@ int CMPlugin::Load() InitMessagePump(); // for compatibility with mToolTip status tooltips - CreateServiceFunction("mToolTip/ShowTip", ShowTip); - CreateServiceFunction("mToolTip/ShowTipW", ShowTipW); - CreateServiceFunction("mToolTip/HideTip", HideTip); + CreateServiceFunction(MS_TIPPER_SHOWTIP, ShowTip); + CreateServiceFunction(MS_TIPPER_SHOWTIPW, ShowTipW); + CreateServiceFunction(MS_TIPPER_HIDETIP, HideTip); CreateServiceFunction("mToolTip/ReloadSkin", ReloadSkin); HookEvent(ME_DB_CONTACT_SETTINGCHANGED, SettingChanged); -- cgit v1.2.3