Restore the ability to use the default effect implementations

The addition of method implementations in the base class in the
plugin-gobject branch broke the logic for checking to see
if a plugin didn't implement an effect. Requiring a mandatory
chain up to the base class is a fiddly anyways, so this patch
does the 'running' count computations in a different (and more
robust) way.

mutter-plugin.h mutter-plugin.c: Add _mutter_plugin_effect_started()
 to increment the running count.
mutter-plugin-manager.c: Call _mutter_plugin_effect_started()
 as necessary.
mutter-plugin.c: Remove the "real" methods that did nothing
 but implement the runnning count.
plugins/default.c: Remove chain-ups.
This commit is contained in:
Owen W. Taylor
2008-12-22 16:53:10 -05:00
parent e083742426
commit e11100e584
4 changed files with 25 additions and 98 deletions

View File

@ -264,4 +264,7 @@ mutter_plugin_get_xdisplay (MutterPlugin *plugin);
MetaScreen *
mutter_plugin_get_screen (MutterPlugin *plugin);
void
_mutter_plugin_effect_started (MutterPlugin *plugin);
#endif /* MUTTER_PLUGIN_H_ */