From 5d57a39b702a0f198c8a180a20058e3c82615523 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 22 Jun 2007 04:01:36 +0000 Subject: add exit and reconfigure actions --- openbox/actions/exit.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 openbox/actions/exit.c (limited to 'openbox/actions/exit.c') 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; +} -- cgit v1.2.3