diff options
author | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-06-03 09:58:39 (GMT) |
---|---|---|
committer | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-06-12 05:30:15 (GMT) |
commit | 94d63f25f577cb0d6136de58ebf61bc4bd927f38 (patch) | |
tree | 8f5d4779e339af9d86f3ef3ade87b15d062f9f74 | |
parent | 14ac273fa863410bb6bb91b36da44cac34b1ca80 (diff) | |
download | eulogium-94d63f25f577cb0d6136de58ebf61bc4bd927f38.zip eulogium-94d63f25f577cb0d6136de58ebf61bc4bd927f38.tar.gz eulogium-94d63f25f577cb0d6136de58ebf61bc4bd927f38.tar.bz2 |
Remove empty button, jump straight to file listing
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
-rw-r--r-- | src/eulogium.c | 14 |
1 files 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) |