From: Dana Jansens Date: Fri, 29 Jul 2011 19:08:12 +0000 (-0400) Subject: Add filters/all.c which will run startup on all the filters to register them X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f4e8f5f3da3837283877310b32c84a1a2c0170b8;p=dana%2Fopenbox.git Add filters/all.c which will run startup on all the filters to register them --- diff --git a/Makefile.am b/Makefile.am index 2a9e6d8c..d92253f9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ 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