Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_exec.c
Log Message:
add new ecore_Exe control calls (interrupt and quit) and dont ertror dialog
on all exits of apps (sigint/quit/.term can be ignored i think).
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_exec.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_exec.c 12 Mar 2008 07:31:13 -0000 1.13
+++ e_exec.c 29 Jul 2008 22:07:19 -0000 1.14
@@ -331,10 +331,20 @@
/* Let's hope that everything returns this properly. */
else if (!((ev->exited) && (ev->exit_code == EXIT_SUCCESS)))
{
- /* Show the error dialog with details from the exe. */
- _e_exec_error_dialog(inst->desktop, ecore_exe_cmd_get(ev->exe), ev,
- ecore_exe_event_data_get(ev->exe,
ECORE_EXE_PIPE_ERROR),
- ecore_exe_event_data_get(ev->exe,
ECORE_EXE_PIPE_READ));
+ /* filter out common exits via signals - int/term/quit. not really
+ * worth popping up a dialog for */
+ if (!
+ ((ev->signalled) &&
+ ((ev->exit_signal == SIGINT) ||
+ (ev->exit_signal == SIGQUIT) ||
+ (ev->exit_signal == SIGTERM)))
+ )
+ {
+ /* Show the error dialog with details from the exe. */
+ _e_exec_error_dialog(inst->desktop, ecore_exe_cmd_get(ev->exe), ev,
+ ecore_exe_event_data_get(ev->exe,
ECORE_EXE_PIPE_ERROR),
+ ecore_exe_event_data_get(ev->exe,
ECORE_EXE_PIPE_READ));
+ }
}
if (inst->desktop)
{
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs