From 34b5ec0c2ae66511adb65d246287132f11abb3d4 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 10 Oct 2016 19:10:14 +0100 Subject: Bug 697094: Disable viewer text input on linux. Only Windows and Android have form filling text input implemented properly so far. Neither of those build using the Makefile. We therefore disable text input in Makefile built viewers. --- platform/x11/pdfapp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'platform/x11') diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 0b81d37f..98cd510c 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -1641,6 +1641,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta { switch (pdf_widget_type(ctx, widget)) { +#ifdef DISABLE_TEXT_INPUT case PDF_WIDGET_TYPE_TEXT: { char *text = pdf_text_widget_text(ctx, idoc, widget); @@ -1658,7 +1659,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta pdfapp_updatepage(app); } break; - +#endif case PDF_WIDGET_TYPE_LISTBOX: case PDF_WIDGET_TYPE_COMBOBOX: { -- cgit v1.2.3