summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history.cpp12
-rw-r--r--plugins/NewStory/src/history.h1
-rw-r--r--plugins/NewStory/src/history_menus.cpp11
3 files changed, 1 insertions, 23 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp
index 194669c545..f0f3fae9a4 100644
--- a/plugins/NewStory/src/history.cpp
+++ b/plugins/NewStory/src/history.cpp
@@ -1044,15 +1044,3 @@ INT_PTR svcShowNewstory(WPARAM hContact, LPARAM)
return 0;
}
-
-INT_PTR svcShowSystemNewstory(WPARAM, LPARAM)
-{
- HWND hwnd = (HWND)WindowList_Find(hNewstoryWindows, 0);
- if (hwnd && IsWindow(hwnd)) {
- SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
- SetFocus(hwnd);
- }
- else (new CHistoryDlg(0))->Show();
-
- return 0;
-}
diff --git a/plugins/NewStory/src/history.h b/plugins/NewStory/src/history.h
index a1293cadff..f7f448abd1 100644
--- a/plugins/NewStory/src/history.h
+++ b/plugins/NewStory/src/history.h
@@ -34,7 +34,6 @@ void InitMenus();
INT_PTR svcEmptyHistory(WPARAM hContact, LPARAM);
INT_PTR svcShowNewstory(WPARAM wParam, LPARAM lParam);
-INT_PTR svcShowSystemNewstory(WPARAM wParam, LPARAM lParam);
CSrmmLogWindow* __cdecl NewStory_Stub(CMsgDialog &pDlg);
diff --git a/plugins/NewStory/src/history_menus.cpp b/plugins/NewStory/src/history_menus.cpp
index 1a38c1c05b..2a5b05c240 100644
--- a/plugins/NewStory/src/history_menus.cpp
+++ b/plugins/NewStory/src/history_menus.cpp
@@ -34,7 +34,7 @@ void InitMenus()
hmiHistory = Menu_AddContactMenuItem(&mi);
CreateServiceFunction(mi.pszService, svcShowNewstory);
- SET_UID(mi, 0xc20d7a69, 0x7607, 0x4aad, 0xa7, 0x42, 0x10, 0x86, 0xfb, 0x32, 0x49, 0x21);
+ SET_UID(mi, 0x0d4306aa, 0xe31e, 0x46ee, 0x89, 0x88, 0x3a, 0x2e, 0x05, 0xa6, 0xf3, 0xbc);
mi.pszService = "Newstory/EmptyHistory";
mi.name.a = LPGEN("Empty history");
mi.position = 1000090001;
@@ -42,14 +42,5 @@ void InitMenus()
hmiEmpty = Menu_AddContactMenuItem(&mi);
CreateServiceFunction(mi.pszService, svcEmptyHistory);
- // Main menu items
- SET_UID(mi, 0xc20d7a69, 0x7607, 0x4aad, 0xa7, 0x42, 0x10, 0x86, 0xfb, 0x32, 0x49, 0x22);
- mi.pszService = "Newstory/System";
- mi.name.a = LPGEN("System history");
- mi.position = 1000090000;
- mi.hIcon = g_plugin.getIcon(ICO_NEWSTORY);
- Menu_AddMainMenuItem(&mi);
- CreateServiceFunction(mi.pszService, svcShowSystemNewstory);
-
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPrebuildContactMenu);
}