diff options
author | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-06-11 12:42:11 (GMT) |
---|---|---|
committer | Olliver Schinagl <o.schinagl@ultimaker.com> | 2015-06-12 05:30:16 (GMT) |
commit | 5e01d35cfae5fe0ca25cfdce31b2fe8eb48ca8e0 (patch) | |
tree | ba51f75c0ab0f7476dca5801314d4e21807f9815 | |
parent | 67d893d661026a31c04453a01b5bf031a37d7fb5 (diff) | |
download | eulogium-5e01d35cfae5fe0ca25cfdce31b2fe8eb48ca8e0.zip eulogium-5e01d35cfae5fe0ca25cfdce31b2fe8eb48ca8e0.tar.gz eulogium-5e01d35cfae5fe0ca25cfdce31b2fe8eb48ca8e0.tar.bz2 |
[griffin.hmi] improve print finished screen
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
-rw-r--r-- | src/eulogium.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/eulogium.c b/src/eulogium.c index 30dda4d..cd3fa62 100644 --- a/src/eulogium.c +++ b/src/eulogium.c @@ -2162,24 +2162,22 @@ static void _cleared_bed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *even Evas_Object *eulogium_clear_print_bed(struct eulogium_data *eulogium) { - Evas_Object *box, *obj; + Evas_Object *_top, *_bottom, *obj; - box = elm_box_add(eulogium->navi); - evas_object_show(box); + _top = elm_box_add(eulogium->navi); + evas_object_show(_top); - obj = elm_label_add(box); - elm_object_text_set(obj, _("Please empty print bed.")); + obj = elm_label_add(_top); + elm_object_text_set(obj, _("Print finished!<br>Remove the print<br>for next<br>print job.")); evas_object_show(obj); - elm_box_pack_end(box, obj); + elm_box_pack_end(_top, obj); - /* TODO replace with left/right button call, this is just a quick Hack XXX */ - obj = elm_button_add(box); - elm_object_text_set(obj, _("Print removed")); - evas_object_smart_callback_add(obj, "clicked", _cleared_bed_cb, eulogium); - evas_object_show(obj); - elm_box_pack_end(box, obj); + _bottom = elm_button_add(eulogium->navi); + elm_object_text_set(_bottom, _("Print removed")); + evas_object_smart_callback_add(_bottom, "clicked", _cleared_bed_cb, eulogium); + evas_object_show(_bottom); - return box; + return eulogium_split_screen(eulogium->navi, _top, _bottom); } struct _filelist_data { |