summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/queryloaders.c
Commit message (Collapse)AuthorAgeFilesLines
* queryloaders: add missing include for OSX when using relocationsIgnacio Casal Quinteiro2018-10-041-1/+5
|
* gdk-pixbuf/queryloaders.c: Avoid C99ismChun-wei Fan2018-05-251-4/+6
| | | | | Since we are still in a stable release series, ensure that the code still builds on pre-C99 compilers.
* windows: rework loaders cache relocation supportChristoph Reiter2018-04-241-12/+67
| | | | | | | | | | | | | | | | | | | | | | | | Relocation works by recognizing paths in the loaders cache which start with the built time prefix and extract the relative path from that. This leads to the following problem when updating the cache: In case the package is build on another machine one has to either match the build directory layout or adjust the cache by hand for the resulting cache to stay relocatable. This commonly occurs with msys2 where mostly pre-build packages are used which are built on another machine and the cache gets generated at install time. Another case is updating the cache in a separate deployment environment. This patch takes the package installation directory as a base and writes relative paths into the cache when relocation is enabled. When loading the cache a relative path is made absolute by prepending the package base again. https://bugzilla.gnome.org/show_bug.cgi?id=776081
* queryloaders: standardize the dir paths before checking themIgnacio Casal Quinteiro2018-01-121-5/+19
| | | | | | | On windows we are checking if the PIXBUF_LIBDIR starts with GDK_PIXBUF_PREFIX. The problem is that they might be defined with a different path dir. For this we use a GFile which makes the paths to use the one used by the platform.
* queryloaders: use an intermediate pixbuf_libdir variableIgnacio Casal Quinteiro2018-01-121-13/+20
| | | | | This is to avoid undefining and redefining PIXBUF_LIBDIR on windows
* queryloaders: do not leak moduledir on windowsIgnacio Casal Quinteiro2018-01-121-2/+7
|
* queryloaders: strdup moduledirIgnacio Casal Quinteiro2018-01-121-4/+7
| | | | | Needed for a follow up patch which will fix a memory leak on the windows code path
* queryloaders: rename path to moduledirIgnacio Casal Quinteiro2018-01-121-9/+9
|
* queryloaders: use g_build_filename instead of concatIgnacio Casal Quinteiro2018-01-121-4/+3
|
* queryloaders: Make output more reproducibleJussi Kukkonen2017-08-151-1/+8
| | | | | | | | | | Reproducible builds are good: Sort the output by module name so that same input always leads to same output. This should also make gdk-pixbuf-print-mime-types output and gdk-pixbuf-thumbnailer.thumbnailer reproducible. https://bugzilla.gnome.org/show_bug.cgi?id=783592
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* Make --update-cache work betterMatthias Clasen2013-11-131-1/+1
| | | | | | | | Due to an oversight, combining the --update-cache option with explicitly specified modules was leading to an attempt to open the --update-cache.so module - with predictably disappointing results. Make this work as intended, and as described in the man page.
* queryloaders: g_get_prgname() now returns const gchar *Colin Walters2013-01-131-1/+1
| | | | See https://bugzilla.gnome.org/show_bug.cgi?id=691499
* queryloaders: Ensure we link to libgobjectColin Walters2012-10-241-0/+11
| | | | | | | | | | | | | | | | This call is necessary to ensure we actually link against libgobject; otherwise it may be stripped if -Wl,--as-needed is in use. The reason we need to link against libgobject is because it now has a global constructor. If the dynamically loaded modules happen to dlclose() libgobject, then reopen it again, we're in for trouble. See https://bugzilla.gnome.org/show_bug.cgi?id=686822 Patch-suggested-by: Ryan Lortie <desrt@desrt.ca> Signed-off-by: Colin Walters <walters@verbum.org> https://bugzilla.gnome.org/show_bug.cgi?id=686822
* Use dynamically constructed replacement for GDK_PIXBUF_LIBDIR on WindowsTor Lillqvist2010-12-271-0/+29
| | | | | | | | | | | | | | Instead of the hardcoded configure- and compile-time GDK_PIXBUF_LIBDIR which is not expected to exist at run-time at all, use a pathname constructed from where the program binary is, and assuming the normal conventions. This gets used in the --update-cache case to construct the pathname of the loaders.cache file. Note that there already is similar code in main() to construct the pathname to where the loader DLLs normally are. There is probably some degree of overlap there that could be factored out, but I don't care.
* Don't add a -2.0 suffix to binaries any longerMatthias Clasen2010-06-261-1/+1
| | | | We no longer need to make them parallel installable
* Another s/gtk+/gdk-pixbuf/Christian Persch2010-06-261-1/+1
|
* Fix up help messageMatthias Clasen2010-06-251-1/+1
|
* Make it compileMatthias Clasen2010-06-251-6/+5
|
* Let query utilities update the cache file directlyMatthias Clasen2010-05-171-34/+68
| | | | | This is much more convenient for packagers than having to redirect the output into the cache file, and much less error-prone.
* Move the module cache files below libdirMatthias Clasen2010-05-171-232/+232
| | | | | | | These files contain architecture-dependent paths, and thus placing them into sysconfdir causes unnecessary hassle. Now the immodule cache file is looked for in libdir/gtk-3.0/3.0.0/immodules.cache, and the pixbuf loader cache is looked for in libdir/gtk-3.0/3.0.0/loaders.cache.
* Make 3.0 parallel-installable to 2.xMatthias Clasen2010-05-081-1/+1
| | | | | | | | | | | | | | | In particular, rename - libraries to lib*-3.0.so - pc files to *-3.0.pc - include paths to /usr/include/gtk-3.0/* - module paths to /usr/lib/gtk-3.0/* - rc files names to gtk-3.0/gtkrc - commandline utilities to *-3.0 - adjust documentation Also change the install location for unix-print headers to /usr/include/gtk-3.0/unix-print/gtk.
* Avoid a segfault if license is NULLMatthias Clasen2009-09-041-6/+9
| | | | | | The license field was introduced later on, so some out-of-tree loaders may not set it. And Solaris printf() doesn't take NULL for a string... Bug 594178.
* Bug 164002 - query scripts don't work uninstalled on windowsTor Lillqvist2009-01-131-16/+22
| | | | | | | | | | | | | | | | | | | | | 2009-01-12 Tor Lillqvist <tml@iki.fi> Bug 164002 - query scripts don't work uninstalled on windows * queryloaders.c (main): Use the configure-time PIXBUF_LIBDIR if the exe is located in a .libs folder, i.e. run in the build directory through a libtool wrapper script or wrapper executable, or in the source folder itself. Otherwise continue to infer the runtime prefix from the exe's location. 2009-01-12 Tor Lillqvist <tml@iki.fi> * queryloaders.c (main): Remove the Win9x code path. It had been left by mistake. Win9x code is gone from the rest of GTK+ since 2.12. svn path=/trunk/; revision=22106
* Don't do funny casts to avoid compiler warningsFederico Mena Quintero2008-07-181-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-18 Federico Mena Quintero <federico@novell.com> * demos/gtk-demo/changedisplay.c (find_toplevel_at_pointer): Don't do funny casts to avoid compiler warnings. * demos/gtk-demo/textview.c (easter_egg_callback): Likewise. * gtk/gtkmain.c (rewrite_event_for_grabs, gtk_get_event_widget): Likewise. * gtk/gtkmodules.c (load_module): Likewise. * gtk/gtkselection.c (gtk_selection_convert): Likewise. * gtk/gtktipsquery.c (gtk_tips_query_event): Likewise. * gtk/queryimmodules.c (query_module): Likewise. * tests/testgtk.c (create_gridded_geometry, create_key_lookup) (find_widget_at_pointer): Likewise. Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=20862
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Bug 535453 - gdk_pixbuf_format_get_license returns NULL forMatthias Clasen2008-05-291-2/+2
| | | | | | | | | | | | | any of the loaders * queryloaders.c (write_loader_info): Add the license info after the description. * gdk-pixbuf-io.c (gdk_pixbuf_io_init): Read the license info from the module file. Reported by Andrey Tsyvarev. svn path=/trunk/; revision=20241
* It's perfectly acceptable for a module to only support theDominic Lachowicz2008-02-221-1/+1
| | | | | | | | | | | 2008-02-22 Dominic Lachowicz <domlachowicz@gmail.com> * gdk-pixbuf/queryloaders.c (loader_sanity_check): It's perfectly acceptable for a module to only support the save_to_callback() method if it marks itself as WRITABLE svn path=/trunk/; revision=19632
* CleanupsMatthias Clasen2006-10-081-1/+1
|
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-1/+1
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* 2.7.4Matthias Clasen2005-07-221-1/+1
|
* print out the version and binary name in the header comment. ProblemJonathan Blandford2004-12-221-3/+7
| | | | | | | Wed Dec 22 01:17:44 2004 Jonathan Blandford <jrb@redhat.com> * queryloaders.c (main): print out the version and binary name in the header comment. Problem reported by Seth Nickell.
* gdk-pixbuf-animation.c gdk-pixbuf-io.c io-xbm.c io-xpm.cTor Lillqvist2004-12-051-17/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-05 Tor Lillqvist <tml@iki.fi> * gdk-pixbuf-animation.c * gdk-pixbuf-io.c * io-xbm.c * io-xpm.c * make-inline-pixbuf.c * queryloaders.c: Use gstdio wrappers. Document that file names are in the GLib file name encoding. * gdk-pixbuf-csource.c * queryloaders.c: On Windows, convert command line arguments and environment variable values from locale encoding to UTF-8. * queryloaders.c: On Windows, use wide character API when available. * Makefile.am * gdk-pixbuf-core.h * gdk-pixbuf-io.c * gdk-pixbuf-animation.h * gdk-pixbuf-animation.c: Like in GLib, for DLL ABI stability on Windows, add binary compatibility versions of functions that take file names as arguments. They use the system codepage, not GLib file name encoding (which is UTF-8 on Windows). Use #defines to make newly compiled code use the "real" functions that use the GLib file name encoding scheme.
* *** empty log message ***Matthias Clasen2004-11-151-1/+3
|
* [Win32] Look up installation prefix at run-time, replace prefix inTor Lillqvist2004-03-151-0/+43
| | | | | | | 2004-03-15 Tor Lillqvist <tml@iki.fi> * queryloaders.c (main): [Win32] Look up installation prefix at run-time, replace prefix in PIXBUF_LIBDIR with that. (#106141)
* Merges from stable branch that had been left out. (#136282, J. Ali Harlow)Tor Lillqvist2004-03-151-0/+13
| | | | | | | | | | | | | | | | | | | | | | | 2004-03-15 Tor Lillqvist <tml@iki.fi> Merges from stable branch that had been left out. (#136282, J. Ali Harlow) Changes for run-time lookup of installation location on Win32: * Makefile.am (INCLUDES): Define GTK_PREFIX as $(prefix). * gdk-pixbuf-io.c (get_sysconfdir): New function, look up installation location at runtime and deduce GTK_SYSCONFDIR from it. (get_toplevel): Similar, for the top-level installation directory. (correct_prefix): Replace compile-time prefix with run-time prefix. (get_libdir): Remove, not used any longer. (gdk_pixbuf_io_init): Call correct_prefix() on Win32. * queryloaders.c (query_module): [Win32] Change backslahses into slashes in path.
* Don't use bitwise operators on booleans. (#130923, reported by TelsaMatthias Clasen2004-01-081-1/+1
| | | | | | | Thu Jan 8 22:01:14 2004 Matthias Clasen <maclas@gmx.de> * queryloaders.c (loader_sanity_check): Don't use bitwise operators on booleans. (#130923, reported by Telsa Gwynne, fix by Dave Jones)
* Check that the mask is NULL or a string of the same length consistingMatthias Clasen2003-11-141-2/+21
| | | | | | | | Sat Nov 15 00:26:19 2003 Matthias Clasen <maclas@gmx.de> * queryloaders.c (loader_sanity_check): Check that the mask is NULL or a string of the same length consisting entirely of ' ', '!', 'x', 'z', 'n'.
* New function to write out the information for a single loader, factoredMatthias Clasen2003-11-091-21/+80
| | | | | | | | | | | Sun Nov 9 21:56:20 2003 Matthias Clasen <maclas@gmx.de> * queryloaders.c (write_loader_info): New function to write out the information for a single loader, factored out of query_module(). (loader_sanity_check): New function to perform sanity checks on a loader. (query_module): Use the new functions.
* Use g_strfreev() to free mime_types. (#117219, Steve Chaplin)Matthias Clasen2003-07-111-7/+3
| | | | | | | | | | | | | 2003-07-11 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free mime_types. (#117219, Steve Chaplin) * queryloaders.c (query_module): Handle absolute filenames properly. (#117170, Jens Elkner) * gdk-pixbuf-io.c: Mention that NULL-terminated arrays returned by gdk_pixbuf_format_get_mime_types() and gdk_pixbuf_format_get_extensions() must be freed with g_strfreev().
* Better error message if module_open() fails. (#105349, Tim Mooney)Matthias Clasen2003-02-061-1/+5
| | | | | | | 2003-02-06 Matthias Clasen <maclas@gmx.de> * queryloaders.c (query_module): Better error message if module_open() fails. (#105349, Tim Mooney)
* Use g_printf instead of system printf. (#99327)Matthias Clasen2002-12-151-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-15 Matthias Clasen <maclas@gmx.de> * gtk/gtkcalendar.c: * gtk/gtkfilesel.c: * gtk/gtkfontsel.c: * gtk/gtkhruler.c: * gtk/gtkinputdialog.c: * gtk/gtkprogress.c: * gtk/gtktreemodel.c: * gtk/gtkvruler.c: * gtk/queryimmodules.c: * gtk/theme-bits/decompose-bits.c: * gdk-pixbuf/gdk-pixbuf-csource.c: * gdk-pixbuf/make-inline-pixbuf.c: * gdk-pixbuf/queryloaders.c: * gdk/gdkkeynames.c: * gdk/gdkrgb.c: * gdk/linux-fb/gdkfbmanager.c: * gdk/win32/gdkevents-win32.c: * gdk/win32/gdkmain-win32.c: * gdk/win32/gdkproperty-win32.c: * gdk/x11/gdkmain-x11.c: Use g_printf instead of system printf. (#99327)
* make it legal CManish Singh2002-10-041-1/+2
| | | | | | Thu Oct 3 22:38:12 2002 Manish Singh <yosh@gimp.org> * gdk-pixbuf/queryloaders.c: make it legal C
* make legal Cjacob berkman2002-10-041-1/+2
| | | | | | 2002-10-04 jacob berkman <jacob@ximian.com> * queryloaders.c (query_module): make legal C
* Support for separately installed loaders. (#77486)Matthias Clasen2002-10-031-0/+155
* Makefile.am gdk-pixbuf-animation.c gdk-pixbuf-data.c gdk-pixbuf-io.c gdk-pixbuf-io.h gdk-pixbuf-loader.c gdk-pixbuf-loader.h gdk-pixbuf-private.h gdk-pixbuf.h gdk-pixdata.c io-ani-animation.h io-ani.c io-bmp.c io-gif-animation.c io-gif-animation.h io-gif.c io-ico.c io-jpeg.c io-png.c io-pnm.c io-ras.c io-tga.c io-tiff.c io-wbmp.c io-xbm.c io-xpm.c pixbufloader_ani.def pixbufloader_bmp.def pixbufloader_gif.def pixbufloader_ico.def pixbufloader_jpeg.def pixbufloader_png.def pixbufloader_pnm.def pixbufloader_ras.def pixbufloader_tga.def pixbufloader_tiff.def pixbufloader_wbmp.def pixbufloader_xbm.def pixbufloader_xpm.def test-gdk-pixbuf.c gdk-pixbuf-animation.h queryloaders.c: Support for separately installed loaders. (#77486)