talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 34475d2091df71d344dca6b2c2a1bad3983869cc
parent c3e576c06b97448cff50e05964c44d585e1680d2
Author: Ricardo Mones <ricardo@mones.org>
Date:   Tue, 15 Sep 2020 18:45:20 +0200

Remove warning with poppler 0.90 and greater¹

poppler_viewer.c:829:3: warning: enumeration value
‘POPPLER_ACTION_RESET_FORM’ not handled in switch [-Wswitch]

¹ https://poppler.freedesktop.org/api/glib/PopplerAction.html#PopplerActionType

Diffstat:
Msrc/plugins/pdf_viewer/poppler_viewer.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/plugins/pdf_viewer/poppler_viewer.c b/src/plugins/pdf_viewer/poppler_viewer.c @@ -896,6 +896,11 @@ static void pdf_viewer_button_press_events_cb(GtkWidget *widget, GdkEventButton case POPPLER_ACTION_JAVASCRIPT: debug_print("yoyoyo ;-) javascript?\n"); break; +#if POPPLER_CHECK_VERSION(0,90,0) + case POPPLER_ACTION_RESET_FORM: + debug_print("yoyoyo ;-) reset form?\n"); + break; +#endif /* 0.90 */ #endif /* 0.18 */ #endif /* 0.14 */ }