From 3c34130de5795f22c69b37b52a8287ef6c930e59 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 29 Jul 2011 15:08:12 -0400 Subject: [PATCH] Add filters/all.c which will run startup on all the filters to register them --- Makefile.am | 2 ++ openbox/action_filter.c | 4 +++- openbox/filters/Makefile | 4 ++++ openbox/filters/all.c | 24 ++++++++++++++++++++++++ openbox/filters/all.h | 26 ++++++++++++++++++++++++++ 5 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 openbox/filters/Makefile create mode 100644 openbox/filters/all.c create mode 100644 openbox/filters/all.h diff --git a/Makefile.am b/Makefile.am index 49680801..8d9610cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -229,6 +229,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 \ diff --git a/openbox/action_filter.c b/openbox/action_filter.c index bbeaa91d..7451e257 100644 --- a/openbox/action_filter.c +++ b/openbox/action_filter.c @@ -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 index 00000000..b90edacf --- /dev/null +++ b/openbox/filters/Makefile @@ -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 index 00000000..5464fe39 --- /dev/null +++ b/openbox/filters/all.c @@ -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 index 00000000..2c7d966d --- /dev/null +++ b/openbox/filters/all.h @@ -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 -- 2.39.2