Enlightenment CVS committal Author : onefang Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_config_apps.c Log Message: Add application now works. NOTE: still no display of the apps in the destination. It's coming. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_apps.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- e_int_config_apps.c 30 Aug 2006 04:00:03 -0000 1.4 +++ e_int_config_apps.c 30 Aug 2006 07:25:21 -0000 1.5 @@ -168,7 +168,31 @@ static void _cb_button_add(void *data1, void *data2) { - e_fdo_menu_to_order(); + E_Config_Dialog_Data *cfdata; + Evas_List *selected; + E_Fm2_Icon_Info *ici; + const char *realpath; + char buf[4096]; + E_App *a, *parent; + + cfdata = data1; + if (!cfdata->gui.o_fm) return; + if (!cfdata->gui.o_fm_all) return; + selected = e_fm2_selected_list_get(cfdata->gui.o_fm_all); + if (!selected) return; + ici = selected->data; + realpath = e_fm2_real_path_get(cfdata->gui.o_fm_all); + if (!strcmp(realpath, "/")) + snprintf(buf, sizeof(buf), "/%s", ici->file); + else + snprintf(buf, sizeof(buf), "%s/%s", realpath, ici->file); + evas_list_free(selected); + if (ecore_file_is_dir(buf)) return; + a = e_app_new(buf, 0); + realpath = e_fm2_real_path_get(cfdata->gui.o_fm); + parent = e_app_new(realpath, 0); + if ((a) && (parent)) + e_app_append(a, parent); } static void ------------------------------------------------------------------------- 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