summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-animation.c
Commit message (Collapse)AuthorAgeFilesLines
* Never pass NULL for the size_func and updated_func of module->begin_load()Federico Mena Quintero2020-01-071-1/+18
| | | | This will let us avoid NULL checks in the individual modules.
* Disable deprecation warnings for GTimeValEmmanuele Bassi2019-07-291-0/+1
| | | | | | | | | | | GLib 2.62 deprecated GTimeVal and GTime because they are not Y2038-safe. Since we expose these types in our public API, we need to disable warnings to avoid projects breaking horribly just by importing gdk-pixbuf.h. Sadly, GdkPixbufAnimation public types not only require GTimeVal in virtual function signatures for loaders, but they also do not have any room left in the class vtable for adding int64 variants.
* introspection: Add missing filename type annotationsChristoph Reiter2018-01-081-2/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=767267
* Use Unicode in translatable stringsPiotr Drąg2017-12-051-4/+4
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772216
* io: Fix typo in documentation ( "the the" -> "the" )vrishab2016-12-281-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=776457
* io: Fix build after pixdata IO changesBastien Nocera2016-12-191-1/+1
| | | | | Commit 0af5d60 changed the name of the internal "try_mmap" helper, and didn't change some of the callers.
* windows: Remove old codepage ABI compat codeChristoph Reiter2016-11-071-19/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (and as a side effect make the gi bindings API compatible with other platforms) The compat code was added in https://git.gnome.org/browse/gdk-pixbuf/commit/?id=141506eb46927eb10b74bc24727488bdbde1c7d4 to allow switching to utf-8 paths while keeping binary compatibility and to make new programs link against the "_utf8" variants. This results in two problems for gi bindings: (1) g-ir-scanner can't find the annotations due to the renames and thus gdk_pixbuf_savev() can't be used in bindings (the other functions happen to work with default annotations) (2) g-ir-scanner will write the renamed functions in the gir/typelib with the "_utf8" suffix, making the resulting bindings API incompatible with other platforms. Some months ago https://git.gnome.org/browse/gdk-pixbuf/commit/?id=6855a2d806b2305938abc04b0cb4fa383f8ccd3b got rid of symbol files, breaking ABI and old binaries. This patch removes the, now unused, codepage code and removes the renames so that new code links against the real functions again. To not break recent binaries add new functions with the _utf8 suffix which just call the main functions. Annotations are copied as well to not break bindings API. A similar change in glib was commited some years ago https://git.gnome.org/browse/glib/commit/?id=8c42a663f8182f8281c083390aa761e8e9badc63 https://bugzilla.gnome.org/show_bug.cgi?id=773760
* animation: drop an erroneous unrefMatthias Clasen2015-09-191-2/+0
| | | | | | | The task thread function does not own a reference to the task and thus should not unref it. https://bugzilla.gnome.org/show_bug.cgi?id=755269
* Formatting fixesMatthias Clasen2015-08-251-108/+94
|
* Port to GTaskMatthias Clasen2015-08-251-16/+18
|
* lib: Add note about min timeout in GIF being 20 msecsBastien Nocera2014-10-221-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=544884
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* More sniff buffer size unificationMatthias Clasen2013-12-171-1/+1
| | | | | Turns out gdk_pixbuf_animation_new_from_file() was also using a different size.
* animation: Allow prepare_func call in stop_loadBenjamin Otte2013-03-121-5/+8
| | | | | | | Move the assertion that prepare_func was called after the stop_load call. Makes the XPM loader not die. https://bugzilla.gnome.org/show_bug.cgi?id=695228
* animation: Improve error handlingBenjamin Otte2013-02-191-15/+17
| | | | | | | | The previous code couldn't guarantee that an animation existed when there wasn't an error not could it guarantee that no animation was returned when there indeed was an error. https://bugzilla.gnome.org/show_bug.cgi?id=694148
* animation: gdk_pixbuf_animation_new_from_file() can't load PNG filesBenjamin Otte2013-02-191-1/+4
| | | | | | | | The code assumed that the prepare callback was called in the begin_load() opeartion, which is not true. So we change the code to only require that the prepare callback be called at all. https://bugzilla.gnome.org/show_bug.cgi?id=694148
* animation: Fix copy/paste SEGVBenjamin Otte2013-02-011-14/+17
| | | | | The wrong variable was set, so we were returning invalid memory. Oops. Also fixes up the error paths to make it more obvious what happens.
* API: Add gdk_pixbuf_animation_new_from_resource()Benjamin Otte2013-01-301-0/+41
|
* xxx: from_stream_asyncBenjamin Otte2013-01-301-1/+1
|
* API: Add gdk_pixbuf_animation_new_from_stream_async()Benjamin Otte2013-01-301-0/+82
|
* API: Add gdk_pixbuf_animation_new_from_stream()Benjamin Otte2013-01-301-0/+85
|
* animation: Try using begin_load to load animationsBenjamin Otte2013-01-301-0/+44
| | | | | | | | ... instead of just falling back to a regular pixbuf when the load_animation vfunc isn't implemented. The code is mostly copied from the ANI loader, which did exactly this in load_animation.
* animation: reorder if blockBenjamin Otte2013-01-301-24/+24
| | | | No code changes, just reordering. Necessary for next set of changes.
* Remove locking around thread-unsafe modulesMatthias Clasen2013-01-101-7/+2
| | | | | | | It did not work, and was causing deadlocks. With pango becoming thread-safe this cycle, the last relevant non-threadsafe loader, svg, will be fixed. https://bugzilla.gnome.org/show_bug.cgi?id=473862
* Documentation fixesMatthias Clasen2012-09-031-2/+2
| | | | | Patch by Rafał Mużyło, https://bugzilla.gnome.org/show_bug.cgi?id=676430
* Add missing allow-none anotations in animation APIJose Rostagno2012-07-301-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=677477
* Removed entities from the code markup as they are not being expandedXabier Rodriguez Calvar2012-07-301-2/+2
|
* Changed doc of GdkPixbufAnimation about size management.Xabier Rodriguez Calvar2012-07-301-8/+9
| | | | | Animation frames can be a different size managing this should be done through GdkPixbufAnimation.
* Documentation: Migrate from old tmpl files.Jon Nordby2011-03-061-0/+16
| | | | | | | This puts all the docs that existed in tmpl files when gdk-pixbuf was moved out of gtk into inline comments. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=635643
* Add introspection annotationsJohan Dahlin2010-09-181-5/+5
|
* Replace the aliasing hacks by -Bsymbolic-functionsMatthias Clasen2010-07-091-4/+0
| | | | This is copying similar changes from glib.
* Bring back deprecated apiMatthias Clasen2010-06-271-0/+30
| | | | Grudgingly, in the name of api stability.
* Make it compileMatthias Clasen2010-06-251-2/+0
|
* Remove deprecated code: GdkPixbufAnimationJavier Jardón2010-05-031-30/+0
|
* [docs] Add missing "Deprecated: 2.x" to the api doc commentsJavier Jardón2010-01-111-2/+2
|
* Bug 546549 : Better Type Checking reviewed by: mitchSven Herzberg2008-08-081-8/+12
| | | | | | | | | | | | | 2008-08-08 Sven Herzberg <sven@imendio.com> Bug 546549 : Better Type Checking reviewed by: mitch * gdk-pixbuf-animation.c: check if a vfunc is implemented before trying to call into it svn path=/trunk/; revision=21047
* 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
* Use G_DEFINE_TYPE (#469341, Björn Lindqvist)Matthias Clasen2007-11-211-131/+34
| | | | | | | | | | | 2007-11-20 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c: Use G_DEFINE_TYPE (#469341, Björn Lindqvist) svn path=/trunk/; revision=19016
* Always save errno to a temporary before making other calls. (#335179,Matthias Clasen2006-03-201-2/+3
| | | | | | | | | | | 2006-03-20 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c: * gdk-pixbuf-io.c: * io-xpm.c: * io-xbm.c: * io-gif.c: Always save errno to a temporary before making other calls. (#335179, Morten Welinder)
* Use a 1k buffer for sniffing image formats, instead of 128 or 256 bytes.Matthias Clasen2005-10-031-1/+1
| | | | | | | | | | 2005-10-03 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): * gdk-pixbuf-loader.c: Use a 1k buffer for sniffing image formats, instead of 128 or 256 bytes. (#317225, Sebastien Bacher, Dom Lachowicz)
* Intern type names before registering the type to avoid unnecessary copies.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * io-ani-animation.c (gdk_pixbuf_ani_anim_iter_get_type) (gdk_pixbuf_ani_anim_get_type): * io-gif-animation.c (gdk_pixbuf_gif_anim_get_type) (gdk_pixbuf_gif_anim_iter_get_type): * gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_type): * gdk-pixbuf.c (gdk_pixbuf_get_type): * gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_type): Intern type names before registering the type to avoid unnecessary copies.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-141-1/+3
| | | | | | | | | | | | | | | | | 2005-03-14 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdk-pixbuf-alias.h: * gdk-pixbuf.symbols: Group symbols by header and source file. * /makegdkpixbufalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegdkpixbufalias.pl -def * Makefile.am (gdk-pixbuf-aliasdef.c): Add a rule to generate this file. * *.c: Include gdk-pixbuf-alias.h after the other headers, include gdk-pixbuf-aliasdef.c at the bottom.
* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file) AvoidMatthias Clasen2004-12-271-3/+3
| | | | | | | 2004-12-27 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file) Avoid deadlock. Pointed out by Callum McKenzie.
* gdk-pixbuf-animation.c gdk-pixbuf-io.c io-xbm.c io-xpm.cTor Lillqvist2004-12-051-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix a typo in the docs. (#159955, Masao Mutoh)Matthias Clasen2004-11-301-3/+3
| | | | | | | 2004-11-30 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c (gdk_pixbuf_animation_iter_get_pixbuf): Fix a typo in the docs. (#159955, Masao Mutoh)
* Be extra careful when locking and handle the case that the module mayMatthias Clasen2004-11-161-2/+4
| | | | | | | | | | | | 2004-11-15 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c: * gdk-pixbuf-loader.c: * gdk-pixbuf-io.c: Be extra careful when locking and handle the case that the module may initialize the thread system. * gdk-pixbuf-io.[hc] (_gdk_pixbuf_lock): Return whether the lock was actually taken.
* Changes to make gdk-pixbuf threadsafe (#157310, #157306, Colin Walters):Matthias Clasen2004-11-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-12 Matthias Clasen <mclasen@redhat.com> Changes to make gdk-pixbuf threadsafe (#157310, #157306, Colin Walters): * gdk-pixbuf-io.h (enum GdkPixbufFormatFlags): Add GDK_PIXBUF_FORMAT_THREADSAFE to indicate that an image loader is threadsafe. * gdk-pixbuf-io.c (get_file_formats, _gdk_pixbuf_load_module): Use a lock to make initialization of global data structures threadsafe. * gdk-pixbuf-private.h: * gdk-pixbuf-io.c (_gdk_pixbuf_lock, _gdk_pixbuf_unlock): Auxiliary functions which use another lock to protect threadunsafe image loaders. * gdk-pixbuf-io.c (gdk_pixbuf_real_save): (save_to_callback_with_tmp_file): (gdk_pixbuf_real_save_to_callback): (gdk_pixbuf_new_from_xpm_data): (_gdk_pixbuf_generic_image_load): * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): * gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module): (gdk_pixbuf_loader_close): (gdk_pixbuf_loader_finalize): Use _gdk_pixbuf_lock() and _gdk_pixbuf_unlock(). * io-ani.c, io-bmp.c, io-gif.c, io-ico.c: * io-jpeg.c, io-pcx.c, io-png.c, io-pnm.c: * io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c: * io-xpm.c: Mark as threadsafe. * io-tiff.c: Remove pointless locking, mark as threadunsafe.
* Use g_filename_display_name() instead of g_filename_to_utf8() when puttingMatthias Clasen2004-11-111-19/+15
| | | | | | | | 2004-11-10 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c: * gdk-pixbuf-io.c: Use g_filename_display_name() instead of g_filename_to_utf8() when putting filenames in error messages.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Tue Aug 10 23:53:59 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gdk/Makefile.am: Add rules to generate gdk_pixbuf.def and gdk-pixbuf-alias.h from gdk-pixbuf.symbols, and make make check check the abi with abicheck.sh. * gdk/gdk-pixbuf.symbols: New file. Definition of the gdk-pixbuf ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gdk/abicheck.sh: New file. Script to check the actually symbols exported from libgdk_pibuf.2.0.so against the symbols found in gdk-pixbuf.symbols. * gdk/makegdkpixbufalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * *.c: Include gdk-pixbuf-alias.h
* Convert filenames to UTF-8 when embedding them in error messages.Matthias Clasen2004-06-051-4/+18
| | | | | | | | Sat Jun 5 00:59:12 2004 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-animation.c: * gdk-pixbuf-io.c: Convert filenames to UTF-8 when embedding them in error messages. (#143654, Sven Neumann)