Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_filelist.c ewl_filelist.h ewl_filelist_column.c 
        ewl_filelist_icon.c ewl_filelist_list.c ewl_tree2.h 


Log Message:
- add the ability for views to specify if the .. entry is shown

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_filelist.c      20 Apr 2006 02:58:01 -0000      1.5
+++ ewl_filelist.c      26 Apr 2006 04:10:01 -0000      1.6
@@ -390,7 +390,7 @@
  * displayed.
  */
 void
-ewl_filelist_directory_read(Ewl_Filelist *fl, 
+ewl_filelist_directory_read(Ewl_Filelist *fl, unsigned int skip_dot_dot,
                void (*func)(Ewl_Filelist *fl, const char *dir, 
                                                        char *file))
 {
@@ -412,7 +412,7 @@
        dirs = ecore_list_new();
 
        /* if this isn't the root dir add a .. entry */
-       if (strcmp(dir, "/"))
+       if (strcmp(dir, "/") && !skip_dot_dot)
                ecore_list_append(dirs, strdup(".."));
 
        while ((file = ecore_list_remove_first(all_files)))
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_filelist.h      15 Apr 2006 05:14:31 -0000      1.4
+++ ewl_filelist.h      26 Apr 2006 04:10:01 -0000      1.5
@@ -102,6 +102,7 @@
 
 char           *ewl_filelist_expand_path(Ewl_Filelist *fl, const char *dir);
 void            ewl_filelist_directory_read(Ewl_Filelist *fl, 
+                                       unsigned int skip_dot_dot,
                                        void (*func)(Ewl_Filelist *fl, 
                                                        const char *dir, 
                                                        char *file));
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_column.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_filelist_column.c       26 Apr 2006 04:00:51 -0000      1.3
+++ ewl_filelist_column.c       26 Apr 2006 04:10:01 -0000      1.4
@@ -133,7 +133,7 @@
        ewl_container_child_append(EWL_CONTAINER(list->hbox), list->tree);
        ewl_widget_show(list->tree);
 
-       ewl_filelist_directory_read(fl, ewl_filelist_column_row_add);
+       ewl_filelist_directory_read(fl, TRUE, ewl_filelist_column_row_add);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_icon.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_filelist_icon.c 15 Apr 2006 05:14:31 -0000      1.4
+++ ewl_filelist_icon.c 26 Apr 2006 04:10:01 -0000      1.5
@@ -105,7 +105,7 @@
 
        list = EWL_FILELIST_ICON(fl);
        ewl_container_reset(EWL_CONTAINER(list->freebox));
-       ewl_filelist_directory_read(fl, ewl_filelist_icon_icon_add);
+       ewl_filelist_directory_read(fl, FALSE, ewl_filelist_icon_icon_add);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_list.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_filelist_list.c 20 Apr 2006 02:58:01 -0000      1.4
+++ ewl_filelist_list.c 26 Apr 2006 04:10:01 -0000      1.5
@@ -110,7 +110,7 @@
 
        list = EWL_FILELIST_LIST(fl);
        ewl_container_reset(EWL_CONTAINER(list->tree));
-       ewl_filelist_directory_read(fl, ewl_filelist_list_add);
+       ewl_filelist_directory_read(fl, FALSE, ewl_filelist_list_add);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- ewl_tree2.h 20 Apr 2006 02:58:01 -0000      1.21
+++ ewl_tree2.h 26 Apr 2006 04:10:01 -0000      1.22
@@ -1,6 +1,28 @@
 #ifndef EWL_TREE2_H
 #define EWL_TREE2_H
 
+/* 
+ * Make ewl_tree2 an ewl_box. it will pack in the paned header and a
+ * ewl_tree_display widget for the body. This will be a standard vbox. 
+ *
+ * subclassing widgets (ewl_tree_scrolled) will inherit tree and can then
+ * pull the _display widget out of the main box, pack in their scrollpane
+ * and then pack the _display widget back into the box. 
+ *
+ * This means that all the standard tree calls will work on the subclassing
+ * stuff, as the tree will do the work, and the subclassers will just move
+ * the shit in the tree around as needed.
+ *
+ * Ewl_Widget *rows needs to be a custom widget that can lay the widgets out
+ * in their tree view.
+ *
+ * Cons
+ * ----
+ * Needs an extra widget to hold the 'display' of the tree data
+ */
+
+
+
 /**
  * @addtogroup Ewl_Tree2 Ewl_Tree2: A Widget for List or Tree Layout
  * @brief Defines a widget for laying out other widgets in a tree or list




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to