diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-06 23:07:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-06 23:07:18 +0300 |
commit | 80c32c431207f86b0be44f5f94488de35458fc55 (patch) | |
tree | ed8e850d5f3df9170e46aea4d849f85775c5adfc /src | |
parent | 80bdbb8985d0495453a123a1938537c8090ca948 (diff) |
MS_CLIST_SHOWHIDE returned back to serve various menu items
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/menu_clist.cpp | 7 | ||||
-rw-r--r-- | src/mir_app/src/menu_tray.cpp | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/mir_app/src/menu_clist.cpp b/src/mir_app/src/menu_clist.cpp index adb2decf95..466a8e3ff1 100644 --- a/src/mir_app/src/menu_clist.cpp +++ b/src/mir_app/src/menu_clist.cpp @@ -1030,6 +1030,12 @@ static INT_PTR HotkeySetStatus(WPARAM, LPARAM lParam) return 0;
}
+static INT_PTR ShowHide(WPARAM, LPARAM)
+{
+ cli.pfnShowHide();
+ return 0;
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
// PROTOCOL MENU
@@ -1104,6 +1110,7 @@ void InitCustomMenus(void) // initialize hotkeys
CreateServiceFunction(MS_CLIST_HKSTATUS, HotkeySetStatus);
+ CreateServiceFunction(MS_CLIST_SHOWHIDE, ShowHide);
HOTKEYDESC hkd = {};
hkd.szSection.w = L"Status";
diff --git a/src/mir_app/src/menu_tray.cpp b/src/mir_app/src/menu_tray.cpp index c508be12bb..b2ad890e86 100644 --- a/src/mir_app/src/menu_tray.cpp +++ b/src/mir_app/src/menu_tray.cpp @@ -121,7 +121,7 @@ void InitTrayMenus(void) SET_UID(mi, 0x6c202553, 0xb4d5, 0x403c, 0xa6, 0x82, 0x2, 0xd8, 0x2b, 0x42, 0xba, 0x9e);
mi.flags = CMIF_DEFAULT;
mi.position = 100000;
- mi.pszService = "CList/ShowHide";
+ mi.pszService = MS_CLIST_SHOWHIDE;
mi.name.a = LPGEN("&Hide/show");
mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_SHOWHIDE);
Menu_AddTrayMenuItem(&mi);
|