Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_config_modules.c Log Message: Destroy list when finished =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_modules.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- e_int_config_modules.c 24 Dec 2005 18:50:23 -0000 1.12 +++ e_int_config_modules.c 25 Dec 2005 10:20:25 -0000 1.13 @@ -266,7 +266,7 @@ o = e_widget_list_add(evas, 0, 1); of = e_widget_framelist_add(evas, "Modules", 1); ilist = e_widget_ilist_add(evas, 16, 16, NULL); - e_widget_on_change_hook_set(ilist, _ilist_cb_change, cfdata); + e_widget_on_change_hook_set(ilist, _ilist_cb_change, cfdata); /* Loaded Modules */ for (l = e_config->modules; l; l = l->next) @@ -322,11 +322,10 @@ /* generate the core widget layout for an advanced dialog */ Evas_Object *o, *ob, *of, *oc, *ilist, *ilist2; E_Radio_Group *rg; - Evas_List *l, *l2; + Evas_List *l; E_Module *m; Ecore_List *modules; char full_path[PATH_MAX]; - int loaded; char *icon; char buf[PATH_MAX]; @@ -399,13 +398,14 @@ E_Path_Dir *epd; epd = l->data; - printf("Dir: %s\n", epd->dir); - if ((ecore_file_exists(epd->dir)) && (ecore_file_is_dir(epd->dir))) + if (ecore_file_is_dir(epd->dir)) { modules = ecore_file_ls(epd->dir); if (modules) { char *mod; + + ecore_list_goto_first(modules); while ((mod = ecore_list_next(modules))) { snprintf(full_path, sizeof(full_path), "%s/%s", epd->dir, mod); @@ -414,22 +414,7 @@ { E_Module *m; m = e_module_find(mod); - if (m) - { - loaded = 0; - for (l2 = e_config->modules; l2; l2 = l2->next) - { - E_Config_Module *em; - - em = l2->data; - if (!strcmp(m->name, em->name)) - { - loaded = 1; - break; - } - } - } - if ((!m) || (!loaded)) + if (!m) { oc = e_icon_add(evas); icon = e_path_find(path_modules, buf); @@ -443,6 +428,7 @@ } ecore_list_destroy(modules); + ecore_list_destroy(l); e_widget_ilist_go(ilist2); e_widget_min_size_set(ilist2, 120, 120); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs