summaryrefslogtreecommitdiff
path: root/plugins/mRadio/i_hotkey.inc
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-07-30 17:30:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-07-30 17:30:39 +0300
commit6fad3235de6bec045fec19a7265e19e880ac84e2 (patch)
treeea375f721c2cc7e586142ccd0298b096a7a5b31f /plugins/mRadio/i_hotkey.inc
parent4aab3b6bc3d66ade09b25649d389b8aef358bfbd (diff)
Hotkeys: code cleaning
Diffstat (limited to 'plugins/mRadio/i_hotkey.inc')
-rw-r--r--plugins/mRadio/i_hotkey.inc9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/mRadio/i_hotkey.inc b/plugins/mRadio/i_hotkey.inc
index 9797b61f1c..d3f739d844 100644
--- a/plugins/mRadio/i_hotkey.inc
+++ b/plugins/mRadio/i_hotkey.inc
@@ -30,7 +30,6 @@ begin
FillChar(hkrec,SizeOf(hkrec),0);
- hkrec.cbSize := SizeOf(hkrec);
hkrec.pszSection.a := PluginName;
hkrec.pszService := MS_RADIO_HOTKEY;
@@ -38,25 +37,25 @@ begin
hkrec.pszName := HKN_PLAYPAUSE;
hkrec.pszDescription.a:= 'Play/Pause';
hkrec.lParam := MRC_PAUSE;
- CallService(MS_HOTKEY_REGISTER,0,lparam(@hkrec));
+ Hotkey_Register(@hkrec);
hkrec.DefHotKey := DefRadioKeyStop;
hkrec.pszName := HKN_STOP;
hkrec.pszDescription.a:= 'Stop';
hkrec.lParam := MRC_STOP;
- CallService(MS_HOTKEY_REGISTER,0,lparam(@hkrec));
+ Hotkey_Register(@hkrec);
hkrec.DefHotKey := DefRadioKeyMute;
hkrec.pszName := HKN_MUTE;
hkrec.pszDescription.a:= 'Mute';
hkrec.lParam := MRC_MUTE;
- CallService(MS_HOTKEY_REGISTER,0,lparam(@hkrec));
+ Hotkey_Register(@hkrec);
hkrec.DefHotKey := DefRadioKeyRecord;
hkrec.pszName := HKN_RECORD;
hkrec.pszDescription.a:= 'Start/Stop Record';
hkrec.lParam := MRC_RECORD;
- CallService(MS_HOTKEY_REGISTER,0,lparam(@hkrec));
+ Hotkey_Register(@hkrec);
end;
procedure UnregisterHotKey;