commit c201fa6d896c26691ed43967b2c20f6c8229802d Author: Ignacio Casal Quinteiro Date: 2017-01-29 parse-utils: instead of using GFile use paths and canonalize them This takes the method from glib to canonalize the paths just that instead of using G_DIR_SEPARATOR it always uses / since we want / for all the platforms. https://bugzilla.gnome.org/show_bug.cgi?id=777894 M libgxps/gxps-parse-utils.c commit 6dd9b795bb2807d9b2024ac97f72407c545b5510 Author: Carlos Garcia Campos Date: 2017-01-29 Revert "parse-utils: avoid mixing files with paths" This reverts commit 8f04b292c0e551e2ba8dba2c77012699e40685c7. It broke structure paths containig '..'. M libgxps/gxps-parse-utils.c commit c2cdd0f529d7fb375e78494ebd83bd8808331a30 Author: Carlos Garcia Campos Date: 2017-01-29 document-structure: Add an assert to ensure node->parent is never NULL It should never be NULL at that point. M libgxps/gxps-document-structure.c commit d1272be845d7b9739f7118675d792a66bf8b5504 Author: Ignacio Casal Quinteiro Date: 2016-09-08 path: avoid set but not used warnings These variables are only used in debug https://bugzilla.gnome.org/show_bug.cgi?id=771057 M libgxps/gxps-path.c commit 7e3bff93b880a420a3d96dd7272512a8ab547013 Author: Philip Withnall Date: 2016-12-20 lib: Fix potential NULL pointer dereference utf8 is dereferenced earlier in the function than the NULL check, so if it is NULL, this will crash. Move the length calculation lower down to avoid this. Coverity ID: 1391238 https://bugzilla.gnome.org/show_bug.cgi?id=776323 M libgxps/gxps-glyphs.c commit 2cee4004f969683f3df9d102d9f47e376dd59c8a Author: Ignacio Casal Quinteiro Date: 2017-01-28 archive: another g_clear_pointer M libgxps/gxps-archive.c commit cc8b43990d7cce2a58d5bf2818db701d2f284442 Author: Ignacio Casal Quinteiro Date: 2017-01-28 Do not export methods that are supposed to be private At some point when I added the export flag to the methods I wanted to match what the regex was exporting, though these methods are private and I think we can safely stop exporting them since I hope evince is not actually using them. https://bugzilla.gnome.org/show_bug.cgi?id=777865 M libgxps/Makefile.am M libgxps/gxps-archive.h M libgxps/gxps-brush.h M libgxps/gxps-color.h M libgxps/gxps-fonts.h M libgxps/gxps-glyphs.h M libgxps/gxps-images.h M libgxps/gxps-matrix.h M libgxps/gxps-page-private.h M libgxps/gxps-parse-utils.h M libgxps/gxps-path.h commit e5655e01d519367a1d698f2d360b6ba34d8326a7 Author: Ignacio Casal Quinteiro Date: 2017-01-27 Use g_clear_object/pointer where possible Since now we depend on an newly enough glib we can make usage of the methods those methods. https://bugzilla.gnome.org/show_bug.cgi?id=777851 M libgxps/gxps-archive.c M libgxps/gxps-core-properties.c M libgxps/gxps-document-structure.c M libgxps/gxps-document.c M libgxps/gxps-file.c M libgxps/gxps-page.c M libgxps/gxps-parse-utils.c M tools/gxps-converter.c M tools/gxps-image-converter.c commit 4a960bc1e66557b5583a8183dd68a603b6e4502d Author: Ignacio Casal Quinteiro Date: 2017-01-27 archive: interleaved paths must be always using / separators We must ensure the paths are separated using / otherwise in platforms like Windows we would endup with \ separators which clearly do not point to any file. M libgxps/gxps-archive.c commit 8c707929bf5e58b82cda2e545d9e0c4a74525fc0 Author: Ignacio Casal Quinteiro Date: 2017-01-17 nmake: fix mistake when generating the object list M nmake/create-lists-msvc.mak commit da9fc1c4c46f811588619b51ef3f5f598c0ca772 Author: Ignacio Casal Quinteiro Date: 2017-01-16 images: use the right return type M libgxps/gxps-images.c commit ad8b2c494dea4c7e3dbc03de9eed6e57e36c151f Author: Paolo Borelli Date: 2017-01-17 document-structure: plug small memory leak M libgxps/gxps-document-structure.c commit fe2425e38cbb01f01dcbf2095a3e582947d37003 Author: Paolo Borelli Date: 2017-01-17 archive: do not leak the stream M libgxps/gxps-archive.c commit b93514d62fb5fcc657a2e890054986731d1c28b7 Author: Paolo Borelli Date: 2017-01-17 print-converter: fix invalid memory access "ext" is a pointer inside basename_lower, so we must free only once we are done using it. M tools/gxps-print-converter.c commit e44399ebdd1424087acc3a2e9253616ae582dd89 Author: Ignacio Casal Quinteiro Date: 2017-01-17 archive: use __LA_* types from libarchive These defines are available also in libarchive 3.1 (which is the version present in the latest Ubuntu LTS). M libgxps/gxps-archive.c commit 9c9ccea6dc9bf49225cee5c3cfd84c8c55bacfba Author: Ignacio Casal Quinteiro Date: 2017-01-17 tools: fix typo in Makefile.am M tools/Makefile.am commit 99e57d09242a65826fcf7ec1c65aa4be7b2bf717 Author: Paolo Borelli Date: 2017-01-17 archive: fix indentation in the previous patch M libgxps/gxps-archive.c commit 84e11c4f93829a762273b7cc362d6bc9a7582ed7 Author: Paolo Borelli Date: 2017-01-15 archive: use GHashTable for the entries We only use entries as a set to check if a specific entry is present. Using GHashTable is simpler and avoids walking the list each time. https://bugzilla.gnome.org/show_bug.cgi?id=777272 M libgxps/gxps-archive.c commit 6cfdc25d5e82f42d3ffbf2ad4a1fcf59f6ed55b8 Author: Paolo Borelli Date: 2017-01-15 gxps-file: use GPtrArray for the docs in an archive The API exposes get_n and get_nth so using an array internally is simpler and more efficient. https://bugzilla.gnome.org/show_bug.cgi?id=777269 M libgxps/gxps-file.c commit 8f04b292c0e551e2ba8dba2c77012699e40685c7 Author: Ignacio Casal Quinteiro Date: 2017-01-09 parse-utils: avoid mixing files with paths When getting the relative path we should not try to use GFile since this will convert internally the paths from / to \ instead we should deal with paths directly so the paths do not get mixed up on Windows. M libgxps/gxps-parse-utils.c commit cf8fef812409ab152e332e3ba5630f73c80a5a96 Author: Ignacio Casal Quinteiro Date: 2017-01-09 images: check the extension in lower case M libgxps/gxps-images.c commit fb393f754f2398a87933de20d659f812a9d580dc Author: Ignacio Casal Quinteiro Date: 2017-01-08 nmake: add support to build with libjpeg M nmake/config-msvc.mak commit 3f1d00d07b6ecb6072a309947aa877c11705223f Author: Ignacio Casal Quinteiro Date: 2017-01-04 nmake: build xpstopdf tool M nmake/Makefile.vc M nmake/build-rules-msvc.mak M nmake/config-msvc.mak M nmake/create-lists-msvc.mak M nmake/generate-msvc.mak M nmake/info-msvc.mak M nmake/install.mak M tools/Makefile.am A tools/Makefile.sources commit b82e9dbe95e307fb9483bdeaba88fddf695b8ee6 Author: Ignacio Casal Quinteiro Date: 2017-01-04 Declare variables at the top of the block This fixes the build with old version of visual studio M libgxps/gxps-page.c M libgxps/gxps-path.c commit b8d9bf2735861e4577a07c0da4acdab466cf99c1 Author: Philip Withnall Date: 2016-12-20 lib: Ignore a warning about a deprecated libarchive function archive_read_finish() is deprecated in favour of archive_read_free() in libarchive version 3.0; but was not deprecated in version 2.0, which we need to continue to support. See http://manpages.org/archive_read_finish/3 https://bugzilla.gnome.org/show_bug.cgi?id=776323 M libgxps/gxps-archive.c commit 54448854ac2b1415331dbf3ce50a15ecacfe2bca Author: Philip Withnall Date: 2016-12-20 lib: Document explicit fall-through case in glyph parser Make it clear that this is not an accidentally missing break statement. Coverity ID: 1391237 https://bugzilla.gnome.org/show_bug.cgi?id=776323 M libgxps/gxps-glyphs.c commit ae5f6a38b48462396bd8635b4bb4158af1b23f6a Author: Philip Withnall Date: 2016-12-20 lib: Prevent created property being set when content-type is set There was a missing break statement. Coverity ID: 1391236 https://bugzilla.gnome.org/show_bug.cgi?id=776323 M libgxps/gxps-core-properties.c commit 86d1e6622fde800e504f25a1773723d6544d0dca Author: Philip Withnall Date: 2016-12-20 lib: Fix uninitialised variables These could have been used later in the code if the relevant keys were not present in the XPS file to set their values. Coverity IDs: 1391239, 1391240 https://bugzilla.gnome.org/show_bug.cgi?id=776323 M libgxps/gxps-brush.c commit ef4da36beb8369376b3cf0d4ca9c463627ffa640 Author: Jason Crain Date: 2016-12-05 Fix capitalization Gxps_CFLAGS -> GXPS_CFLAGS Fixes building the introspection files because the right CFLAGS were not being passed to g-ir-scanner. Bug #775637 M libgxps/Makefile.am commit 72e8737ac64c2f5dda6c0d8acc3bede1334d7e0d Author: Ernestas Kulik Date: 2016-10-01 debug: include gxps-version.h for GXPS_VAR GXPS_VAR is defined in gxps-version.h, which is not being included, resulting in build failure. https://bugzilla.gnome.org/show_bug.cgi?id=772296 M libgxps/gxps-debug.h commit 95decf1ea68b9f532b5a7d618bfc11f75e89be09 Author: Ernestas Kulik Date: 2016-10-01 path: do not return from print_token() print_token() should not return a value, but does. https://bugzilla.gnome.org/show_bug.cgi?id=772296 M libgxps/gxps-path.c commit 4709da90210839ca8fdd424caa7be897f3be91bb Author: Ignacio Casal Quinteiro Date: 2016-09-09 Add nmake scripts to build with MSVC This is the first version of the script that builds only the main code. In upcoming patches I will add support for the conditional libraries. https://bugzilla.gnome.org/show_bug.cgi?id=771057 M Makefile.am M configure.ac A nmake/Makefile.am A nmake/Makefile.vc A nmake/README.txt A nmake/build-rules-msvc.mak A nmake/config-msvc.mak A nmake/create-lists-msvc.mak A nmake/create-lists.bat A nmake/detectenv-msvc.mak A nmake/generate-msvc.mak A nmake/info-msvc.mak A nmake/install.mak commit 14c3dfd11cb98381547e64ec43193075d8cf4af2 Author: Ignacio Casal Quinteiro Date: 2016-09-09 Ifdef the config.h include https://bugzilla.gnome.org/show_bug.cgi?id=771057 M libgxps/gxps-archive.c M libgxps/gxps-brush.c M libgxps/gxps-color.c M libgxps/gxps-core-properties.c M libgxps/gxps-document-structure.c M libgxps/gxps-document.c M libgxps/gxps-error.c M libgxps/gxps-file.c M libgxps/gxps-fonts.c M libgxps/gxps-glyphs.c M libgxps/gxps-images.c M libgxps/gxps-links.c M libgxps/gxps-matrix.c M libgxps/gxps-page.c M libgxps/gxps-parse-utils.c M libgxps/gxps-path.c M tools/gxps-converter-main.c M tools/gxps-converter.c M tools/gxps-image-converter.c M tools/gxps-image-writer.c M tools/gxps-jpeg-converter.c M tools/gxps-jpeg-writer.c M tools/gxps-pdf-converter.c M tools/gxps-png-converter.c M tools/gxps-png-writer.c M tools/gxps-print-converter.c M tools/gxps-ps-converter.c M tools/gxps-svg-converter.c commit 8874b88b57e784df11a10f47f7262aebda334b44 Author: Ignacio Casal Quinteiro Date: 2016-09-09 images: tiff and png make use or stdints so include the header https://bugzilla.gnome.org/show_bug.cgi?id=771057 M libgxps/gxps-images.c commit fa58bd6a953011b72153a37e2cd470af5375f995 Author: Ignacio Casal Quinteiro Date: 2016-09-09 Fix useless warnings https://bugzilla.gnome.org/show_bug.cgi?id=771057 M libgxps/gxps-glyphs.c M libgxps/gxps-path.c commit fe2951e93325899598160a477ecf038e9c875b76 Author: Ignacio Casal Quinteiro Date: 2016-09-09 archive: use the right types for the parameters of the callbacks This fixes the build on windows. https://bugzilla.gnome.org/show_bug.cgi?id=771057 M libgxps/gxps-archive.c commit 773a2aca75b424080cff1c4ee27d2be7b3232241 Author: Ignacio Casal Quinteiro Date: 2016-09-09 autogen: do not use gnome-autogen https://bugzilla.gnome.org/show_bug.cgi?id=771057 M autogen.sh commit 4983feaf5fd2bcf100a5be71e52a822646997fa1 Author: Ignacio Casal Quinteiro Date: 2016-09-09 build: add Makefile.sources providing the lists of sources This in preparation so we maintain one single list of sources for the automake Makefile and the Nmake one. https://bugzilla.gnome.org/show_bug.cgi?id=771057 M libgxps/Makefile.am A libgxps/Makefile.sources commit ac9d66e790d5e6a1cc8de5220b0acc5cf572e564 Author: Ignacio Casal Quinteiro Date: 2016-09-09 test-gxps: do not use deprecated api See that there is no need to bump the gtk3 version since the api that we are using is >= 3.0 which is the version supported by the library. https://bugzilla.gnome.org/show_bug.cgi?id=771057 M test/test-gxps.c commit 5b55ab12d2b9b9851f77f50c2ce07131c39812ef Author: Ignacio Casal Quinteiro Date: 2016-09-09 Bump glib to version 2.36 and avoid the usage of g_type_init This method is deprecated since that version. https://bugzilla.gnome.org/show_bug.cgi?id=771057 M configure.ac M tools/gxps-converter-main.c commit 5ffc348e0750559058c35eba703e027e4ef8d5fb Author: Ignacio Casal Quinteiro Date: 2016-09-13 Include the version header using the right path. This fixes gnome continuous which uses builddir != srcdir. M libgxps/gxps-archive.h M libgxps/gxps-core-properties.h M libgxps/gxps-document.h M libgxps/gxps-error.h M libgxps/gxps-links.h M libgxps/gxps-page.h commit 92d0f11e36ae6b09307d69b7daa69c121edd924e Author: Ignacio Casal Quinteiro Date: 2016-09-08 images: ifdef _jpeg_color_space_name This method is only used for debug https://bugzilla.gnome.org/show_bug.cgi?id=771057 M libgxps/gxps-images.c commit a2286690acd29df3f59656a176ea8221e68bd748 Author: Ignacio Casal Quinteiro Date: 2016-09-08 Add GXPS_AVAILABLE_IN_ALL macro to handle the visibility of the methods This is in preparation to add support for Visual studio projects https://bugzilla.gnome.org/show_bug.cgi?id=771057 M configure.ac M libgxps/Makefile.am M libgxps/gxps-archive.h M libgxps/gxps-brush.h M libgxps/gxps-color.h M libgxps/gxps-core-properties.h M libgxps/gxps-debug.h M libgxps/gxps-document-structure.h M libgxps/gxps-document.h M libgxps/gxps-error.h M libgxps/gxps-file.h M libgxps/gxps-fonts.h M libgxps/gxps-glyphs.h M libgxps/gxps-images.h M libgxps/gxps-links.h M libgxps/gxps-matrix.h M libgxps/gxps-page-private.h M libgxps/gxps-page.h M libgxps/gxps-parse-utils.h M libgxps/gxps-path.h M libgxps/gxps-version.h.in commit a4ef10a552435da24f3ea87126dad96799922fde Author: Carlos Garcia Campos Date: 2016-06-20 release: 0.2.4 M NEWS M configure.ac