diff options
Diffstat (limited to 'plugins/Sessions/Src/Main.cpp')
-rw-r--r-- | plugins/Sessions/Src/Main.cpp | 44 |
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;
}
|