- "randomcross.png", /* icon */
- "Disable random play", /* tip */
- "<GdisorderMain>/Control/Random play", /* menuitem */
- update_random_disable, /* update */
- disorder_eclient_random_disable, /* action */
- ICON_ACTIVE, /* flags */
- 0, /* button */
- 0 /* item */
- },
- {
- "notes.png", /* icon */
- "Enable play", /* tip */
- 0, /* menuitem */
- update_enable, /* update */
- disorder_eclient_enable, /* action */
- ICON_INACTIVE, /* flags */
- 0, /* button */
- 0 /* item */
- },
- {
- "notescross.png", /* icon */
- "Disable play", /* tip */
- 0, /* menuitem */
- update_disable, /* update */
- disorder_eclient_disable, /* action */
- ICON_ACTIVE, /* flags */
- 0, /* button */
- 0 /* item */
- },
- {
- "speaker.png", /* icon */
- "Play network stream", /* tip */
- "<GdisorderMain>/Control/Network player", /* menuitem */
- update_rtp, /* update */
- enable_rtp, /* action */
- ICON_INACTIVE, /* flags */
- 0, /* button */
- 0 /* item */
- },
- {
- "speakercross.png", /* icon */
- "Stop playing network stream", /* tip */
- "<GdisorderMain>/Control/Network player", /* menuitem */
- update_nortp, /* update */
- disable_rtp, /* action */
- ICON_ACTIVE, /* flags */
- 0, /* button */
- 0 /* item */
+ .toggle = TRUE,
+ .stock = TRUE,
+ .icon = GTK_STOCK_CONNECT,
+ .label = "RTP",
+ .tip_on = "Stop playing network stream",
+ .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",