summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-10-16 10:38:03 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-10-16 10:38:03 +0000
commit71898e5c547e1f92bb128aede558938873f56d3c (patch)
treea29ddd099bdefdd00db381b064f720801f275d56 /apps/gui
parent9e0ebcc4e696ce058a35441c85afaf608d1dd25c (diff)
downloadrockbox-71898e5c547e1f92bb128aede558938873f56d3c.zip
rockbox-71898e5c547e1f92bb128aede558938873f56d3c.tar.gz
rockbox-71898e5c547e1f92bb128aede558938873f56d3c.tar.bz2
rockbox-71898e5c547e1f92bb128aede558938873f56d3c.tar.xz
Accept FS#9480 - centralise and organise the events in the apps/ layer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18819 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps.c3
-rw-r--r--apps/gui/statusbar.h4
2 files changed, 2 insertions, 5 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index 47cc05a..4d50740 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -61,6 +61,7 @@
#include "backdrop.h"
#include "quickscreen.h"
#include "pitchscreen.h"
+#include "appevents.h"
/* currently only on wps_state is needed */
struct wps_state wps_state;
@@ -820,7 +821,7 @@ void gui_sync_wps_init(void)
gui_wps_set_statusbar(&gui_wps[i], &statusbars.statusbars[i]);
}
#ifdef HAVE_LCD_BITMAP
- add_event(STATUSBAR_TOGGLE_EVENT, false, statusbar_toggle_handler);
+ add_event(GUI_EVENT_STATUSBAR_TOGGLE, false, statusbar_toggle_handler);
#endif
#if LCD_DEPTH > 1
unload_wps_backdrop();
diff --git a/apps/gui/statusbar.h b/apps/gui/statusbar.h
index 7e82214..f36d609 100644
--- a/apps/gui/statusbar.h
+++ b/apps/gui/statusbar.h
@@ -30,10 +30,6 @@
#define STATUSBAR_Y_POS 0 /* MUST be a multiple of 8 */
#define STATUSBAR_HEIGHT 8
-/* possibly a horrible misuse of the event system.
- This is triggered when the statusbar setting changes */
-#define STATUSBAR_TOGGLE_EVENT (EVENT_CLASS_GUI|1)
-
struct status_info {
int battlevel;
int batt_charge_step;