Enlightenment CVS committal
Author : rephorm
Project : e17
Module : apps/elicit
Dir : e17/apps/elicit/src
Modified Files:
conf.c shots.c swatches.c
Log Message:
don't segv if we can't create shots.db or swatches.db (thanks digitalfallout)
create ~/.e/apps/elicit if it doesn't exist (so we CAN create the above dbs)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/conf.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- conf.c 11 May 2004 18:30:24 -0000 1.8
+++ conf.c 13 May 2004 00:34:22 -0000 1.9
@@ -9,6 +9,8 @@
elicit_config_load();
ecore_config_listen("theme", "/settings/theme", elicit_config_listener, 0, el);
+ /* cheap way to create ~/.e/apps/elicit */
+ elicit_config_save();
return 1;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/shots.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- shots.c 12 May 2004 19:13:30 -0000 1.1
+++ shots.c 13 May 2004 00:34:22 -0000 1.2
@@ -38,6 +38,8 @@
}
db = e_db_open(buf);
+
+ if (!db) return;
for (l = esmart_container_elements_get(el->shots.cont); l; l = l->next, i++)
{
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/swatches.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- swatches.c 12 May 2004 19:13:30 -0000 1.1
+++ swatches.c 13 May 2004 00:34:22 -0000 1.2
@@ -38,7 +38,9 @@
}
db = e_db_open(buf);
-
+
+ if (!db) return;
+
for (l = esmart_container_elements_get(el->swatches.cont); l; l = l->next)
{
Evas_Object *obj;
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs