Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_filedialog.c 


Log Message:
- patch the tree view into the filedialog

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filedialog.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- ewl_filedialog.c    4 Jan 2007 05:09:47 -0000       1.28
+++ ewl_filedialog.c    18 Jan 2007 11:34:38 -0000      1.29
@@ -11,6 +11,7 @@
 static void ewl_filedialog_cb_column_view(Ewl_Widget *w, void *ev, void *data);
 static void ewl_filedialog_cb_icon_view(Ewl_Widget *w, void *ev, void *data);
 static void ewl_filedialog_cb_list_view(Ewl_Widget *w, void *ev, void *data);
+static void ewl_filedialog_cb_tree_view(Ewl_Widget *w, void *ev, void *data);
 
 static void ewl_filedialog_cb_show_dot(Ewl_Widget *w, void *ev, void *data);
 static void ewl_filedialog_cb_show_favorites(Ewl_Widget *w, void *ev, void 
*data);
@@ -131,6 +132,13 @@
        ewl_callback_append(o, EWL_CALLBACK_CLICKED,
                                ewl_filedialog_cb_column_view, fd);
        ewl_widget_show(o);
+       
+       o = ewl_menu_item_new();
+       ewl_button_label_set(EWL_BUTTON(o), "Tree view");
+       ewl_container_child_append(EWL_CONTAINER(menu), o);
+       ewl_callback_append(o, EWL_CALLBACK_CLICKED,
+                               ewl_filedialog_cb_tree_view, fd);
+       ewl_widget_show(o);
 
        o = ewl_menu_item_new();
        ewl_button_label_set(EWL_BUTTON(o), "Show Dot Files");
@@ -548,6 +556,20 @@
 
        fd = data;
        ewl_filedialog_list_view_set(fd, ewl_filelist_list_view_get());
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+static void
+ewl_filedialog_cb_tree_view(Ewl_Widget *w, void *ev, void *data)
+{
+       Ewl_Filedialog *fd;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR("data", data);
+
+       fd = data;
+       ewl_filedialog_list_view_set(fd, ewl_filelist_tree_view_get());
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }



-------------------------------------------------------------------------
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

Reply via email to