diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-25 12:23:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-25 12:23:28 +0000 |
commit | adca17ccaecda72c8dd1234f1a7b91a0d5aff564 (patch) | |
tree | f0eaacc2570951ed615afd310f7f7ab144b612a9 /plugins/MenuItemEx/src/main.cpp | |
parent | 12d7476bd6e91fd3020a83b9249b63bafe68cd1d (diff) |
another portion of dead genmenu services
git-svn-id: http://svn.miranda-ng.org/main/trunk@14377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MenuItemEx/src/main.cpp')
-rw-r--r-- | plugins/MenuItemEx/src/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 08f86255bf..2631515ecb 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -745,7 +745,7 @@ static HGENMENU AddSubmenuItem(HGENMENU hRoot, TCHAR* name, HICON icon, DWORD fl return Menu_AddContactMenuItem(&mi);
}
-static void ModifySubmenuItem(HGENMENU hItem, TCHAR *name, int checked, int hidden)
+static void ModifySubmenuItem(HGENMENU hItem, int checked, int hidden)
{
int flags = 0;
if (checked)
@@ -789,13 +789,13 @@ int BuildMenu(WPARAM wparam, LPARAM) if (check)
all++;
- ModifySubmenuItem(hIgnoreItem[i], ii[i].name, check, 0);
+ ModifySubmenuItem(hIgnoreItem[i], check, 0);
if (all == _countof(ii) - 1) // ignor all
check = 1;
else
check = 0;
- ModifySubmenuItem(hIgnoreItem[0], ii[i].name, check, 0);
+ ModifySubmenuItem(hIgnoreItem[0], check, 0);
}
}
@@ -809,7 +809,7 @@ int BuildMenu(WPARAM wparam, LPARAM) }
int check = Proto_IsProtoOnContact(wparam, accs[i]->szModuleName);
- ModifySubmenuItem(hProtoItem[i], accs[i]->tszAccountName, check, hide);
+ ModifySubmenuItem(hProtoItem[i], check, hide);
}
Menu_ShowItem(hmenuProto, j > 1);
}
@@ -864,7 +864,7 @@ int EnumProtoSubmenu(WPARAM, LPARAM) {
if (hProtoItem[i])
{
- CallService(MO_REMOVEMENUITEM, (WPARAM)hProtoItem[i], 0);
+ Menu_RemoveItem(hProtoItem[i]);
hProtoItem[i] = 0;
}
}
|