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/reconfigure.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 openbox/actions/reconfigure.c (limited to 'openbox/actions/reconfigure.c') diff --git a/openbox/actions/reconfigure.c b/openbox/actions/reconfigure.c new file mode 100644 index 00000000..8802a37b --- /dev/null +++ b/openbox/actions/reconfigure.c @@ -0,0 +1,20 @@ +#include "openbox/actions.h" +#include "openbox/openbox.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_reconfigure_startup() +{ + actions_register("Reconfigure", + NULL, NULL, + run_func, + NULL, NULL); +} + +/* Always return FALSE because its not interactive */ +static gboolean run_func(ObActionsData *data, gpointer options) +{ + ob_reconfigure(); + + return FALSE; +} -- cgit v1.2.3