diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-07 18:19:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-07 18:19:34 +0000 |
commit | e5cb033463036b182fb6e5e3eed50a14987f5300 (patch) | |
tree | c1e0c20c1fb1808f658f4aadf624a57474576eb4 /plugins/TopToolBar/src | |
parent | e2d81fead804c1d7dd557af5d3082ba0399a38c1 (diff) |
SKINICONDESC -> MAllStrings
git-svn-id: http://svn.miranda-ng.org/main/trunk@14054 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/src')
-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);
}
|