summaryrefslogtreecommitdiff
path: root/plugins/mRadio/i_visual.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_visual.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_visual.inc')
-rw-r--r--plugins/mRadio/i_visual.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mRadio/i_visual.inc b/plugins/mRadio/i_visual.inc
index a2b6574df3..5f56bcd4c7 100644
--- a/plugins/mRadio/i_visual.inc
+++ b/plugins/mRadio/i_visual.inc
@@ -22,12 +22,12 @@ begin
if THANDLE(hContact)<>ActiveContact then
begin
mi.szName.a:='Start broadcasting';
- mi.hIcon:=CallService(MS_SKIN2_GETICON,0,tlparam(IcoBtnOn));
+ mi.hIcon:=IcoLib_GetIcon(IcoBtnOn,0);
end
else
begin
mi.szName.a:='Stop broadcasting';
- mi.hIcon:=CallService(MS_SKIN2_GETICON,0,tlparam(IcoBtnOff));
+ mi.hIcon:=IcoLib_GetIcon(IcoBtnOff,0);
end;
CallService(MS_CLIST_MODIFYMENUITEM,hCMenuItemPlay,tlparam(@mi));
@@ -36,12 +36,12 @@ begin
if Service_RadioRecord(0,1)<>0 then
begin
mi.szName.a:='Stop record';
- mi.hIcon:=CallService(MS_SKIN2_GETICON,0,tlparam(IcoBtnRecDn));
+ mi.hIcon:=IcoLib_GetIcon(IcoBtnRecDn,0);
end
else
begin
mi.szName.a:='Start record';
- mi.hIcon:=CallService(MS_SKIN2_GETICON,0,tlparam(IcoBtnRecUp));
+ mi.hIcon:=IcoLib_GetIcon(IcoBtnRecUp,0);
end;
end;
CallService(MS_CLIST_MODIFYMENUITEM,hCMenuItemRec,tlparam(@mi));
@@ -60,7 +60,7 @@ begin
hCMenuItemRec:=Menu_AddContactMenuItem(@mi);
//!! mi.flags :=CMIF_NOTOFFLINE or CMIF_NOTOFFLIST;
- mi.hIcon :=CallService(MS_SKIN2_GETICON,0,lparam(IcoBtnOn));
+ mi.hIcon :=IcoLib_GetIcon(IcoBtnOn,0);
mi.pszService :=MS_RADIO_PLAYSTOP;
mi.szName.a :='Start/Stop broadcasting';
hCMenuItemPlay:=Menu_AddContactMenuItem(@mi);