forked from external/yambar
module: remove module->expose() and module->end_expose()
Bar now calls exposable->expose() and exposable->destroy() directly
This commit is contained in:
parent
33cba8b0ba
commit
4c577766d1
3 changed files with 10 additions and 39 deletions
15
module.c
15
module.c
|
@ -13,8 +13,6 @@ module_common_new(void)
|
|||
|
||||
mod->destroy = &module_default_destroy;
|
||||
mod->begin_expose = &module_default_begin_expose;
|
||||
mod->expose = &module_default_expose;
|
||||
mod->end_expose = &module_default_end_expose;
|
||||
|
||||
/* No defaults for these; must be provided by implementation */
|
||||
mod->run = NULL;
|
||||
|
@ -44,16 +42,3 @@ module_default_begin_expose(struct module *mod)
|
|||
e->begin_expose(e);
|
||||
return e;
|
||||
}
|
||||
|
||||
void
|
||||
module_default_expose(const struct module *mod, const struct exposable *exposable,
|
||||
cairo_t *cr, int x, int y, int height)
|
||||
{
|
||||
exposable->expose(exposable, cr, x, y, height);
|
||||
}
|
||||
|
||||
void
|
||||
module_default_end_expose(const struct module *mod, struct exposable *exposable)
|
||||
{
|
||||
exposable->destroy(exposable);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue