summaryrefslogtreecommitdiff
path: root/plugins/YAPP
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-05-30 11:53:57 +0000
committerRobert Pösel <robyer@seznam.cz>2014-05-30 11:53:57 +0000
commit20051a55a8a7cb710767e09b0a5e6e2a0445c0ae (patch)
treedc2a3ad5c9a897968df2034ea9d6c889dc724af5 /plugins/YAPP
parent7b40d91a4f81cbba63ae7cabc263af69539bd22b (diff)
Get rid of Popup (EnableDisableMenuCommand) vs. YAPP (ToggleEnabled) services madness
git-svn-id: http://svn.miranda-ng.org/main/trunk@9370 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP')
-rw-r--r--plugins/YAPP/src/services.cpp2
-rw-r--r--plugins/YAPP/src/yapp.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/YAPP/src/services.cpp b/plugins/YAPP/src/services.cpp
index 772b7aaff3..121f2b6d4d 100644
--- a/plugins/YAPP/src/services.cpp
+++ b/plugins/YAPP/src/services.cpp
@@ -433,7 +433,7 @@ void InitServices()
CreateServiceFunction(MS_POPUP_SHOWMESSAGE"W", ShowMessageW);
CreateServiceFunction(MS_POPUP_SHOWHISTORY, Popup_ShowHistory);
- CreateServiceFunction("Popup/ToggleEnabled", TogglePopups);
+ CreateServiceFunction("Popup/EnableDisableMenuCommand", TogglePopups);
}
void DeinitServices()
diff --git a/plugins/YAPP/src/yapp.cpp b/plugins/YAPP/src/yapp.cpp
index 9f7bb8ee2f..b7a64d9f4d 100644
--- a/plugins/YAPP/src/yapp.cpp
+++ b/plugins/YAPP/src/yapp.cpp
@@ -90,7 +90,7 @@ int IconsChanged(WPARAM, LPARAM)
int TTBLoaded(WPARAM, LPARAM)
{
TTBButton ttb = { sizeof(ttb) };
- ttb.pszService = "Popup/ToggleEnabled";
+ ttb.pszService = "Popup/EnableDisableMenuCommand";
ttb.lParamUp = 1;
ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP | TTBBF_ASPUSHBUTTON;
if (db_get_b(0, "Popup", "ModuleIsEnabled", 1))
@@ -201,7 +201,7 @@ void InitMenuItems(void)
hMenuItemHistory = Menu_AddMainMenuItem(&mi);
mi.hIcon = IcoLib_GetIcon(isEnabled ? ICO_POPUP_ON : ICO_POPUP_OFF, 0);
- mi.pszService = "Popup/ToggleEnabled";
+ mi.pszService = "Popup/EnableDisableMenuCommand";
mi.ptszName = (isEnabled ? LPGENT("Disable Popups") : LPGENT("Enable Popups"));
hMenuItem = Menu_AddMainMenuItem(&mi);
}