Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_config_theme.c Log Message: Add the fm2 delete hook and select a theme if one is in the list. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_theme.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -3 -r1.34 -r1.35 --- e_int_config_theme.c 30 Aug 2006 14:45:33 -0000 1.34 +++ e_int_config_theme.c 1 Sep 2006 13:32:39 -0000 1.35 @@ -170,6 +170,42 @@ e_fm2_path_set(cfdata->o_fm, path, "/"); } +static void +_cb_files_files_deleted(void *data, Evas_Object *obj, void *event_info) +{ + E_Config_Dialog_Data *cfdata; + Evas_List *sel, *all, *n; + E_Fm2_Icon_Info *ici, *ic; + + cfdata = data; + if (!cfdata->theme) return; + if (!cfdata->o_fm) return; + + all = e_fm2_all_list_get(cfdata->o_fm); + if (!all) return; + sel = e_fm2_selected_list_get(cfdata->o_fm); + if (!sel) return; + + ici = sel->data; + + all = evas_list_find_list(all, ici); + n = evas_list_next(all); + if (!n) + { + n = evas_list_prev(all); + if (!n) return; + } + + ic = n->data; + if (!ic) return; + + e_fm2_select_set(cfdata->o_fm, ic->file, 1); + e_fm2_file_show(cfdata->o_fm, ic->file); + + evas_list_free(n); + + evas_object_smart_callback_call(cfdata->o_fm, "selection_change", cfdata); +} @@ -304,6 +340,9 @@ _cb_files_selected, cfdata); evas_object_smart_callback_add(o, "changed", _cb_files_files_changed, cfdata); + evas_object_smart_callback_add(o, "files_deleted", + _cb_files_files_deleted, cfdata); + e_fm2_path_set(o, path, "/"); of = e_widget_scrollframe_pan_add(evas, o, ------------------------------------------------------------------------- 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