diff options
author | Dennis Kasprzyk <onestone@opencompositing.org> | 2008-08-08 00:54:13 +0200 |
---|---|---|
committer | Dennis kasprzyk <onestone@opencompositing.org> | 2008-08-08 00:54:13 +0200 |
commit | 51a6ee41ec7299191381de897f36d983ba12bdcc (patch) | |
tree | 9980ae2c91ef5d6fff90545da14c935d650c7c2e /src/plugin.cpp | |
parent | 860cc8ec6898fc33eda3aabb59eed7443a536e05 (diff) | |
download | zcomp-51a6ee41ec7299191381de897f36d983ba12bdcc.tar.gz zcomp-51a6ee41ec7299191381de897f36d983ba12bdcc.tar.bz2 |
Make CompObject smarter.
Diffstat (limited to 'src/plugin.cpp')
-rw-r--r-- | src/plugin.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp index d81b320..8762ad8 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -30,6 +30,7 @@ #include <dirent.h> #include <compiz-core.h> +#include <compobject.h> CompPlugin *plugins = 0; @@ -319,15 +320,15 @@ typedef struct _InitObjectTypeContext { CompObjectType type; } InitObjectTypeContext; -static CompBool +static bool initObjectTree (CompObject *object, void *closure); -static CompBool +static bool finiObjectTree (CompObject *object, void *closure); -static CompBool +static bool initObjectsWithType (CompObjectType type, CompObject *parent, void *closure) @@ -340,9 +341,9 @@ initObjectsWithType (CompObjectType type, ctx.plugin = pCtx->plugin; ctx.object = NULL; - if (!compObjectForEach (parent, type, initObjectTree, (void *) &ctx)) + if (!parent->forEachChild (initObjectTree, (void *) &ctx, type)) { - compObjectForEach (parent, type, finiObjectTree, (void *) &ctx); + parent->forEachChild (finiObjectTree, (void *) &ctx, type); return FALSE; } @@ -350,7 +351,7 @@ initObjectsWithType (CompObjectType type, return TRUE; } -static CompBool +static bool finiObjectsWithType (CompObjectType type, CompObject *parent, void *closure) @@ -365,12 +366,12 @@ finiObjectsWithType (CompObjectType type, ctx.plugin = pCtx->plugin; ctx.object = NULL; - compObjectForEach (parent, type, finiObjectTree, (void *) &ctx); + parent->forEachChild (finiObjectTree, (void *) &ctx, type); return TRUE; } -static CompBool +static bool initObjectTree (CompObject *object, void *closure) { @@ -413,7 +414,7 @@ initObjectTree (CompObject *object, return TRUE; } -static CompBool +static bool finiObjectTree (CompObject *object, void *closure) { |