summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-14 15:51:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-14 15:51:34 +0000
commite58823d961a630eb62e60d2ccb443761ba5f1704 (patch)
tree62d071be480d57af2a53f154a1468abe0b9449ff /plugins/Db_autobackups
parent721aea0764451e985d575236205808bbef298244 (diff)
- all MS_CLIST_ADD*ITEM services replaced with Menu_Add*Item stubs.
- massive cleanup of the menu-related code git-svn-id: http://svn.miranda-ng.org/main/trunk@410 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r--plugins/Db_autobackups/main.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/Db_autobackups/main.c b/plugins/Db_autobackups/main.c
index c7183820c3..e90f08b0c8 100644
--- a/plugins/Db_autobackups/main.c
+++ b/plugins/Db_autobackups/main.c
@@ -86,22 +86,22 @@ static void IcoLibInit(void)
static void MenuInit(void)
{
- CLISTMENUITEM menu = {0};
- menu.cbSize = sizeof(menu);
- menu.flags = CMIF_TCHAR;
- menu.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"backup");
- menu.ptszPopupName = LPGENT("Database");
-
- menu.ptszName = LPGENT("Backup Profile");
- menu.pszService = MS_AB_BACKUP;
- menu.position = 500100000;
- CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu);
-
- menu.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"saveas");
- menu.ptszName = LPGENT("Save Profile As...");
- menu.pszService = MS_AB_SAVEAS;
- menu.position = 500100001;
- CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu);
+ CLISTMENUITEM mi = {0};
+ mi.cbSize = sizeof(mi);
+ mi.flags = CMIF_TCHAR;
+ mi.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"backup");
+ mi.ptszPopupName = LPGENT("Database");
+
+ mi.ptszName = LPGENT("Backup Profile");
+ mi.pszService = MS_AB_BACKUP;
+ mi.position = 500100000;
+ Menu_AddMainMenuItem(&mi);
+
+ mi.hIcon=(HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"saveas");
+ mi.ptszName = LPGENT("Save Profile As...");
+ mi.pszService = MS_AB_SAVEAS;
+ mi.position = 500100001;
+ Menu_AddMainMenuItem(&mi);
}
static void TriggerActionInit(void)