summaryrefslogtreecommitdiff
path: root/plugins/mRadio/i_tray.inc
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-14 13:17:26 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-14 13:17:26 +0000
commit02ed4455c23e3562d71bfc80a0e2c4fede8708f1 (patch)
tree115a3d24e4a3877cd28bd4ff2d9d4011b790cc5f /plugins/mRadio/i_tray.inc
parentc72584d6b934b37dbd18d5f15ffb24a140e1e3f2 (diff)
- all icolib services removed;
- IcoLib_* functions are bound directly to the code git-svn-id: http://svn.miranda-ng.org/main/trunk@14161 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/mRadio/i_tray.inc')
-rw-r--r--plugins/mRadio/i_tray.inc9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/mRadio/i_tray.inc b/plugins/mRadio/i_tray.inc
index 468cb47992..3d44553244 100644
--- a/plugins/mRadio/i_tray.inc
+++ b/plugins/mRadio/i_tray.inc
@@ -141,7 +141,7 @@ begin
mi.cbSize :=sizeof(mi);
mi.flags :=CMIF_UNICODE;
mi.szName.w:=cPluginName;
- mi.hIcon :=CallService(MS_SKIN2_GETICON,0,lparam(IcoBtnSettings));
+ mi.hIcon :=IcoLib_GetIcon(IcoBtnSettings,0);
if doTray then
trayradioparent:=Menu_AddTrayMenuItem(@mi)
else
@@ -178,7 +178,7 @@ begin
mi.flags:=CMIF_UNICODE or CMIF_ROOTHANDLE;
ico:=IcoBtnOn;
end;
- mi.hIcon :=CallService(MS_SKIN2_GETICON,0,tlparam(ico));
+ mi.hIcon :=IcoLib_GetIcon(ico,0);
mi.szName.w :='Mute';
mi.pszService:=MS_RADIO_MUTE;
mi.position :=1;
@@ -197,7 +197,6 @@ begin
begin
playstr:='Pause';
end;
-// mi.hIcon:=CallService(MS_SKIN2_GETICON,0,tlparam(ico));
mi.szName.w :=playstr;
mi.position :=2;
srvtrayplaypause:=CreateServiceFunction('mRadio/TrayPlayPause',@TrayPlayPause);
@@ -219,7 +218,7 @@ begin
mi.szName.w :='Quick Open';
mi.position :=4;
mi.pszService:=MS_RADIO_QUICKOPEN;
- mi.hIcon :=CallService(MS_SKIN2_GETICON,0,tlparam(IcoBtnOpen));
+ mi.hIcon :=IcoLib_GetIcon(IcoBtnOpen,0);
if doTray then
Menu_AddTrayMenuItem(@mi)
else
@@ -265,7 +264,7 @@ begin
ico:=IcoBtnOn;
end;
mi.flags:=CMIM_FLAGS or CMIM_ICON;
- mi.hIcon:=CallService(MS_SKIN2_GETICON,0,tlparam(ico));
+ mi.hIcon:=IcoLib_GetIcon(ico,0);
CallService(MS_CLIST_MODIFYMENUITEM,traymute,tlparam(@mi));
mi.hIcon:=0;