aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-21 23:13:13 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-21 23:13:13 +0100
commita7115b12267f6165426d0540da6ab0ae6f90a191 (patch)
treef022738acdc5963ed6f5bc4384031191f3339d29 /vis.c
parent095c502cc6510da652332cc6c406ab110a935806 (diff)
downloadvis-a7115b12267f6165426d0540da6ab0ae6f90a191.tar.gz
vis-a7115b12267f6165426d0540da6ab0ae6f90a191.tar.xz
vis-lua: rename file_save event to file_save_post
Indicating that the event is triggered *after* a successfull write.
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vis.c b/vis.c
index ed94f7d..341e6ed 100644
--- a/vis.c
+++ b/vis.c
@@ -58,7 +58,7 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) {
vis->event->vis_start(vis);
break;
case VIS_EVENT_FILE_OPEN:
- case VIS_EVENT_FILE_SAVE:
+ case VIS_EVENT_FILE_SAVE_POST:
case VIS_EVENT_FILE_CLOSE:
{
File *file = va_arg(ap, File*);
@@ -66,8 +66,8 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) {
break;
if (id == VIS_EVENT_FILE_OPEN && vis->event->file_open)
vis->event->file_open(vis, file);
- else if (id == VIS_EVENT_FILE_SAVE && vis->event->file_save)
- vis->event->file_save(vis, file);
+ else if (id == VIS_EVENT_FILE_SAVE_POST && vis->event->file_save_post)
+ vis->event->file_save_post(vis, file);
else if (id == VIS_EVENT_FILE_CLOSE && vis->event->file_close)
vis->event->file_close(vis, file);
break;