mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
499cc0c87c
commit
98efa0794a
3 changed files with 62 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue