Peter Wehrfritz schrieb:
I attached a small sample program
As always, I forgot to ...
#include <Ewl.h>
void destroy_main_window(Ewl_Widget *main_win, void *ev_data, void *user_data)
{
ewl_widget_destroy(main_win);
ewl_main_quit();
return;
}
int main(int argc, char **argv)
{
Ewl_Widget *w, *win, *c;
ewl_init(&argc, argv);
win = ewl_window_new();
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW,
destroy_main_window, NULL);
ewl_widget_show(win);
c = ewl_hpaned_new();
ewl_container_child_append(EWL_CONTAINER(win), c);
ewl_widget_show(c);
w = ewl_button_new();
ewl_button_label_set(EWL_BUTTON(w), "Shrinkable");
ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_HSHRINKABLE |
EWL_FLAG_FILL_VFILL);
ewl_container_child_append(EWL_CONTAINER(c), w);
ewl_widget_show(w);
w = ewl_button_new();
ewl_button_label_set(EWL_BUTTON(w), "Fill");
ewl_container_child_append(EWL_CONTAINER(c), w);
ewl_widget_show(w);
ewl_main();
return 0;
}
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel