From e2e7ecf350a4d085f6f58052f55ba29e8fe77718 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Wed, 5 Aug 2009 14:29:29 +0000 Subject: 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 --- apps/plugins/calendar.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/plugins/calendar.c') 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 @@ #if defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0) #include +#include "lib/playback_control.h" PLUGIN_HEADER @@ -620,7 +621,8 @@ static bool edit_memo(int change, struct shown *shown) MENUITEM_STRINGLIST(edit_menu, "Edit menu", edit_menu_cb, "Remove", "Edit", "New Weekly", "New Monthly", - "New Yearly", "New One off"); + "New Yearly", "New One off", + "Playback Control"); while (!exit) { @@ -652,6 +654,10 @@ static bool edit_memo(int change, struct shown *shown) add_memo(shown,3); return false; + case 6: /* playback control */ + playback_control(NULL); + break; + case GO_TO_PREVIOUS: return false; -- cgit v1.2.3