diff options
author | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-06-08 08:14:14 (GMT) |
---|---|---|
committer | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-06-12 05:30:15 (GMT) |
commit | bdc5874629ac6987e8f9a91606604a7b4e18005c (patch) | |
tree | cf9264c879c5700419cac31fa19cc5c252373053 /src/eulogium.h | |
parent | 696fe61020a8a21c812e3355c201c87433761a8c (diff) | |
download | eulogium-bdc5874629ac6987e8f9a91606604a7b4e18005c.zip eulogium-bdc5874629ac6987e8f9a91606604a7b4e18005c.tar.gz eulogium-bdc5874629ac6987e8f9a91606604a7b4e18005c.tar.bz2 |
[griffin.display] drop print_menu and replace it with a generic list
To work with selection menu's, we've added a generic menu_widget_list to
fill menu list with. This list is generic enough that it can equally
work with the file list.
This patch refactors the list to accomplish this and in turn removes
eulogium_print_menu.
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Diffstat (limited to 'src/eulogium.h')
-rw-r--r-- | src/eulogium.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/eulogium.h b/src/eulogium.h index d6d59d3..cd760e5 100644 --- a/src/eulogium.h +++ b/src/eulogium.h @@ -121,9 +121,21 @@ struct menu_entry_def { void *data; }; +struct dir_entry_def { + void *data; + char *path; +}; + +enum list_type { + LIST_MENU, + LIST_FILE, +}; + struct menu_def { const char *title; + enum list_type type; void *data; + struct dir_entry_def dir; struct menu_entry_def entry[]; }; |