summaryrefslogtreecommitdiff
path: root/apps/plugins/calendar.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2009-08-05 14:29:29 +0000
committerTeruaki Kawashima <teru@rockbox.org>2009-08-05 14:29:29 +0000
commite2e7ecf350a4d085f6f58052f55ba29e8fe77718 (patch)
treed5abd6a205b9d32cb11e1c2d0ea08602812248d4 /apps/plugins/calendar.c
parenteac0a5b840571a11b181fdfd463be61aca466976 (diff)
downloadrockbox-e2e7ecf350a4d085f6f58052f55ba29e8fe77718.tar.gz
rockbox-e2e7ecf350a4d085f6f58052f55ba29e8fe77718.zip
add playback control to more menu of plugins.
although it doesn't make much sense for some plugins like dice as the menu is only shown when you start that plugin. change star plugin to go back to menu when exit game instead of closing plugin so that above change makes useful. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22171 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/calendar.c')
-rw-r--r--apps/plugins/calendar.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c
index e938af873e..e00afe19b6 100644
--- a/apps/plugins/calendar.c
+++ b/apps/plugins/calendar.c
@@ -24,6 +24,7 @@
24#if defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0) 24#if defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0)
25 25
26#include <timefuncs.h> 26#include <timefuncs.h>
27#include "lib/playback_control.h"
27 28
28PLUGIN_HEADER 29PLUGIN_HEADER
29 30
@@ -620,7 +621,8 @@ static bool edit_memo(int change, struct shown *shown)
620 MENUITEM_STRINGLIST(edit_menu, "Edit menu", edit_menu_cb, 621 MENUITEM_STRINGLIST(edit_menu, "Edit menu", edit_menu_cb,
621 "Remove", "Edit", 622 "Remove", "Edit",
622 "New Weekly", "New Monthly", 623 "New Weekly", "New Monthly",
623 "New Yearly", "New One off"); 624 "New Yearly", "New One off",
625 "Playback Control");
624 626
625 while (!exit) 627 while (!exit)
626 { 628 {
@@ -652,6 +654,10 @@ static bool edit_memo(int change, struct shown *shown)
652 add_memo(shown,3); 654 add_memo(shown,3);
653 return false; 655 return false;
654 656
657 case 6: /* playback control */
658 playback_control(NULL);
659 break;
660
655 case GO_TO_PREVIOUS: 661 case GO_TO_PREVIOUS:
656 return false; 662 return false;
657 663