diff options
author | George Hazan <george.hazan@gmail.com> | 2012-12-01 08:43:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-12-01 08:43:08 +0000 |
commit | 86802925857034fec1fbfb5c0eb668e996b0518d (patch) | |
tree | 68d51590b10b9416c1e2d1bd652a00ce5807da4e /plugins/ListeningTo | |
parent | 14517f8c04b030e4e46f6eb1167a073ef7a1ae51 (diff) |
finally mir_icons removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@2578 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ListeningTo')
-rw-r--r-- | plugins/ListeningTo/listeningto.vcxproj | 1 | ||||
-rw-r--r-- | plugins/ListeningTo/listeningto.vcxproj.filters | 3 | ||||
-rw-r--r-- | plugins/ListeningTo/src/listeningto.cpp | 20 |
3 files changed, 18 insertions, 6 deletions
diff --git a/plugins/ListeningTo/listeningto.vcxproj b/plugins/ListeningTo/listeningto.vcxproj index ad28eaf4c4..a6dc936469 100644 --- a/plugins/ListeningTo/listeningto.vcxproj +++ b/plugins/ListeningTo/listeningto.vcxproj @@ -191,7 +191,6 @@ </ItemGroup>
<ItemGroup>
<ClCompile Include="src\listeningto.cpp" />
- <ClCompile Include="..\utils\mir_icons.cpp" />
<ClCompile Include="..\utils\mir_options.cpp" />
<ClCompile Include="src\music.cpp" />
<ClCompile Include="src\options.cpp" />
diff --git a/plugins/ListeningTo/listeningto.vcxproj.filters b/plugins/ListeningTo/listeningto.vcxproj.filters index b00eb09a5a..0f53e25820 100644 --- a/plugins/ListeningTo/listeningto.vcxproj.filters +++ b/plugins/ListeningTo/listeningto.vcxproj.filters @@ -76,9 +76,6 @@ <ClCompile Include="src\listeningto.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="..\utils\mir_icons.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="..\utils\mir_options.cpp">
<Filter>Source Files</Filter>
</ClCompile>
diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp index 21326eee11..cbe4a7e9e3 100644 --- a/plugins/ListeningTo/src/listeningto.cpp +++ b/plugins/ListeningTo/src/listeningto.cpp @@ -303,8 +303,24 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) // add our modules to the KnownModules list
CallService("DBEditorpp/RegisterSingleModule", (WPARAM) MODULE_NAME, 0);
- hIcon1 = IcoLib_Register("listening_to_icon", "ListeningTo", "Listening to (enabled)", IDI_LISTENINGTO);
- hIcon2 = IcoLib_Register("listening_off_icon", "ListeningTo", "Listening to (disabled)", IDI_LISTENINGOFF);
+ // icons
+ TCHAR tszFile[MAX_PATH];
+ GetModuleFileName(hInst, tszFile, MAX_PATH);
+
+ SKINICONDESC sid = { sizeof(sid) };
+ sid.flags = SIDF_PATH_TCHAR;
+ sid.ptszDefaultFile = tszFile;
+ sid.pszSection = "ListeningTo";
+
+ sid.pszName = "listening_to_icon";
+ sid.pszDescription = LPGEN("Listening to (enabled)");
+ sid.iDefaultIndex = -IDI_LISTENINGTO;
+ hIcon1 = Skin_AddIcon(&sid);
+
+ sid.pszName = "listening_off_icon";
+ sid.pszDescription = LPGEN("Listening to (disabled)");
+ sid.iDefaultIndex = -IDI_LISTENINGOFF;
+ hIcon2 = Skin_AddIcon(&sid);
// Extra icon support
hExtraIcon = ExtraIcon_Register(MODULE_NAME, "Listening to music", "listening_to_icon");
|