mainview: add separators between panels.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5110
This commit is contained in:
Al Poole 2017-08-18 23:23:57 +01:00 committed by Andy Williams
parent 26f65e4167
commit 5454d06721
2 changed files with 13 additions and 2 deletions

View File

@ -797,6 +797,8 @@ edi_mainview_panel_free(Edi_Mainview_Panel *panel)
evas_object_del(panel->tabs);
evas_object_del(panel->scroll);
evas_object_del(panel->box);
if (panel->sep)
evas_object_del(panel->sep);
free(panel);
}
@ -805,12 +807,21 @@ Edi_Mainview_Panel *
edi_mainview_panel_add(Evas_Object *parent)
{
Edi_Mainview_Panel *panel;
Evas_Object *box, *scroll, *txt, *nf, *tabs, *tab, *bg, *pad, *scr, *tb;
Evas_Object *box, *sep, *scroll, *txt, *nf, *tabs, *tab, *bg, *pad, *scr, *tb;
Evas_Object *next, *prev, *ico_next, *ico_prev;
_main_win = parent;
panel = calloc(1, sizeof(*panel));
if (edi_mainview_panel_count() > 0)
{
sep = elm_separator_add(parent);
elm_separator_horizontal_set(sep, EINA_FALSE);
evas_object_show(sep);
panel->sep = sep;
elm_box_pack_end(parent, sep);
}
box = elm_box_add(parent);
evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);

View File

@ -28,7 +28,7 @@ typedef struct _Edi_Mainview_Panel
Eina_List *items;
Edi_Mainview_Item *current;
Evas_Object *box, *scroll, *tabs, *content, *welcome, *tb;
Evas_Object *box, *scroll, *tabs, *content, *welcome, *tb, *sep;
} Edi_Mainview_Panel;
/**