summaryrefslogtreecommitdiffstats
path: root/apps/gui/buttonbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/buttonbar.h')
-rw-r--r--apps/gui/buttonbar.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/gui/buttonbar.h b/apps/gui/buttonbar.h
index e7a366420c..3098ecce4f 100644
--- a/apps/gui/buttonbar.h
+++ b/apps/gui/buttonbar.h
@@ -21,13 +21,14 @@
#define _GUI_BUTTONBAR_H_
#include "config.h"
#include "button.h"
-#if CONFIG_KEYPAD == RECORDER_PAD
+#include "screen_access.h"
+
-#define HAS_BUTTONBAR
+#ifdef HAS_BUTTONBAR
#define BUTTONBAR_HEIGHT 8
#define BUTTONBAR_MAX_BUTTONS 3
#define BUTTONBAR_CAPTION_LENGTH 8
-#include "screen_access.h"
+
struct gui_buttonbar
{
@@ -76,6 +77,7 @@ extern void gui_buttonbar_draw(struct gui_buttonbar * buttonbar);
* - buttonbar : the buttonbar
*/
extern bool gui_buttonbar_isset(struct gui_buttonbar * buttonbar);
-
-#endif /* CONFIG_KEYPAD == RECORDER_PAD */
+#else
+#define BUTTONBAR_HEIGHT 0
+#endif
#endif /* _GUI_BUTTONBAR_H_ */