summaryrefslogtreecommitdiff
path: root/plugins/Sessions/Src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-22 20:13:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-22 20:13:26 +0300
commitf545bc769a16d1ff7b302733f793cbcbd397cdca (patch)
tree0c2ad450df5273a08ad55699801e2b74af662565 /plugins/Sessions/Src
parent09121bfc0da22a40142e70a276a47fb639390cc4 (diff)
new helper for MS_TTB_ADDBUTTON
Diffstat (limited to 'plugins/Sessions/Src')
-rw-r--r--plugins/Sessions/Src/Main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp
index d7167fd294..f71d304ec8 100644
--- a/plugins/Sessions/Src/Main.cpp
+++ b/plugins/Sessions/Src/Main.cpp
@@ -716,22 +716,22 @@ static int CreateButtons(WPARAM, LPARAM)
ttb.pszService = MS_SESSIONS_OPENMANAGER;
ttb.pszTooltipUp = ttb.name = LPGEN("Open Sessions Manager");
ttb.hIconHandleUp = iconList[3].hIcolib;
- TopToolbar_AddButton(&ttb);
+ g_plugin.addTTB(&ttb);
ttb.pszService = MS_SESSIONS_SAVEUSERSESSION;
ttb.pszTooltipUp = ttb.name = LPGEN("Save Session");
ttb.hIconHandleUp = iconList[4].hIcolib;
- TopToolbar_AddButton(&ttb);
+ g_plugin.addTTB(&ttb);
ttb.pszService = MS_SESSIONS_RESTORELASTSESSION;
ttb.pszTooltipUp = ttb.name = LPGEN("Restore Last Session");
ttb.hIconHandleUp = iconList[5].hIcolib;
- TopToolbar_AddButton(&ttb);
+ g_plugin.addTTB(&ttb);
ttb.pszService = MS_SESSIONS_SHOWFAVORITESMENU;
ttb.pszTooltipUp = ttb.name = LPGEN("Show Favorite Sessions Menu");
ttb.hIconHandleUp = iconList[1].hIcolib;
- TopToolbar_AddButton(&ttb);
+ g_plugin.addTTB(&ttb);
return 0;
}