Enlightenment CVS committal Author : devilhorns Project : e_modules Module : weather
Dir : e_modules/weather Modified Files: e_mod_config.c Log Message: Fix weather module not saving icao code. =================================================================== RCS file: /cvs/e/e_modules/weather/e_mod_config.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- e_mod_config.c 3 Jul 2006 07:37:33 -0000 1.11 +++ e_mod_config.c 6 Jul 2006 16:45:21 -0000 1.12 @@ -100,7 +100,7 @@ of = e_widget_frametable_add(evas, D_("ICAO Code"), 0); ob = e_widget_label_add(evas, D_("ICAO Code")); e_widget_frametable_object_append(of, ob, 0, 0, 1, 1, 1, 0, 1, 0); - ob = e_widget_entry_add(evas, (&(cfdata->code))); + ob = e_widget_entry_add(evas, &cfdata->code); e_widget_min_size_set(ob, 100, 1); e_widget_frametable_object_append(of, ob, 1, 0, 1, 1, 1, 0, 1, 0); ob = e_widget_label_add(evas, D_("Get your ICAO code at:")); @@ -124,6 +124,8 @@ if (!cfdata->code) return 0; + printf("CFCode: %s\n", cfdata->code); + len = strlen(cfdata->code); if (len < 4 || len > 4) return 0; @@ -135,13 +137,9 @@ evas_stringshare_del(ci->code); char *t; - t = cfdata->code; - while ((*t != '\0') && (*t != ' ')) - { - *t = toupper(*t); - t++; - } - *t = '\0'; + t = strdup(cfdata->code); + *t = toupper(*t); + printf("\nCode: %s\n", t); ci->code = evas_stringshare_add(t); e_config_save_queue(); _weather_config_updated(ci->id); 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