Enlightenment CVS committal Author : turran Project : e17 Module : proto
Dir : e17/proto/etk/src/bin Modified Files: etk_test.c Log Message: Etk === + API changed: etk_init(int *argc, char *** argv). + etk_argument: now it modifies the parameters on the detected arguments Rest of etk apps, change etk_init(engine) with the new one. =================================================================== RCS file: /cvs/e/e17/proto/etk/src/bin/etk_test.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- etk_test.c 31 Jul 2006 23:23:12 -0000 1.25 +++ etk_test.c 2 Aug 2006 05:53:59 -0000 1.26 @@ -127,24 +127,11 @@ int main(int argc, char *argv[]) { - /* TODO - * + change etk_init to receive argc and argv - * + make a parser for argv - */ - char *engine; - if (argc > 1) - { - if(!strcmp(argv[1], "-fb")) - engine = strdup("ecore_fb"); - else - engine = strdup("ecore_evas_software_x11"); - } - if (!etk_init(engine)) + if (!etk_init(&argc, &argv)) { fprintf(stderr, "Could not init etk. Exiting...\n"); return 1; }; - etk_tooltips_enable(); _etk_test_main_window(); etk_main(); ------------------------------------------------------------------------- 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