From: <enl...@li...> - 2004-03-07 03:28:51
|
Enlightenment CVS committal Author : rephorm Project : e17 Module : apps/elicit Dir : e17/apps/elicit/src Modified Files: Elicit.h conf.c elicit.c Log Message: bah. that was silly. fix things up so they don't segv with recent ecore_config changes (due to some sillyness...) =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/Elicit.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- Elicit.h 12 Feb 2004 05:37:05 -0000 1.8 +++ Elicit.h 7 Mar 2004 03:05:34 -0000 1.9 @@ -34,7 +34,9 @@ Evas_Object *draggie; Evas_Object *shot, *swatch; - + + char *app_name; + struct { int r, g, b; double h, s, v; =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/conf.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- conf.c 12 Feb 2004 05:37:05 -0000 1.5 +++ conf.c 7 Mar 2004 03:05:34 -0000 1.6 @@ -13,16 +13,16 @@ } void -elicit_config_load() +elicit_config_load(Elicit *el) { char buf[PATH_MAX + 1]; struct stat st; - snprintf(buf, sizeof(buf), "%s/.e/apps/%s", getenv("HOME"), __app_name); + snprintf(buf, sizeof(buf), "%s/.e/apps/%s", getenv("HOME"), el->app_name); if (stat(buf, &st)) mkdir(buf, S_IRUSR | S_IWUSR | S_IXUSR); - snprintf(buf, sizeof(buf), "%s/.e/apps/%s/config.db", getenv("HOME"), __app_name); + snprintf(buf, sizeof(buf), "%s/.e/apps/%s/config.db", getenv("HOME"), el->app_name); if (stat(buf, &st)) { /* =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/elicit/src/elicit.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- elicit.c 12 Feb 2004 05:37:05 -0000 1.11 +++ elicit.c 7 Mar 2004 03:05:34 -0000 1.12 @@ -34,6 +34,7 @@ return 1; } + el->app_name = strdup(argv[0]); /* create an Ecore_Evas (x11 window with an evas) */ el->ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255); if (!el->ee) |