Enlightenment CVS committal Author : titan Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/tree2 Modified Files: ewl_tree2.c Log Message: Fix autofoo for efreet includes. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/tree2/ewl_tree2.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ewl_tree2.c 25 Mar 2007 04:25:58 -0000 1.16 +++ ewl_tree2.c 29 Mar 2007 18:41:26 -0000 1.17 @@ -959,6 +959,7 @@ static void ewl_tree2_cb_set_rows_clicked(Ewl_Widget *w, void *ev, void *data); static void tree2_cb_value_changed(Ewl_Widget *w, void *ev, void *data); static void tree2_cb_select_mode_change(Ewl_Widget *w, void *ev, void *data); +static void hide_tree(Ewl_Widget *w, void *ev, void *data); void test_info(Ewl_Test *test) @@ -1075,6 +1076,15 @@ tree2_cb_select_mode_change, NULL); ewl_widget_show(o); + o = ewl_button_new(); + ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_CENTER); + ewl_button_label_set(EWL_BUTTON(o), "Hide Tree"); + ewl_container_child_append(EWL_CONTAINER(o2), o); + ewl_callback_append(o, EWL_CALLBACK_CLICKED, + hide_tree, NULL); + ewl_widget_show(o); + + return 1; } @@ -1457,5 +1467,15 @@ ewl_tree2_selection_type_set(EWL_TREE2(tree), EWL_TREE_SELECTION_TYPE_CELL); } +} + +static void +hide_tree(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, + void *data __UNUSED__) +{ + Ewl_Widget *tree; + + tree = ewl_widget_name_find("tree"); + ewl_widget_hide(tree); } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs