1 static void gui_show_error(const char *errstr
, ...) {
7 gui
->error(errstr
, ap
);
9 vfprintf(stderr
, errstr
, ap
);
13 static void poweroff(void *data
, Evas
*evas
, Evas_Object
*item
, void *event
) {
19 static void boot_nand(void *data
, Evas
*evas
, Evas_Object
*item
, void *event
) {
24 BootItem
*nand
= scan_partition((const char *)data
);
26 gui_show_error("No kernel found in NAND Flash.\n");
33 static void gui_bootitem_clicked(void *data
, Evas
*evas
, Evas_Object
*item
, void *event
) {
36 boot_kernel((BootItem
*)data
);
37 /* XXX: shouldn't be reached, display an error message? */
40 static bool gui_init(){
41 if (!ecore_init() || !ecore_evas_init())
44 /* XXX: fixed dimensions */
45 ee
= ecore_evas_new(NULL
, 0, 0, SCREEN_WIDTH
, SCREEN_HEIGHT
, NULL
);
50 ecore_evas_title_set(ee
, APPNAME
);
51 ecore_evas_borderless_set(ee
, 0);
54 evas
= ecore_evas_get(ee
);
58 evas_font_path_append(evas
, FONT_PATH
);