summaryrefslogtreecommitdiff
path: root/plugins/BossKeyPlus/src/BossKey.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/BossKeyPlus/src/BossKey.cpp')
-rw-r--r--plugins/BossKeyPlus/src/BossKey.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp
index 7331e958c7..4802db7834 100644
--- a/plugins/BossKeyPlus/src/BossKey.cpp
+++ b/plugins/BossKeyPlus/src/BossKey.cpp
@@ -652,13 +652,12 @@ void RegisterCoreHotKeys (void)
static int ModernToolbarInit(WPARAM, LPARAM) // Modern toolbar support
{
- TTBButton button = {0};
- button.cbSize = sizeof(button);
- button.pszService = MS_BOSSKEY_HIDE;
- button.pszTooltipUp = button.name = LPGEN("Hide Miranda NG");
- button.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP;
- button.hIconHandleUp = iconList[0].hIcolib;
- TopToolbar_AddButton(&button);
+ TTBButton ttb = { sizeof(ttb) };
+ ttb.pszService = MS_BOSSKEY_HIDE;
+ ttb.pszTooltipUp = ttb.name = LPGEN("Hide Miranda NG");
+ ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP;
+ ttb.hIconHandleUp = iconList[0].hIcolib;
+ TopToolbar_AddButton(&ttb);
return 0;
}