Add filters/all.c which will run startup on all the filters to register them
authorDana Jansens <danakj@orodu.net>
Fri, 29 Jul 2011 19:08:12 +0000 (15:08 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:55:14 +0000 (18:55 -0400)
Makefile.am
openbox/action_filter.c
openbox/filters/Makefile [new file with mode: 0644]
openbox/filters/all.c [new file with mode: 0644]
openbox/filters/all.h [new file with mode: 0644]

index 2a9e6d8cb86c1a9da95219ea6295417d3b1e590b..d92253f9326b8f40c96cbe468ffea01111b9a6f5 100644 (file)
@@ -234,6 +234,8 @@ openbox_openbox_SOURCES = \
        openbox/actions/showdesktop.c \
        openbox/actions/showmenu.c \
        openbox/actions/unfocus.c \
+       openbox/filters/all.c \
+       openbox/filters/all.h \
        openbox/action.c \
        openbox/action.h \
        openbox/action_filter.c \
index bbeaa91d64d660f41d7c4da8130d6ceb96841e5a..7451e257a0d916ae39168949bd80f3aeeaeec34b 100644 (file)
@@ -19,6 +19,8 @@
 #include "action_filter.h"
 #include "gettext.h"
 
+#include "filters/all.h"
+
 typedef struct _ObActionFilterDefinition ObActionFilterDefinition;
 
 struct _ObActionFilterDefinition {
@@ -43,7 +45,7 @@ static GSList *registered = NULL;
 
 void action_filter_startup(gboolean reconfig)
 {
-    //XXX filters_all_startup();
+    filters_all_startup();
 }
 
 void action_filter_shutdown(gboolean reconfig)
diff --git a/openbox/filters/Makefile b/openbox/filters/Makefile
new file mode 100644 (file)
index 0000000..b90edac
--- /dev/null
@@ -0,0 +1,4 @@
+all clean install:
+       $(MAKE) -C .. -$(MAKEFLAGS) $@
+
+.PHONY: all clean install
diff --git a/openbox/filters/all.c b/openbox/filters/all.c
new file mode 100644 (file)
index 0000000..5464fe3
--- /dev/null
@@ -0,0 +1,24 @@
+/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
+
+   filters/all.c for the Openbox window manager
+   Copyright (c) 2011        Dana Jansens
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   See the COPYING file for a copy of the GNU General Public License.
+*/
+
+#include "all.h"
+
+void filters_all_startup(void)
+{
+    /*filter_foo_startup();*/
+}
diff --git a/openbox/filters/all.h b/openbox/filters/all.h
new file mode 100644 (file)
index 0000000..2c7d966
--- /dev/null
@@ -0,0 +1,26 @@
+/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
+
+   filters/all.h for the Openbox window manager
+   Copyright (c) 2011        Dana Jansens
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   See the COPYING file for a copy of the GNU General Public License.
+*/
+
+#ifndef __filters_all_h
+#define __filters_all_h
+
+void filters_all_startup(void);
+
+/*void filter_foo_startup(void);*/
+
+#endif