]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/reconfigure.c
add exit and reconfigure actions
[chaz/openbox] / openbox / actions / reconfigure.c
diff --git a/openbox/actions/reconfigure.c b/openbox/actions/reconfigure.c
new file mode 100644 (file)
index 0000000..8802a37
--- /dev/null
@@ -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;
+}
This page took 0.020905 seconds and 4 git commands to generate.