summaryrefslogtreecommitdiff
path: root/apps/win_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/win_main.c')
-rw-r--r--apps/win_main.c28
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;
}
}