particle: add an 'on_click_template' to base constructor.

This is intended to be a format-like string, with the possibility to
use tag formatters.

The expanded string will later be passed to the system() call.
This commit is contained in:
Daniel Eklöf 2018-12-29 14:36:18 +01:00
parent 6019129acc
commit 5164d1d6ea
7 changed files with 14 additions and 7 deletions

View file

@ -60,7 +60,7 @@ struct particle *
particle_map_new(const char *tag, const struct particle_map *particle_map,
size_t count, struct particle *default_particle)
{
struct particle *particle = particle_common_new(0, 0);
struct particle *particle = particle_common_new(0, 0, NULL);
particle->destroy = &particle_destroy;
particle->instantiate = &instantiate;