Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_fileselector.c Log Message: Use a method for adding to the fileselector that requires fewer widgets. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_fileselector.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -3 -r1.30 -r1.31 --- ewl_fileselector.c 13 Nov 2005 06:38:27 -0000 1.30 +++ ewl_fileselector.c 14 Nov 2005 06:54:53 -0000 1.31 @@ -824,8 +824,18 @@ ecore_list_goto_first(files); while ((d = ecore_list_current(files))) { - prow = ewl_tree_text_row_add(EWL_TREE(fs->list_files), - NULL, &d->name); + Ewl_Widget *label; + + prow = ewl_row_new(); + ewl_container_child_append(EWL_CONTAINER(fs->list_files), prow); + ewl_widget_show(prow); + + label = ewl_label_new(); + ewl_label_text_set(EWL_LABEL(label), d->name); + ewl_object_fill_policy_set(EWL_OBJECT(label), + EWL_FLAG_FILL_SHRINK); + ewl_container_child_append(EWL_CONTAINER(prow), label); + ewl_widget_show(label); ewl_widget_data_set(prow, "FILESELECTOR_FILE", strdup(d->name)); ewl_fileselector_tooltip_add(prow, d); @@ -846,13 +856,17 @@ while ((d = ecore_list_current(dirs))) { Ewl_Widget *label; + prow = ewl_row_new(); + ewl_container_child_append(EWL_CONTAINER(fs->list_dirs), prow); + ewl_widget_show(prow); + label = ewl_label_new(); ewl_label_text_set(EWL_LABEL(label), d->name); ewl_object_fill_policy_set(EWL_OBJECT(label), EWL_FLAG_FILL_SHRINK); + ewl_container_child_append(EWL_CONTAINER(prow), label); ewl_widget_show(label); - prow = ewl_tree_row_add(EWL_TREE(fs->list_dirs), NULL, &label); ewl_widget_data_set(prow, "FILESELECTOR_DIR", strdup(d->name)); ewl_fileselector_tooltip_add(prow, ecore_list_current(dirs)); ewl_fileselector_data_free(d); ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs