summaryrefslogtreecommitdiff
path: root/plugins/Sessions
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-10 12:45:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-10 12:45:32 +0000
commit6ac63284a8f93f977db66673727d4995a86764c4 (patch)
tree79d7e0b6744e1de21e6c01c0b0869be8927621a1 /plugins/Sessions
parent102a413497df49bd2af8ee0a1770718fa0ecfcc2 (diff)
various TTB initialization issues
git-svn-id: http://svn.miranda-ng.org/main/trunk@3957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Sessions')
-rw-r--r--plugins/Sessions/Src/Main.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp
index ae81054d33..89ef6e1266 100644
--- a/plugins/Sessions/Src/Main.cpp
+++ b/plugins/Sessions/Src/Main.cpp
@@ -851,28 +851,28 @@ INT_PTR BuildFavMenu(WPARAM wparam,LPARAM lparam)
static int CreateButtons(WPARAM wparam,LPARAM lparam)
{
- TTBButton button = {0};
- button.dwFlags = TTBBF_SHOWTOOLTIP | TTBBF_VISIBLE;
-
- button.pszService = MS_SESSIONS_OPENMANAGER;
- button.pszTooltipUp = button.name = LPGEN("Open Sessions Manager");
- button.hIconHandleUp = iconList[3].hIcolib;
- TopToolbar_AddButton(&button);
-
- button.pszService = MS_SESSIONS_SAVEUSERSESSION;
- button.pszTooltipUp = button.name = LPGEN("Save Session");
- button.hIconHandleUp = iconList[4].hIcolib;
- TopToolbar_AddButton(&button);
-
- button.pszService = MS_SESSIONS_RESTORELASTSESSION;
- button.pszTooltipUp = button.name = LPGEN("Restore Last Session");
- button.hIconHandleUp = iconList[5].hIcolib;
- TopToolbar_AddButton(&button);
-
- button.pszService = MS_SESSIONS_SHOWFAVORITESMENU;
- button.pszTooltipUp = button.name = LPGEN("Show Favorite Sessions Menu");
- button.hIconHandleUp = iconList[1].hIcolib;
- TopToolbar_AddButton(&button);
+ TTBButton ttb = { sizeof(ttb) };
+ ttb.dwFlags = TTBBF_SHOWTOOLTIP | TTBBF_VISIBLE;
+
+ ttb.pszService = MS_SESSIONS_OPENMANAGER;
+ ttb.pszTooltipUp = ttb.name = LPGEN("Open Sessions Manager");
+ ttb.hIconHandleUp = iconList[3].hIcolib;
+ TopToolbar_AddButton(&ttb);
+
+ ttb.pszService = MS_SESSIONS_SAVEUSERSESSION;
+ ttb.pszTooltipUp = ttb.name = LPGEN("Save Session");
+ ttb.hIconHandleUp = iconList[4].hIcolib;
+ TopToolbar_AddButton(&ttb);
+
+ ttb.pszService = MS_SESSIONS_RESTORELASTSESSION;
+ ttb.pszTooltipUp = ttb.name = LPGEN("Restore Last Session");
+ ttb.hIconHandleUp = iconList[5].hIcolib;
+ TopToolbar_AddButton(&ttb);
+
+ ttb.pszService = MS_SESSIONS_SHOWFAVORITESMENU;
+ ttb.pszTooltipUp = ttb.name = LPGEN("Show Favorite Sessions Menu");
+ ttb.hIconHandleUp = iconList[1].hIcolib;
+ TopToolbar_AddButton(&ttb);
return 0;
}