summaryrefslogtreecommitdiff
path: root/plugins/Restart/src/restart.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2012-10-06 13:17:50 +0000
committerRobert Pösel <robyer@seznam.cz>2012-10-06 13:17:50 +0000
commitbe9097715b8d449266ff6cf77d9a29239cf6db7b (patch)
treef676f06cfb8f3ad66a8f15c1949044b63e93733d /plugins/Restart/src/restart.cpp
parent3d578d378b9cd75efd07a7d2d042dfccb29e6dfc (diff)
Restart plugin doesn't need duplicate restart service, does he?
git-svn-id: http://svn.miranda-ng.org/main/trunk@1794 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Restart/src/restart.cpp')
-rw-r--r--plugins/Restart/src/restart.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/Restart/src/restart.cpp b/plugins/Restart/src/restart.cpp
index b368522786..feec07f359 100644
--- a/plugins/Restart/src/restart.cpp
+++ b/plugins/Restart/src/restart.cpp
@@ -20,7 +20,7 @@ PLUGININFOEX pluginInfo={
"(..íóæíîå âïèñàòü..)",
"ep@eugn.me",
"© 2008 - 2012 -=J-Scar=-",
- "http://miranda.im",
+ "http://miranda-ng.org",
UNICODE_AWARE,
0x61bedf3a, 0xcc2, 0x41a3, { 0xb9, 0x80, 0xbb, 0x93, 0x93, 0x36, 0x89, 0x35 } // {61BEDF3A-0CC2-41a3-B980-BB9393368935}
};
@@ -31,12 +31,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE;
}
-static INT_PTR RestartMenuCommand(WPARAM wParam, LPARAM lParam)
-{
- CallService("Miranda/System/Restart", 0, 0);
- return 0;
-}
-
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
@@ -60,14 +54,12 @@ extern "C" __declspec(dllexport) int Load(void)
sid.iDefaultIndex = -IDI_RESTARTICON;
hIconHandle = Skin_AddIcon(&sid);
- CreateServiceFunction("RestartPlug/MenuCommand", RestartMenuCommand);
-
mi.cbSize = sizeof(mi);
mi.position = -0x7FFFFFFF;
mi.flags = CMIF_ICONFROMICOLIB | CMIF_TCHAR;
mi.icolibItem = hIconHandle;
mi.ptszName = _T("Restart");
- mi.pszService = "RestartPlug/MenuCommand";
+ mi.pszService = "Miranda/System/Restart";
Menu_AddMainMenuItem(&mi);
Menu_AddTrayMenuItem(&mi);
return 0;