summaryrefslogtreecommitdiff
path: root/apps/plugins/clock/clock_menu.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-02-26 17:10:27 +0000
committerThomas Martitz <kugel@rockbox.org>2009-02-26 17:10:27 +0000
commit15dbde1ab76cebd553e278a144e3e56d3b1f39d4 (patch)
tree08ba4cee139b1486abb64b97ea6e58b86d3c5415 /apps/plugins/clock/clock_menu.c
parentaf59e2ac3114a16e25a76c611a179670b101c0b1 (diff)
Accept the first patch at FS#9953 - Add Playback Control to more plugins, by Joshua Simmons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20111 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/clock/clock_menu.c')
-rw-r--r--apps/plugins/clock/clock_menu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/clock/clock_menu.c b/apps/plugins/clock/clock_menu.c
index 626222f88b..838335a529 100644
--- a/apps/plugins/clock/clock_menu.c
+++ b/apps/plugins/clock/clock_menu.c
@@ -22,6 +22,7 @@
#include "clock.h"
#include "clock_bitmaps.h"
#include "clock_settings.h"
+#include "lib/playback_control.h"
/* Option structs (possible selections per each option) */
static const struct opt_items noyes_text[] = {
@@ -210,7 +211,8 @@ bool main_menu(void){
bool exit_clock=false;
MENUITEM_STRINGLIST(menu,"Clock Menu",NULL,"View Clock","Mode Selector",
- "Mode Settings","General Settings","Quit");
+ "Mode Settings","General Settings","Playback Control",
+ "Quit");
while(!done){
switch(rb->do_menu(&menu, &selection, NULL, false)){
@@ -235,6 +237,10 @@ bool main_menu(void){
break;
case 4:
+ playback_control(NULL);
+ break;
+
+ case 5:
exit_clock = true;
done = true;
break;