commit 2b703d81489a7132f08ad0abcff6c58495f960cd
parent 367aa54c16cdfbe946d26c133083b2ae1d715791
Author: Ricardo Mones <ricardo@mones.org>
Date: Mon, 25 Nov 2013 20:22:00 +0100
Clean poppler_viewer.c switch warnings
Cleans:
• poppler_viewer.c:827:3: warning: enumeration value
'POPPLER_ACTION_NONE' not handled in switch
• poppler_viewer.c:827:3: warning: enumeration value
'POPPLER_ACTION_RENDITION' not handled in switch
• poppler_viewer.c:827:3: warning: enumeration value
'POPPLER_ACTION_OCG_STATE' not handled in switch
• poppler_viewer.c:827:3: warning: enumeration value
'POPPLER_ACTION_JAVASCRIPT' not handled in switch
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/plugins/pdf_viewer/poppler_viewer.c b/src/plugins/pdf_viewer/poppler_viewer.c
@@ -877,9 +877,25 @@ static void pdf_viewer_button_press_events_cb(GtkWidget *widget, GdkEventButton
case POPPLER_ACTION_NAMED:
debug_print("action named not yet implemented\n");
break;
+ case POPPLER_ACTION_NONE:
+ debug_print("action none does nothing, surprise!\n");
+ break;
+#if POPPLER_CHECK_VERSION(0,14,0)
case POPPLER_ACTION_MOVIE:
debug_print("yoyoyo ;-) a movie?\n");
break;
+ case POPPLER_ACTION_RENDITION:
+ debug_print("yoyoyo ;-) multimedia?\n");
+ break;
+ case POPPLER_ACTION_OCG_STATE:
+ debug_print("yoyoyo ;-) layer state?\n");
+ break;
+#if POPPLER_CHECK_VERSION(0,18,0)
+ case POPPLER_ACTION_JAVASCRIPT:
+ debug_print("yoyoyo ;-) javascript?\n");
+ break;
+#endif /* 0.18 */
+#endif /* 0.14 */
}
if (((MimeViewer *)viewer)->mimeview &&
((MimeViewer *)viewer)->mimeview->messageview &&