Add menu item and dialog to select which events to display

Right now they are displayed in one hbox which doesn't work if you have
many events - but the code itself works and correctly toggles the events
on and off.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2011-10-25 02:51:16 -07:00
parent 499cc0c87c
commit 98efa0794a
3 changed files with 62 additions and 1 deletions

View file

@ -174,6 +174,15 @@ static struct ev_select *ev_namelist;
static int evn_allocated;
static int evn_used;
void evn_foreach(void (*callback)(const char *, int *, void *), void *data)
{
int i;
for (i = 0; i < evn_used; i++) {
callback(ev_namelist[i].ev_name, &ev_namelist[i].plot_ev, data);
}
}
void remember_event(const char *eventname)
{
int i=0, len;