summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/menu_clist.cpp14
-rw-r--r--src/mir_app/src/mir_app.def1
-rw-r--r--src/mir_app/src/mir_app64.def1
3 files changed, 5 insertions, 11 deletions
diff --git a/src/mir_app/src/menu_clist.cpp b/src/mir_app/src/menu_clist.cpp
index 3bd8a919d8..b193727c4f 100644
--- a/src/mir_app/src/menu_clist.cpp
+++ b/src/mir_app/src/menu_clist.cpp
@@ -167,8 +167,10 @@ struct MainMenuExecParam
TMO_IntMenuItem *pimi;
};
-MIR_APP_DLL(HMENU) Menu_BuildMainMenu(void)
+MIR_APP_DLL(HMENU) Menu_GetMainMenu(void)
{
+ RecursiveDeleteMenu(hMainMenu);
+
NotifyEventHooks(hPreBuildMainMenuEvent, 0, 0);
Menu_Build(hMainMenu, hMainMenuObject);
@@ -176,12 +178,6 @@ MIR_APP_DLL(HMENU) Menu_BuildMainMenu(void)
return hMainMenu;
}
-MIR_APP_DLL(HMENU) Menu_GetMainMenu(void)
-{
- RecursiveDeleteMenu(hMainMenu);
- return Menu_BuildMainMenu();
-}
-
MIR_APP_DLL(HGENMENU) Menu_AddMainMenuItem(TMO_MenuItem *pmi)
{
MainMenuExecParam *mmep = (MainMenuExecParam*)mir_alloc(sizeof(MainMenuExecParam));
@@ -793,10 +789,10 @@ void RebuildMenuOrder(void)
{
BYTE bHideStatusMenu = db_get_b(NULL, "CLUI", "DontHideStatusMenu", 0); // cool perversion, though
- //clear statusmenu
+ // clear statusmenu
RecursiveDeleteMenu(hStatusMenu);
- //status menu
+ // status menu
if (hStatusMenuObject != 0) {
Menu_RemoveObject(hStatusMenuObject);
mir_free(hStatusMainMenuHandles);
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def
index 56dd4712d9..b9236bd42d 100644
--- a/src/mir_app/src/mir_app.def
+++ b/src/mir_app/src/mir_app.def
@@ -226,7 +226,6 @@ Menu_AddMainMenuItem @223
Menu_AddProtoMenuItem @224
Menu_AddStatusMenuItem @225
Menu_BuildContactMenu @226
-Menu_BuildMainMenu @227
Menu_GetMainMenu @228
Menu_GetStatusMenu @229
Menu_BuildSubGroupMenu @230
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def
index 0d97c9481b..263b24cdb0 100644
--- a/src/mir_app/src/mir_app64.def
+++ b/src/mir_app/src/mir_app64.def
@@ -226,7 +226,6 @@ Menu_AddMainMenuItem @223
Menu_AddProtoMenuItem @224
Menu_AddStatusMenuItem @225
Menu_BuildContactMenu @226
-Menu_BuildMainMenu @227
Menu_GetMainMenu @228
Menu_GetStatusMenu @229
Menu_BuildSubGroupMenu @230