- { "pause.png", "Pause playing track", 0,
- update_pause,
- disorder_eclient_pause, 0, 0 },
- { "play.png", "Resume playing track", 0,
- update_play,
- disorder_eclient_resume, 0, 0 },
- { "cross.png", "Cancel playing track", "<GdisorderMain>/Control/Scratch",
- update_scratch,
- disorder_eclient_scratch_playing, 0, 0 },
- { "random.png", "Enable random play", 0,
- update_random_enable,
- disorder_eclient_random_enable, 0, 0 },
- { "randomcross.png", "Disable random play", 0,
- update_random_disable,
- disorder_eclient_random_disable, 0, 0 },
- { "notes.png", "Enable play", 0,
- update_enable,
- disorder_eclient_enable, 0, 0 },
- { "notescross.png", "Disable play", 0,
- update_disable,
- disorder_eclient_disable, 0, 0 },
- { "speaker.png", "Play network stream", 0,
- update_rtp,
- enable_rtp, 0, 0 },
- { "speakercross.png", "Stop playing network stream", 0,
- update_nortp,
- disable_rtp, 0, 0 },
+ {
+ icon_on: "pause.png",
+ tip_on: "Pause playing track",
+ icon_off: "play.png",
+ tip_off: "Resume playing track",
+ menuitem: "<GdisorderMain>/Control/Playing",
+ on: pause_resume_on,
+ sensitive: pause_resume_sensitive,
+ action_go_on: disorder_eclient_resume,
+ action_go_off: disorder_eclient_pause,
+ events: "pause-changed playing-changed rights-changed",
+ },
+ {
+ icon_on: "cross.png",
+ tip_on: "Cancel playing track",
+ menuitem: "<GdisorderMain>/Control/Scratch",
+ sensitive: scratch_sensitive,
+ action_go_off: disorder_eclient_scratch_playing,
+ events: "playing-track-changed rights-changed",
+ },
+ {
+ icon_on: "randomcross.png",
+ tip_on: "Disable random play",
+ icon_off: "random.png",
+ tip_off: "Enable random play",
+ menuitem: "<GdisorderMain>/Control/Random play",
+ on: random_enabled,
+ sensitive: random_sensitive,
+ action_go_on: disorder_eclient_random_enable,
+ action_go_off: disorder_eclient_random_disable,
+ events: "random-changed rights-changed",
+ },
+ {
+ icon_on: "notescross.png",
+ tip_on: "Disable play",
+ icon_off: "notes.png",
+ tip_off: "Enable play",
+ on: playing_enabled,
+ sensitive: playing_sensitive,
+ action_go_on: disorder_eclient_enable,
+ action_go_off: disorder_eclient_disable,
+ events: "enabled-changed rights-changed",
+ },
+ {
+ icon_on: "speakercross.png",
+ tip_on: "Stop playing network stream",
+ icon_off: "speaker.png",
+ tip_off: "Play network stream",
+ menuitem: "<GdisorderMain>/Control/Network player",
+ on: rtp_enabled,
+ sensitive: rtp_sensitive,
+ action_go_on: enable_rtp,
+ action_go_off: disable_rtp,
+ events: "rtp-changed",
+ },