Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_filedialog.c Log Message: Add column view to the View menu on the filedialog. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filedialog.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- ewl_filedialog.c 20 Apr 2006 04:09:51 -0000 1.23 +++ ewl_filedialog.c 26 Apr 2006 03:18:10 -0000 1.24 @@ -7,6 +7,7 @@ static void ewl_filedialog_cb_value_changed(Ewl_Widget *w, void *ev, void *data); static void ewl_filedialog_cb_mouse_down(Ewl_Widget *w, void *ev, void *data); +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); @@ -117,6 +118,13 @@ ewl_widget_show(menu); o = ewl_menu_item_new(); + ewl_button_label_set(EWL_BUTTON(o), "Column view"); + ewl_container_child_append(EWL_CONTAINER(menu), o); + 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), "Icon view"); ewl_container_child_append(EWL_CONTAINER(menu), o); ewl_callback_append(o, EWL_CALLBACK_CLICKED, @@ -484,6 +492,21 @@ ewl_object_state_remove(EWL_OBJECT(fd->menu_float), EWL_FLAG_STATE_PRESSED); } + + DLEAVE_FUNCTION(DLEVEL_STABLE); +} + +static void +ewl_filedialog_cb_column_view(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, + void *data) +{ + Ewl_Filedialog *fd; + + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("data", data); + + fd = data; + ewl_filedialog_list_view_set(fd, ewl_filelist_column_view_get()); DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------- 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