Mercurial > audlegacy-plugins
comparison src/hotkey/plugin.c @ 2281:6ca0d83ce51d
Hotkey: Changed "Play/Pause" to "Play" and "Pause" to "Pause/Resume" since they were doing the same
thing
| author | Sascha Hlusiak <contact@saschahlusiak.de> |
|---|---|
| date | Thu, 03 Jan 2008 15:46:23 +0100 |
| parents | d9706e29e968 |
| children | 515f9c741a5c |
comparison
equal
deleted
inserted
replaced
| 2274:d9706e29e968 | 2281:6ca0d83ce51d |
|---|---|
| 296 } | 296 } |
| 297 | 297 |
| 298 /* play */ | 298 /* play */ |
| 299 if ((keycode == plugin_cfg.play.key) && (state == plugin_cfg.play.mask) && (type == plugin_cfg.play.type)) | 299 if ((keycode == plugin_cfg.play.key) && (state == plugin_cfg.play.mask) && (type == plugin_cfg.play.type)) |
| 300 { | 300 { |
| 301 if (!play) | 301 audacious_drct_play (); |
| 302 { | |
| 303 audacious_drct_play (); | |
| 304 } else { | |
| 305 audacious_drct_pause (); | |
| 306 } | |
| 307 return TRUE; | 302 return TRUE; |
| 308 } | 303 } |
| 309 | 304 |
| 310 /* pause */ | 305 /* pause */ |
| 311 if ((keycode == plugin_cfg.pause.key) && (state == plugin_cfg.pause.mask) && (type == plugin_cfg.pause.type)) | 306 if ((keycode == plugin_cfg.pause.key) && (state == plugin_cfg.pause.mask) && (type == plugin_cfg.pause.type)) |
| 937 | 932 |
| 938 /* prev track */ | 933 /* prev track */ |
| 939 add_event_controls(table, &controls->prev_track, 0, _("Previous Track:"), | 934 add_event_controls(table, &controls->prev_track, 0, _("Previous Track:"), |
| 940 plugin_cfg.prev_track); | 935 plugin_cfg.prev_track); |
| 941 | 936 |
| 942 add_event_controls(table, &controls->play, 1, _("Play/Pause:"), | 937 add_event_controls(table, &controls->play, 1, _("Play:"), |
| 943 plugin_cfg.play); | 938 plugin_cfg.play); |
| 944 | 939 |
| 945 add_event_controls(table, &controls->pause, 2, _("Pause:"), | 940 add_event_controls(table, &controls->pause, 2, _("Pause/Resume:"), |
| 946 plugin_cfg.pause); | 941 plugin_cfg.pause); |
| 947 | 942 |
| 948 add_event_controls(table, &controls->stop, 3, _("Stop:"), | 943 add_event_controls(table, &controls->stop, 3, _("Stop:"), |
| 949 plugin_cfg.stop); | 944 plugin_cfg.stop); |
| 950 | 945 |
