diff options
Diffstat (limited to 'src/eulogium.c')
-rw-r--r-- | src/eulogium.c | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/src/eulogium.c b/src/eulogium.c index 5126e93..40239c1 100644 --- a/src/eulogium.c +++ b/src/eulogium.c @@ -475,13 +475,42 @@ Evas_Object *eulogium_multi_text_menu(struct eulogium_data *eulogium, Evas_Objec multi_text_next_cb_data->pageindex = EINA_TRUE; _bottom = elm_button_add(parent); - elm_object_text_set(_bottom, button ? button->text : "NEXT"); + elm_object_text_set(_bottom, button ? button->text : "NEXT"); /* change to txtdata->buttontext */ evas_object_smart_callback_add(_bottom, "clicked", _eulogium_multi_text_next_cb, multi_text_next_cb_data); evas_object_show(_bottom); return eulogium_split_screen(parent, _top, _bottom); } +Evas_Object *eulogium_multi_screen_menu(struct eulogium_data *eulogium, Evas_Object *parent, Eina_List *multi_screen_data) +{ + Evas_Object *object; + Evas_Object *_top, *_bottom; + struct multi_screen *screen; + + switch (screen->type) { + case TEXT: + break; + } + + _bottom = elm_box_add(parent); + evas_object_show(_bottom); + if (screen->prev_button) { + object = elm_button_add(_bottom); + elm_object_text_set(_bottom, screen->prev_button); + evas_object_show(object); + elm_box_pack_end(_bottom, object); + } + if (screen->next_button) { + object = elm_button_add(_bottom); + elm_object_text_set(_bottom, screen->next_button); + evas_object_show(object); + elm_box_pack_end(_bottom, object); + } + + return eulogium_split_screen(parent, _top, _bottom);; +} + Evas_Object *eulogium_tripple_button_menu(Evas_Object *parent, const struct button_def *left, const struct button_def *right, const struct button_def *bottom) { Evas_Object *object; |