summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/mydetails.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-02 14:11:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-02 14:11:01 +0000
commit75b1ff75c42644eb36552762652e4b0c9ff071bc (patch)
tree238f026ef373d30a395846f38c302a81961b14ac /plugins/MyDetails/src/mydetails.cpp
parent2caba72d51b09368801f23dd8951d589ab4dc809 (diff)
final switch to the typed icolib api
git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src/mydetails.cpp')
-rw-r--r--plugins/MyDetails/src/mydetails.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/MyDetails/src/mydetails.cpp b/plugins/MyDetails/src/mydetails.cpp
index 8dccbbd165..325e31e8ca 100644
--- a/plugins/MyDetails/src/mydetails.cpp
+++ b/plugins/MyDetails/src/mydetails.cpp
@@ -200,9 +200,8 @@ static int MainInit(WPARAM wparam,LPARAM lparam)
InitFrames();
- if (CallService(MS_SKIN2_GETICON, 0, (LPARAM) "LISTENING_TO_ICON") == NULL) {
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC);
+ if ( Skin_GetIcon("LISTENING_TO_ICON") == NULL) {
+ SKINICONDESC sid = { sizeof(SKINICONDESC) };
sid.flags = SIDF_TCHAR;
sid.ptszSection = LPGENT("Contact List");
sid.ptszDescription = LPGENT("Listening to");
@@ -211,8 +210,7 @@ static int MainInit(WPARAM wparam,LPARAM lparam)
Skin_AddIcon(&sid);
}
{
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC);
+ SKINICONDESC sid = { sizeof(SKINICONDESC) };
sid.flags = SIDF_TCHAR;
sid.ptszSection = LPGENT("My Details");
sid.ptszDescription = LPGENT("Previous protocol");
@@ -221,8 +219,7 @@ static int MainInit(WPARAM wparam,LPARAM lparam)
Skin_AddIcon(&sid);
}
{
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC);
+ SKINICONDESC sid = { sizeof(SKINICONDESC) };
sid.flags = SIDF_TCHAR;
sid.ptszSection = LPGENT("My Details");
sid.ptszDescription = LPGENT("Next protocol");