restructure a bit the views in enb.c

more readable, still not satisfying though
This commit is contained in:
Cedric Roux
2016-06-09 10:41:38 +02:00
parent e268281233
commit bdd8ee3eed
+8
View File
@@ -199,6 +199,10 @@ static void enb_main_gui(enb_gui *e, gui *g, event_handler *h, void *database)
container_set_child_growable(g, col, text, 1);
textview = new_view_textlist(10000, 10, g, text);
line = new_container(g, HORIZONTAL);
widget_add_child(g, top_container, line, -1);
container_set_child_growable(g, top_container, line, 1);
/* rlc */
col = new_container(g, VERTICAL);
widget_add_child(g, line, col, -1);
@@ -219,6 +223,10 @@ static void enb_main_gui(enb_gui *e, gui *g, event_handler *h, void *database)
container_set_child_growable(g, col, text, 1);
textview = new_view_textlist(10000, 10, g, text);
line = new_container(g, HORIZONTAL);
widget_add_child(g, top_container, line, -1);
container_set_child_growable(g, top_container, line, 1);
/* rrc */
col = new_container(g, VERTICAL);
widget_add_child(g, line, col, -1);