Enlightenment CVS committal Author : titansoccer15 Project : e17 Module : proto
Dir : e17/proto/ephoto/src Modified Files: ephoto.c Log Message: More command line stuff. =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/ephoto/src/ephoto.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ephoto.c 19 Mar 2006 06:26:21 -0000 1.11 +++ ephoto.c 19 Mar 2006 06:49:56 -0000 1.12 @@ -12,10 +12,13 @@ int audio = 0; int wino = 0; int mainwin = 15; +int nopresent = 15; +int noslide = 15; int audiolen; int slidenum; char *audios; char argimage[PATH_MAX]; +char argaudio[PATH_MAX]; char tempdb[PATH_MAX]; char db[PATH_MAX]; /*****************/ @@ -40,17 +43,32 @@ char *home; int argint = 1; while ( argint < argc ) { - if ( argint < argc && !strcmp(argv[argint], "--slideshow") ) { + if ( argint < argc && !strcmp(argv[argint], "--slideshow") && noslide != 0 ) { int imageint; imageint = argint; - while ( imageint < argc ) { - imageint++; + imageint++; + while ( imageint < argc && ecore_file_exists(argv[imageint]) != 0 ) { ecore_dlist_append(m->imagelist, strdup(argv[imageint])); + imageint++; } mainwin = 0; + nopresent = 0; slideshow_cb(NULL, NULL, NULL); ewl_main(); } + else if ( argint < argc && !strcmp(argv[argint], "--presentation") && nopresent != 0 ) { + int imageint; + imageint = argint; + imageint++; + while ( imageint < argc && ecore_file_exists(argv[imageint]) != 0 ) { + ecore_dlist_append(m->imagelist, strdup(argv[imageint])); + imageint++; + } + mainwin = 0; + noslide = 0; + presentation_cb(NULL, NULL, NULL); + ewl_main(); + } else if ( argint < argc && !strcmp(argv[argint], "--view-image") ) { int imageint; imageint = argint; ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs