| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Drop the gtk-doc SECTION markers, and move documentation to classes or
separate documents.
|
|
|
|
| |
This will let us avoid NULL checks in the individual modules.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=767267
|
|
|
|
|
|
| |
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772216
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=776457
|
|
|
|
|
| |
Commit 0af5d60 changed the name of the internal "try_mmap" helper, and
didn't change some of the callers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=544884
|
| |
|
|
|
|
|
| |
Turns out gdk_pixbuf_animation_new_from_file() was also
using a different size.
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
... 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.
|
|
|
|
| |
No code changes, just reordering. Necessary for next set of changes.
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Patch by Rafał Mużyło,
https://bugzilla.gnome.org/show_bug.cgi?id=676430
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=677477
|
| |
|
|
|
|
|
| |
Animation frames can be a different size managing this should be done
through GdkPixbufAnimation.
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
This is copying similar changes from glib.
|
|
|
|
| |
Grudgingly, in the name of api stability.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|