summaryrefslogtreecommitdiff
path: root/apps/plugins/clock/clock_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/clock/clock_menu.c')
-rw-r--r--apps/plugins/clock/clock_menu.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugins/clock/clock_menu.c b/apps/plugins/clock/clock_menu.c
index ed0027305b..a597664f49 100644
--- a/apps/plugins/clock/clock_menu.c
+++ b/apps/plugins/clock/clock_menu.c
@@ -22,6 +22,7 @@
22#include "clock.h" 22#include "clock.h"
23#include "clock_bitmaps.h" 23#include "clock_bitmaps.h"
24#include "clock_settings.h" 24#include "clock_settings.h"
25#include "clock_menu.h"
25#include "lib/playback_control.h" 26#include "lib/playback_control.h"
26 27
27/* Option structs (possible selections per each option) */ 28/* Option structs (possible selections per each option) */
@@ -57,7 +58,7 @@ static const struct opt_items hour_format_text[] = {
57 * Select a mode, returs true when the mode has been selected 58 * Select a mode, returs true when the mode has been selected
58 * (we go back to clock display then) 59 * (we go back to clock display then)
59 **************/ 60 **************/
60bool menu_mode_selector(void){ 61static bool menu_mode_selector(void){
61 MENUITEM_STRINGLIST(menu,"Mode Selector",NULL, "Analog", 62 MENUITEM_STRINGLIST(menu,"Mode Selector",NULL, "Analog",
62 "Digital", "Binary"); 63 "Digital", "Binary");
63 if(rb->do_menu(&menu, &clock_settings.mode, NULL, false) >=0) 64 if(rb->do_menu(&menu, &clock_settings.mode, NULL, false) >=0)
@@ -68,7 +69,7 @@ bool menu_mode_selector(void){
68/********************** 69/**********************
69 * Analog settings menu 70 * Analog settings menu
70 *********************/ 71 *********************/
71void menu_analog_settings(void) 72static void menu_analog_settings(void)
72{ 73{
73 int selection=0, result=0; 74 int selection=0, result=0;
74 75
@@ -99,7 +100,7 @@ void menu_analog_settings(void)
99/*********************** 100/***********************
100 * Digital settings menu 101 * Digital settings menu
101 **********************/ 102 **********************/
102void menu_digital_settings(void){ 103static void menu_digital_settings(void){
103 int selection=0, result=0; 104 int selection=0, result=0;
104 105
105 MENUITEM_STRINGLIST(menu,"Digital Mode Settings",NULL,"Show Seconds", 106 MENUITEM_STRINGLIST(menu,"Digital Mode Settings",NULL,"Show Seconds",
@@ -125,7 +126,7 @@ void menu_digital_settings(void){
125/*********************************************************** 126/***********************************************************
126 * Confirm resetting of settings, used in general_settings() 127 * Confirm resetting of settings, used in general_settings()
127 **********************************************************/ 128 **********************************************************/
128void confirm_reset(void){ 129static void confirm_reset(void){
129 int result=0; 130 int result=0;
130 131
131 rb->set_option("Reset all settings?", &result, INT, noyes_text, 2, NULL); 132 rb->set_option("Reset all settings?", &result, INT, noyes_text, 2, NULL);
@@ -141,7 +142,7 @@ void confirm_reset(void){
141/************************************ 142/************************************
142 * General settings. Reset, save, etc 143 * General settings. Reset, save, etc
143 ***********************************/ 144 ***********************************/
144void menu_general_settings(void){ 145static void menu_general_settings(void){
145 int selection=0, result=0; 146 int selection=0, result=0;
146 147
147 MENUITEM_STRINGLIST(menu,"General Settings",NULL, 148 MENUITEM_STRINGLIST(menu,"General Settings",NULL,