diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-22 04:01:36 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-22 04:01:36 +0000 |
| commit | 5d57a39b702a0f198c8a180a20058e3c82615523 (patch) | |
| tree | f4d99e1ccd99262c51b58e841f2094c8f9cedb3a /openbox/actions/exit.c | |
| parent | 1b7e813c62a6e54690d15550d51ac4269e63f346 (diff) | |
add exit and reconfigure actions
Diffstat (limited to 'openbox/actions/exit.c')
| -rw-r--r-- | openbox/actions/exit.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/openbox/actions/exit.c b/openbox/actions/exit.c new file mode 100644 index 00000000..68b5cef4 --- /dev/null +++ b/openbox/actions/exit.c @@ -0,0 +1,20 @@ +#include "openbox/actions.h" +#include "openbox/openbox.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_exit_startup() +{ + actions_register("Exit", + NULL, NULL, + run_func, + NULL, NULL); +} + +/* Always return FALSE because its not interactive */ +static gboolean run_func(ObActionsData *data, gpointer options) +{ + ob_exit(0); + + return FALSE; +} |
