summaryrefslogtreecommitdiff
path: root/test/gtk-test.cc
AgeCommit message (Collapse)AuthorFilesLines
2022-03-11Add readability-braces-around-statementsAlbert Astals Cid1-6/+12
2022-03-08Fix easy warning when building on mingwAlbert Astals Cid1-0/+2
2021-12-15glib: Remove FD-taking functions on windowsChristian Persch1-1/+6
They don't compile, and are not useful on windows anyway. Remove the functions completely, not just stub out their implementation, since otherwise the API contract of consuming the FD would be violated. https://gitlab.freedesktop.org/poppler/poppler/-/issues/1180
2021-11-13glib: Add poppler_document_new_from_fdChristian Persch1-18/+39
While it's already possible to create a PopplerDocument for STDIN by using fd://0 as the URI, it was not yet possible to create a PopplerDocument from a file descriptor. This adds poppler_document_new_from_fd(), which accepts a readable FD for a regular file, or for STDIN. Add a --fd option to test/gtk-test to test this. When used, gtk-test arguments are FD numbers instead of filenames or URIs. To test, use e.g. $ 3<test.pdf ./gtk-test --fd 3
2020-07-03Run clang-formatAlbert Astals Cid1-272/+234
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \; If you reached this file doing a git blame, please see README.contributors (instructions added 2 commits in the future to this one)
2019-12-02Enable modernize-use-overrideAlbert Astals Cid1-1/+1
not claiming copyright for this since it's a mechanical change
2019-11-29Enable modernize-deprecated-headersAlbert Astals Cid1-1/+1
2019-11-09Make globalParams a std::unique_ptrOliver Sander1-3/+1
2019-06-05gtk-test.cc: Rename variable to fix shadow warningAlbert Astals Cid1-3/+3
2018-10-23Replace GBool, gTrue, and gFalse by bool, true, false, resp.Oliver Sander1-2/+2
These are just non-standard names for bool, true, false, respectively. Getting rid of these names saves on layer of mental redirection, and enables proper syntax highlighting in editors.
2018-10-10Remove usage of pragmas interface and implementationAdam Reichold1-4/+0
GCC recommends not using them for a long time and its documentation says: > These #pragmas have been superceded as of GCC 2.7.2 by COMDAT support > and the “key method” heuristic mentioned in Vague Linkage. > Using them can actually cause your program to grow due to > unnecessary out-of-line copies of inline functions. Also nobody seems to set USE_GCC_PRAGMAS and sometimes they were guarded by just __GNUC__ which upsets Clang.
2018-01-09Enable no-missing-field-initializersAlbert Astals Cid1-1/+1
2018-01-08Run clang-tidy with modernize nullptrAlbert Astals Cid1-14/+14
Also add two enum values in the qt5 frontend to representate no flags Also mark glib/gtk/cairo system includes so that gcc doesn't report the issues in those headers
2017-03-09Add override markersAlbert Astals Cid1-3/+3
2013-05-21Do not use deprecated gtk_scrolled_window_add_with_viewport()Hib Eris1-0/+4
https://bugs.freedesktop.org/show_bug.cgi?id=64683
2013-01-19Make rendering thread-safeThomas Freitag1-1/+1
Bug #50992
2012-05-19gtk-tests: Port to GTK+ 3.0Carlos Garcia Campos1-20/+28
2011-09-01xpdf303: API rework, Gfx wants a PDFDoc instead of an XRefAlbert Astals Cid1-1/+1
2011-02-13tests: Merge splash and cairo tests into a single gtk-test toolCarlos Garcia Campos1-0/+397
With a command line option to use cairo or splash backends.