summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-15 11:53:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-15 11:53:36 +0000
commitd4950862a3017d0cf30afeeb613e23e0275708de (patch)
treee6eeeb446d0e29ec4ea3e9d6c62a3a1be4d26dd7 /plugins/PluginUpdater/src
parentc10e213eb6ae855de20d0973a2ca04c975756908 (diff)
plugins' downloader removed from PU/IM
git-svn-id: http://svn.miranda-ng.org/main/trunk@4955 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r--plugins/PluginUpdater/src/Events.cpp2
-rw-r--r--plugins/PluginUpdater/src/PluginUpdater.cpp16
2 files changed, 11 insertions, 7 deletions
diff --git a/plugins/PluginUpdater/src/Events.cpp b/plugins/PluginUpdater/src/Events.cpp
index c740a77f44..470390ad4f 100644
--- a/plugins/PluginUpdater/src/Events.cpp
+++ b/plugins/PluginUpdater/src/Events.cpp
@@ -58,12 +58,14 @@ INT_PTR MenuCommand(WPARAM wParam,LPARAM lParam)
return 0;
}
+#if MIRANDA_VER >= 0x0A00
INT_PTR ShowListCommand(WPARAM wParam,LPARAM lParam)
{
opts.bSilent = false;
DoGetList(true);
return 0;
}
+#endif
INT_PTR EmptyFolder(WPARAM wParam,LPARAM lParam)
{
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp
index 2a6a4dfe67..0d9b365101 100644
--- a/plugins/PluginUpdater/src/PluginUpdater.cpp
+++ b/plugins/PluginUpdater/src/PluginUpdater.cpp
@@ -104,8 +104,6 @@ extern "C" __declspec(dllexport) int Load(void)
// Add cheking update menu item
CreateServiceFunction(MODNAME"/CheckUpdates", MenuCommand);
- CreateServiceFunction(MODNAME"/ShowList", ShowListCommand);
-
CLISTMENUITEM mi = { sizeof(mi) };
mi.position = 400010000;
mi.icolibItem = Skin_GetIconHandle("check_update");
@@ -113,11 +111,15 @@ extern "C" __declspec(dllexport) int Load(void)
mi.pszService = MODNAME"/CheckUpdates";
Menu_AddMainMenuItem(&mi);
- mi.position++;
- mi.icolibItem = Skin_GetIconHandle("plg_list");
- mi.pszName = LPGEN("Show full plugin list");
- mi.pszService = MODNAME"/ShowList";
- Menu_AddMainMenuItem(&mi);
+ #if MIRANDA_VER >= 0x0A00
+ CreateServiceFunction(MODNAME"/ShowList", ShowListCommand);
+
+ mi.position++;
+ mi.icolibItem = Skin_GetIconHandle("plg_list");
+ mi.pszName = LPGEN("Show full plugin list");
+ mi.pszService = MODNAME"/ShowList";
+ Menu_AddMainMenuItem(&mi);
+ #endif
// Add hotkey
HOTKEYDESC hkd = { sizeof(hkd) };