Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_actions.c
Log Message:
add "now" versions of actions
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_actions.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -3 -r1.116 -r1.117
--- e_actions.c 19 Jun 2008 11:59:25 -0000 1.116
+++ e_actions.c 8 Jul 2008 12:02:09 -0000 1.117
@@ -1579,6 +1579,11 @@
ACT_FN_GO(exit)
{
+ if ((params) && (!strcmp(params, "now")))
+ {
+ e_sys_action_do(E_SYS_EXIT, NULL);
+ return;
+ }
if (exit_dialog) e_object_del(E_OBJECT(exit_dialog));
if (e_config->cnfmdlg_disabled)
@@ -1650,6 +1655,11 @@
ACT_FN_GO(logout)
{
+ if ((params) && (!strcmp(params, "now")))
+ {
+ e_sys_action_do(E_SYS_LOGOUT, NULL);
+ return;
+ }
if (logout_dialog) e_object_del(E_OBJECT(logout_dialog));
if (e_config->cnfmdlg_disabled)
@@ -1709,6 +1719,11 @@
ACT_FN_GO(halt)
{
+ if ((params) && (!strcmp(params, "now")))
+ {
+ e_sys_action_do(E_SYS_HALT, NULL);
+ return;
+ }
if (halt_dialog) e_object_del(E_OBJECT(halt_dialog));
if (e_config->cnfmdlg_disabled)
@@ -1768,6 +1783,11 @@
ACT_FN_GO(reboot)
{
+ if ((params) && (!strcmp(params, "now")))
+ {
+ e_sys_action_do(E_SYS_REBOOT, NULL);
+ return;
+ }
if (reboot_dialog) e_object_del(E_OBJECT(reboot_dialog));
if (e_config->cnfmdlg_disabled)
@@ -1827,6 +1847,11 @@
ACT_FN_GO(suspend)
{
+ if ((params) && (!strcmp(params, "now")))
+ {
+ e_sys_action_do(E_SYS_SUSPEND, NULL);
+ return;
+ }
if (suspend_dialog) e_object_del(E_OBJECT(suspend_dialog));
if (e_config->cnfmdlg_disabled)
@@ -1886,6 +1911,11 @@
ACT_FN_GO(hibernate)
{
+ if ((params) && (!strcmp(params, "now")))
+ {
+ e_sys_action_do(E_SYS_HIBERNATE, NULL);
+ return;
+ }
if (hibernate_dialog) e_object_del(E_OBJECT(hibernate_dialog));
if (e_config->cnfmdlg_disabled)
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs