Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_config_shelf.c Log Message: Remove sscanf totally. Much more reliable this way. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_shelf.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- e_int_config_shelf.c 24 Jul 2006 17:44:37 -0000 1.18 +++ e_int_config_shelf.c 24 Jul 2006 18:10:01 -0000 1.19 @@ -103,6 +103,8 @@ e_widget_ilist_clear(cfdata->o_list); e_widget_ilist_go(cfdata->o_list); + + e_shelf_config_init(); for (l = e_shelf_list(); l; l = l->next) { @@ -246,17 +248,12 @@ { E_Config_Dialog_Data *cfdata; E_Shelf *es; - char *dummy; - char tmp[4096]; - int i; + E_Config_Shelf *cfg; cfdata = data; if (!cfdata) return; - if (!cfdata->cur_shelf) return; - snprintf(tmp, sizeof(tmp), "%s", cfdata->cur_shelf); - sscanf(tmp, "%s #%i", dummy, &i); - es = evas_list_nth(e_shelf_list(), i); + es = evas_list_nth(e_shelf_list(), e_widget_ilist_selected_get(cfdata->o_list)); if (!es) return; e_shelf_unsave(es); @@ -271,16 +268,10 @@ { E_Config_Dialog_Data *cfdata; E_Shelf *es; - char *dummy; - char tmp[4096]; - int i; cfdata = data; if (!cfdata) return; - if (!cfdata->cur_shelf) return; - snprintf(tmp, sizeof(tmp), "%s", cfdata->cur_shelf); - sscanf(tmp, "%s #%i", dummy, &i); es = evas_list_nth(e_shelf_list(), e_widget_ilist_selected_get(cfdata->o_list)); if (!es) return; if (!es->config_dialog) e_int_shelf_config(es); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs