Enlightenment CVS committal
Author : englebass
Project : e17
Module : apps/expedite
Dir : e17/apps/expedite/src/bin
Modified Files:
ui.c
Log Message:
switch to make expedite run all tests and quit.
===================================================================
RCS file: /cvs/e/e17/apps/expedite/src/bin/ui.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ui.c 17 Oct 2007 11:55:47 -0000 1.5
+++ ui.c 8 Nov 2007 21:00:35 -0000 1.6
@@ -44,6 +44,8 @@
static void (*key_func) (char *key) = NULL;
static void (*loop_func) (double t, int f) = NULL;
+static int run_all = 0;
+
static void
_ui_exit(void)
{
@@ -367,8 +369,15 @@
#undef UI
_ui_menu_item_add("exit.png", "Exit", _ui_exit);
- menu_active = 1;
-
+ if (run_all)
+ {
+ _ui_all();
+ _ui_exit();
+ }
+ else
+ {
+ menu_active = 1;
+ }
}
void
@@ -378,9 +387,9 @@
for (i = 1; i < argc; i++)
{
- if ((!strcmp(argv[i], "-e")) && (i < (argc - 1)))
+ if (!strcmp(argv[i], "-a"))
{
- i++;
+ run_all = 1;
}
}
_ui_setup();
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs