diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2013-06-09 12:30:16 -0400 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-06-09 12:48:24 -0400 |
commit | 8b3bfb0a08896c14a405dd91f86a998a602045a2 (patch) | |
tree | c256d5edf52d00ec8ef0bddcb0205616beb2ef69 /apps/win_main.c | |
parent | 60005383aae11f8b8fabd8926e439e7f0bdc29de (diff) | |
download | mupdf-8b3bfb0a08896c14a405dd91f86a998a602045a2.tar.xz |
Remove fz_interactive API in favour of direct use of pdf API
Diffstat (limited to 'apps/win_main.c')
-rw-r--r-- | apps/win_main.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/win_main.c b/apps/win_main.c index d19f29ba..bf765d6b 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -100,40 +100,40 @@ void winerror(pdfapp_t *app, char *msg) exit(1); } -void winalert(pdfapp_t *app, fz_alert_event *alert) +void winalert(pdfapp_t *app, pdf_alert_event *alert) { int buttons = MB_OK; int icon = MB_ICONWARNING; - int pressed = FZ_ALERT_BUTTON_NONE; + int pressed = PDF_ALERT_BUTTON_NONE; switch (alert->icon_type) { - case FZ_ALERT_ICON_ERROR: + case PDF_ALERT_ICON_ERROR: icon = MB_ICONERROR; break; - case FZ_ALERT_ICON_WARNING: + case PDF_ALERT_ICON_WARNING: icon = MB_ICONWARNING; break; - case FZ_ALERT_ICON_QUESTION: + case PDF_ALERT_ICON_QUESTION: icon = MB_ICONQUESTION; break; - case FZ_ALERT_ICON_STATUS: + case PDF_ALERT_ICON_STATUS: icon = MB_ICONINFORMATION; break; } switch (alert->button_group_type) { - case FZ_ALERT_BUTTON_GROUP_OK: + case PDF_ALERT_BUTTON_GROUP_OK: buttons = MB_OK; break; - case FZ_ALERT_BUTTON_GROUP_OK_CANCEL: + case PDF_ALERT_BUTTON_GROUP_OK_CANCEL: buttons = MB_OKCANCEL; break; - case FZ_ALERT_BUTTON_GROUP_YES_NO: + case PDF_ALERT_BUTTON_GROUP_YES_NO: buttons = MB_YESNO; break; - case FZ_ALERT_BUTTON_GROUP_YES_NO_CANCEL: + case PDF_ALERT_BUTTON_GROUP_YES_NO_CANCEL: buttons = MB_YESNOCANCEL; break; } @@ -143,16 +143,16 @@ void winalert(pdfapp_t *app, fz_alert_event *alert) switch (pressed) { case IDOK: - alert->button_pressed = FZ_ALERT_BUTTON_OK; + alert->button_pressed = PDF_ALERT_BUTTON_OK; break; case IDCANCEL: - alert->button_pressed = FZ_ALERT_BUTTON_CANCEL; + alert->button_pressed = PDF_ALERT_BUTTON_CANCEL; break; case IDNO: - alert->button_pressed = FZ_ALERT_BUTTON_NO; + alert->button_pressed = PDF_ALERT_BUTTON_NO; break; case IDYES: - alert->button_pressed = FZ_ALERT_BUTTON_YES; + alert->button_pressed = PDF_ALERT_BUTTON_YES; } } |