diff options
author | George Hazan <george.hazan@gmail.com> | 2023-08-03 15:54:37 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-08-03 15:54:37 +0300 |
commit | c3a891ec287d7c88025fbf31901f9b24c479a07c (patch) | |
tree | b57fa937cb550e16df0c3613dd7cc808de54176f /plugins/NewStory/src/history_menus.cpp | |
parent | 909ab425442127f1d26fcad90fb78c6c3bee2d72 (diff) |
for #3530 - Global history search for NewStory
Diffstat (limited to 'plugins/NewStory/src/history_menus.cpp')
-rw-r--r-- | plugins/NewStory/src/history_menus.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history_menus.cpp b/plugins/NewStory/src/history_menus.cpp index 48b800715b..97ee756b9b 100644 --- a/plugins/NewStory/src/history_menus.cpp +++ b/plugins/NewStory/src/history_menus.cpp @@ -114,18 +114,25 @@ static int OnPrebuildContactMenu(WPARAM hContact, LPARAM) void InitMenus() { - // Contact menu items - { + { // Contact menu items CMenuItem mi(&g_plugin); SET_UID(mi, 0xc20d7a69, 0x7607, 0x4aad, 0xa7, 0x42, 0x10, 0x86, 0xfb, 0x32, 0x49, 0x21); - mi.pszService = MS_HISTORY_SHOWCONTACTHISTORY; mi.name.a = LPGEN("User history"); mi.position = 1000090000; - mi.hIcon = g_plugin.getIcon(ICO_NEWSTORY); + mi.pszService = MS_HISTORY_SHOWCONTACTHISTORY; + mi.hIcolibItem = g_plugin.getIconHandle(ICO_NEWSTORY); hmiHistory = Menu_AddContactMenuItem(&mi); CreateServiceFunction(mi.pszService, svcShowNewstory); HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPrebuildContactMenu); + + // Main menu items + SET_UID(mi, 0x1848519e, 0x639d, 0x497a, 0xa5, 0x37, 0x6b, 0x76, 0x17, 0x2a, 0x6, 0xd9); + mi.name.a = LPGEN("Global search"); + mi.position = 500060001; + mi.pszService = "NewStory/GlobalSearch"; + Menu_AddMainMenuItem(&mi); + CreateServiceFunction(mi.pszService, svcGlobalSearch); } // Init history item's menu |