actions to toggle new modes.

SVN revision: 40385
This commit is contained in:
Gustavo Sverzut Barbieri 2009-04-25 20:54:12 +00:00
parent 7120b06df7
commit 04b88fea5f
1 changed files with 26 additions and 0 deletions

View File

@ -1800,6 +1800,22 @@ ACT_FN_GO(halt_now)
e_sys_action_do(E_SYS_HALT_NOW, NULL);
}
/***************************************************************************/
ACT_FN_GO(mode_presentation_toggle)
{
e_config->mode.presentation = !e_config->mode.presentation;
e_config_mode_changed();
e_config_save_queue();
}
/***************************************************************************/
ACT_FN_GO(mode_offline_toggle)
{
e_config->mode.offline = !e_config->mode.offline;
e_config_mode_changed();
e_config_save_queue();
}
/***************************************************************************/
static E_Dialog *logout_dialog = NULL;
@ -2787,6 +2803,16 @@ e_actions_init(void)
e_action_predef_name_set(_("Enlightenment"), _("Exit Now"),
"exit_now", NULL, NULL, 0);
ACT_GO(mode_presentation_toggle);
e_action_predef_name_set(_("Enlightenment : Mode"),
_("Presentation Mode Toggle"),
"mode_presentation_toggle", NULL, NULL, 0);
ACT_GO(mode_offline_toggle);
e_action_predef_name_set(_("Enlightenment : Mode"),
_("Offline Mode Toggle"),
"mode_offline_toggle", NULL, NULL, 0);
ACT_GO(logout);
e_action_predef_name_set(_("System"), _("Log Out"), "logout",
NULL, NULL, 0);