From dd939aa4d73a6328f6f3245dd3b3c9de35338f5b Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 11 Mar 2006 22:31:53 +0000 Subject: Patch #2839 by Christian Marg - Always show the buttonbar in the keyboard screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9008 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/keyboard.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/recorder/keyboard.c') diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index d1756ace2c..cb982e38e6 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -259,6 +259,8 @@ int kbd_input(char* text, int buflen) int button, lastbutton = 0; #ifdef HAS_BUTTONBAR struct gui_buttonbar buttonbar; + bool buttonbar_config = global_settings.buttonbar; + global_settings.buttonbar = true; gui_buttonbar_init(&buttonbar); gui_buttonbar_set_display(&buttonbar, &(screens[SCREEN_MAIN]) ); #endif @@ -401,6 +403,9 @@ int kbd_input(char* text, int buflen) case KBD_ABORT: lcd_setfont(FONT_UI); +#ifdef HAS_BUTTONBAR + global_settings.buttonbar=buttonbar_config; +#endif return -1; break; @@ -734,6 +739,9 @@ int kbd_input(char* text, int buflen) if (button != BUTTON_NONE) lastbutton = button; } +#ifdef HAS_BUTTONBAR + global_settings.buttonbar=buttonbar_config; +#endif lcd_setfont(FONT_UI); return 0; -- cgit v1.2.3