commit a5cd7661f5b2a5c6f0688452fcff223a0b40b864
parent be8a15e9fdb49d49fa78a56940c72ed042a24e07
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:
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
@@ -901,6 +901,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 */
}