Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_int_config_background.c
Log Message:
Fix segfault when deleting a background while this dialog is open.
Add file monitor event for deleting a background while config dialog is open
to remove it from the list.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_background.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- e_int_config_background.c 2 Apr 2006 04:20:53 -0000 1.44
+++ e_int_config_background.c 8 Apr 2006 21:56:03 -0000 1.45
@@ -466,6 +466,7 @@
Evas *evas;
Evas_Object *il, *ic;
char *file;
+ char *noext;
cfdata = data;
if (!cfdata) return;
@@ -490,7 +491,11 @@
e_widget_ilist_append(il, ic, ecore_file_strip_ext(file),
_ilist_cb_bg_selected, cfd, (char *)path);
}
}
- free(file);
+ else if (event == ECORE_FILE_EVENT_DELETED_FILE)
+ {
+ noext = ecore_file_strip_ext(file);
+ e_widget_ilist_remove_label(il, noext);
+ }
}
static int
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs