| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Drop the gtk-doc SECTION markers, and move documentation to classes or
separate documents.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, it's not possible to get the dimensions of the original
image from a scaled GdkPixbuf. This is problematic for thumbnailers
because they want to embed the original dimensions into the resulting
thumbnail file. The only way to get this information is to either
decode the full-resolution image and then downscale it, even when the
decoder supports downscaling on-the-fly; or to re-implement large
chunks of code to avoid decoding the full-resolution image and
retain the original dimensions.
Exposing the original dimensions as options simplifies the thumbnailer
without affecting performance.
https://bugzilla.gnome.org/show_bug.cgi?id=778517
|
|
|
|
|
|
| |
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772216
|
|
|
|
|
|
|
| |
The assertion needs to be the target of an implication (count > 0), as
it could legitimately be false if (count == 0).
https://bugzilla.gnome.org/show_bug.cgi?id=776990
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The code just above checks whether image_module is NULL, and it doesn’t
look like it can change in the meantime, so we should also check before
dereferencing it for load_increment.
Make this an assertion; although we’re not entirely sure how this code
was originally supposed to work, we’re still in development, so we can
investigate any assertion failures with impunity.
Coverity CID: 1388529
https://bugzilla.gnome.org/show_bug.cgi?id=776990
|
| |
|
|
|
|
|
|
| |
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=750440
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It is not safe to fill the pixbuf returned from area-prepared with a
background colour as a number of loaders (notably XPM and SVG) will
only have information about the size and characteristics of the image
after it's been fully loaded. Filling the background colour would then
overwrite the image we just loaded.
Given that this won't work properly with anything but 100% transparent
or 100% solid pixels, remove that advice from the docs. Instead,
applications should rely on their toolkits to composite over a
background colour.
https://bugzilla.gnome.org/show_bug.cgi?id=589334
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=730161
|
|
|
|
|
| |
Switch to markdown for our inline markup needs, and
turn off sgml mode for the docs.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
We are using a loader to implement some of the APIs that
are taking a filename, such as gdk_pixbuf_new_from_file_at_scale.
But the loader does not have the filename, so it can't use it
when determining the image type. This makes a difference for
types such as xbm, which have no good magic in the mime database.
Fix this by introducing a private API that lets us pass the
filename on to the loader.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit c62676a284 had an unintended side-effect for loaders
which omit to call size_func, the new size set by
gdk_pixbuf_loader_set_size would overwrite the original
pixbuf size, and in effect force a scale factor of 1.0.
The xpm loader is one of the few which omit the size_func
call, thus the regression that calling
gdk_pixbuf_new_from_file_at_scale does not scale xpms anymore.
The fix is to use separate variables to pass the dimensions
when calling the size_func on behalf of the loader.
https://bugzilla.gnome.org/show_bug.cgi?id=686514
|
|
|
|
|
|
|
| |
GdkPixbufLoader was using 1k as a buffer size for sniffing file types,
and the gdk_pixbuf_new_from_file() family of functions was using 4k,
for no good reason. Unify this so we use the same buffer size
everywhere.
|
|
|
|
|
|
|
|
| |
A GBytes variant to gdk_pixbuf_loader_write(), which allows language
bindings to actually be able to use the Gio GInputStream.read_bytes()
method with GdkPixbufLoader.
https://bugzilla.gnome.org/show_bug.cgi?id=696917
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Pixbuf size can be innacurate for some animations with frames of
different sizes.
Fixes: NB#613595
|
|
|
|
| |
Reported by Evan Nemerson in bug 659888.
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
...by mentioning that you still need to unref. Bug 604284.
|
|
|
|
| |
This is copying similar changes from glib.
|
| |
|
|
|
|
| |
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=380196
|
|
|
|
|
|
|
|
| |
This commit was created using a script that searched for all docstrings
containing a parameter and the string 'or %NULL'.
Gdk backends and demos excluded as they are not part of a public API
https://bugzilla.gnome.org/show_bug.cgi?id=610474
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-11-30 Christian Dywan <christian@imendio.com>
Bug 561186 – GdkPixbuf API type checking needs cleanup
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write),
(gdk_pixbuf_loader_get_pixbuf), (gdk_pixbuf_loader_get_animation),
(gdk_pixbuf_loader_close), (gdk_pixbuf_loader_get_format):
* gdk-pixbuf-scale.c (gdk_pixbuf_scale), (gdk_pixbuf_composite),
(gdk_pixbuf_composite_color), (gdk_pixbuf_scale_simple),
(gdk_pixbuf_composite_color_simple):
* gdk-pixbuf-simple-anim.c (gdk_pixbuf_simple_anim_add_frame):
* gdk-pixbuf-util.c (gdk_pixbuf_add_alpha),
(gdk_pixbuf_apply_embedded_orientation):
Improve type checking in pixbuf API
svn path=/trunk/; revision=21832
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-09-06 Matthias Clasen <mclasen@redhat.com>
Bug 517233 – Calling gdk_pixbuf_loader_close causes "GError set over
the top of a previous GError" warning
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Don't overwrite
errors. Reported by Andrey Tsyvarev
svn path=/trunk/; revision=21309
|
|
|
|
| |
svn path=/trunk/; revision=21295
|
|
|
|
|
|
|
|
|
| |
2008-08-11 Sven Neumann <sven@gimp.org>
* gdk-pixbuf/gdk-pixbuf-loader.c: use canonical signal names.
svn path=/trunk/; revision=21072
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
2008-01-14 Michael Natterer <mitch@imendio.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_prepare): cast the return
value of _gdk_pixbuf_scaled_anim_new() to fix incompatible pointer
warning.
svn path=/trunk/; revision=19364
|
|
|
|
| |
svn path=/trunk/; revision=18384
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-07-03 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Be
more careful when calling g_propagate_error(). (#453365,
Michael Chudobiak)
svn path=/trunk/; revision=18357
|
|
|
|
| |
svn path=/trunk/; revision=17430
|
|
|
|
|
|
|
|
|
|
|
| |
2007-02-06 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Protect
against stop_load begin broken. (#403255, Lucas Mazzardo Veloso)
svn path=/trunk/; revision=17267
|
|
|
|
| |
svn path=/trunk/; revision=17165
|
|
|
|
|
|
|
|
| |
2006-12-21 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Emit
the closed signal when closing the loader, pointed out
by David Necas.
|
|
|
|
|
|
|
| |
2006-12-19 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Don't
spew a warning if the printer is already closed.
|
|
|
|
|
|
|
| |
2006-12-09 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Behave as
documented and close the loader when returning FALSE.
|
|
|
|
|
|
|
|
|
|
|
| |
2006-07-16 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_load_module)
(gdk_pixbuf_loader_write, gdk_pixbuf_loader_close)
(gdk_pixbuf_loader_ensure_error): Put the code to protect
against broken loaders that forget to set error in an
auxiliary function and call it in more places. (#346428,
Catmur)
|
| |
|
| |
|
|
|
|
|
|
|
| |
2006-03-24 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Remove a
pointless check, pointed out by Kjartan Maraas.
|
|
|
|
|
|
|
|
| |
2006-03-22 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c: Add some documentation about
supported image formats, and how to find out about them.
(#335536, Murray Cumming)
|
|
|
|
|
|
|
|
| |
2005-10-12 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Only call
gdk_pixbuf_loader_eat_header_write() when count > 0. (#318589,
Bogdan Nicula)
|
|
|
|
|
|
|
|
|
|
| |
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.
|