diff options
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r-- | plugins/TopToolBar/src/toolbar.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp index 930925a7a7..0842ce95e3 100644 --- a/plugins/TopToolBar/src/toolbar.cpp +++ b/plugins/TopToolBar/src/toolbar.cpp @@ -152,12 +152,13 @@ static void Icon2button(TTBButton *but, HANDLE &hIcoLib, HICON &hIcon, bool bIsU if (!hIcoLib) {
char buf[256];
mir_snprintf(buf, "toptoolbar_%s%s", but->name, bIsUp ? (but->hIconDn ? "%s_up" : "%s") : "%s_dn");
- SKINICONDESC sid = { sizeof(sid) };
- sid.pszSection = "Toolbar";
+
+ SKINICONDESC sid = { 0 };
+ sid.section.a = "Toolbar";
sid.pszName = buf;
- sid.pszDefaultFile = NULL;
+ sid.defaultFile.a = NULL;
mir_snprintf(buf, "%s%s", but->name, bIsUp ? "" : " (pressed)");
- sid.pszDescription = buf;
+ sid.description.a = buf;
sid.hDefaultIcon = bIsUp ? but->hIconUp : but->hIconDn;
hIcoLib = Skin_AddIcon(&sid);
}
|