Enlightenment CVS committal Author : ravenlock Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_ipc_handlers.h e_ipc_handlers_list.h Log Message: Rename -shutdown to -exit, to match the operations in the menu. Create a -shutdown that will shut the computer down. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.149 retrieving revision 1.150 diff -u -3 -r1.149 -r1.150 --- e_ipc_handlers.h 5 Aug 2007 08:07:39 -0000 1.149 +++ e_ipc_handlers.h 24 Aug 2007 04:22:25 -0000 1.150 @@ -1390,7 +1390,7 @@ /****************************************************************************/ #define HDL E_IPC_OP_SHUTDOWN #if (TYPE == E_REMOTE_OPTIONS) - OP("-shutdown", 0, "Shutdown (exit) Enlightenment", 0, HDL) + OP("-exit", 0, "Exit Enlightenment", 0, HDL) #elif (TYPE == E_REMOTE_OUT) REQ_NULL(HDL); #elif (TYPE == E_WM_IN) @@ -7769,6 +7769,23 @@ GENERIC(HDL); E_Action *act; act = e_action_find("suspend"); + if (act && act->func.go) + act->func.go(NULL, NULL); + END_GENERIC(); +#elif (TYPE == E_REMOTE_IN) +#endif +#undef HDL + +/****************************************************************************/ +#define HDL E_IPC_OP_HALT +#if (TYPE == E_REMOTE_OPTIONS) + OP("-shutdown", 0, "Halt (shutdown) the computer", 0, HDL) +#elif (TYPE == E_REMOTE_OUT) + REQ_NULL(HDL); +#elif (TYPE == E_WM_IN) + GENERIC(HDL); + E_Action *act; + act = e_action_find("halt"); if (act && act->func.go) act->func.go(NULL, NULL); END_GENERIC(); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers_list.h,v retrieving revision 1.56 retrieving revision 1.57 diff -u -3 -r1.56 -r1.57 --- e_ipc_handlers_list.h 25 Mar 2007 19:28:51 -0000 1.56 +++ e_ipc_handlers_list.h 24 Aug 2007 04:22:25 -0000 1.57 @@ -411,10 +411,11 @@ #define E_IPC_OP_HIBERNATE 376 #define E_IPC_OP_REBOOT 377 #define E_IPC_OP_SUSPEND 378 +#define E_IPC_OP_HALT 379 -#define E_IPC_OP_DESKLOCK_USE_CUSTOM_DESKLOCK_SET 379 -#define E_IPC_OP_DESKLOCK_USE_CUSTOM_DESKLOCK_GET 380 -#define E_IPC_OP_DESKLOCK_USE_CUSTOM_DESKLOCK_GET_REPLY 381 -#define E_IPC_OP_DESKLOCK_CUSTOM_DESKLOCK_CMD_SET 382 -#define E_IPC_OP_DESKLOCK_CUSTOM_DESKLOCK_CMD_GET 383 -#define E_IPC_OP_DESKLOCK_CUSTOM_DESKLOCK_CMD_GET_REPLY 384 +#define E_IPC_OP_DESKLOCK_USE_CUSTOM_DESKLOCK_SET 380 +#define E_IPC_OP_DESKLOCK_USE_CUSTOM_DESKLOCK_GET 381 +#define E_IPC_OP_DESKLOCK_USE_CUSTOM_DESKLOCK_GET_REPLY 382 +#define E_IPC_OP_DESKLOCK_CUSTOM_DESKLOCK_CMD_SET 383 +#define E_IPC_OP_DESKLOCK_CUSTOM_DESKLOCK_CMD_GET 384 +#define E_IPC_OP_DESKLOCK_CUSTOM_DESKLOCK_CMD_GET_REPLY 385 ------------------------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs