From 94d63f25f577cb0d6136de58ebf61bc4bd927f38 Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Wed, 3 Jun 2015 11:58:39 +0200 Subject: Remove empty button, jump straight to file listing Signed-off-by: Olliver Schinagl --- src/eulogium.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/eulogium.c b/src/eulogium.c index efe1ef5..c92a9c7 100644 --- a/src/eulogium.c +++ b/src/eulogium.c @@ -51,16 +51,6 @@ static struct button_def but_return = { .data = NULL, }; -static struct button_def but_empty = { - .text = "N/A", - .cb = { - .func = NULL, - .data = NULL, - .info = "Function not implemented", - }, - .data = NULL, -}; - static struct button_def but_print_abort = { .text = "ABORT", .cb = { @@ -288,7 +278,7 @@ static void _but_print_local_cb(void *data, Evas_Object *object EINA_UNUSED, voi Evas_Object *content; /* Fake entry for local storage, ideally this is a separate partition that is user mounted and trigged via the initial scan */ - content = eulogium_print_menu(eulogium, "/home"); /* TODO: replace later */ + content = eulogium_print_menu(eulogium, "/home"); /* TODO: replace later with sane storage location */ if (!content) return; elm_naviframe_item_simple_push(eulogium->navi, content); @@ -318,7 +308,7 @@ static void _cb_button_main_print(void *data, Evas_Object *object EINA_UNUSED, v /* TODO: Right now we just implement 1 or 2 buttons horizontally, ideally this should be something scrollable where more storage locations are usable */ if (eina_list_count(eulogium->mounts) < 1) { - content = eulogium_tripple_button_menu(eulogium->navi, &but_print_local, &but_empty, &but_return); + content = eulogium_print_menu(eulogium, "/home"); /* TODO: replace later with sane storage location */ } else { mount = eina_list_data_get(eina_list_last(eulogium->mounts)); if (!mount) -- cgit v0.12