summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-tiff.c
Commit message (Collapse)AuthorAgeFilesLines
* io-tiff.c: Declare Variables at the Top of BlockChun-wei Fan2014-11-111-1/+2
| | | | | | | ...so that builds on C89 compilers such as pre-2013 Visual Studio can be fixed, taken from diff from John E. https://bugzilla.gnome.org/show_bug.cgi?id=739779
* Add TIFF image density metadata supportRobert Ancell2014-10-301-0/+70
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=498721
* loaders: Simplify and shorten the loader namesBastien Nocera2014-10-241-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641106
* Allow saving 1-bit mono TIFFs used in faxesMukund Sivaraman2014-10-231-40/+196
| | | | | | | | | | | | | | | | | While working on a GTK+ 3 port of Hildon, I'm upstreaming some patches from Maemo's repositories. This one is repurposed from: http://maemo.gitorious.org/hildon/gtk/commit/005de8d5 From: Christian Dywan <christian@lanedo.com> Date: Wed, 20 Jan 2010 11:22:29 +0100 Subject: [PATCH] Fixes: NB#116221 - Sharing TIF image with Size Option Large makes the image much larger than the original one when shared to OVI or Flickr. This patch combined other bits which were removed, and the code was modified a little. https://bugzilla.gnome.org/show_bug.cgi?id=578876
* tiff: Flag multi-page TIFF filesMichael Chudobiak2014-10-211-0/+5
| | | | | | | | | Add the "multipage" option to TIFF files with multiple pages. This will allow applications that use gdk-pixbuf to display images to detect them, and offer to open them in more capable readers (such as GIMP, or Evince). https://bugzilla.gnome.org/show_bug.cgi?id=335959
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* Remove an outdated commentMatthias Clasen2013-12-181-1/+0
| | | | | We're now marking the tiff loader as threadsafe, so remove the comment that says it isn't.
* Make some string data constMatthias Clasen2013-12-181-6/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=144042
* Make the tiff loader threadsafeMatthias Clasen2012-09-141-139/+59
| | | | | | | | | | The reason why the tiff loader was marked as not threadsafe is that libtiff only has a global error handler; while we still have to set an error handler to keep libtiff from spamming stderr, we just give up on collecting any error messages from it, and we also give up on the illusion that we can push/pop error handlers. That doesn't work without a stack, so we just keep forcing our do-nothing error handler on without ever taking it back.
* Replace the aliasing hacks by -Bsymbolic-functionsMatthias Clasen2010-07-091-4/+0
| | | | This is copying similar changes from glib.
* Include alias header when using built-in loadersColin Walters2010-07-061-0/+4
| | | | | | | | If we're building a loader like png into gdk-pixbuf, we need to include the alias header. Otherwise we get internal PLT entries, which makes make check fail. https://bugzilla.gnome.org/show_bug.cgi?id=623314
* Make it compileMatthias Clasen2010-06-251-1/+0
|
* Don't use string concatentation in translated stringsMatthias Clasen2010-01-021-2/+2
| | | | | gettext can't handle it, and there is no real need to use G_GSIZE_FORMAT here anyway.
* Add icc-profile option to gdk-pixbuf for the TIFF image formatRichard Hughes2009-12-211-19/+40
|
* Implement "compression" option in the TIFF pixbuf loaderChristian Dywan2009-11-301-0/+33
| | | | | | | | This enables applications to read out the compression of a TIFF image and also makes it possible to apply the same or a different compression when saving. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=584700
* Exclude CR2 files in the tiff loader.Matthias Clasen2008-08-141-0/+1
| | | | svn path=/trunk/; revision=21115
* 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_set_error_literal where appropriate. Bug #538640.Christian Persch2008-06-191-32/+32
| | | | svn path=/trunk/; revision=20463
* updated to allow simple switch between gdiplus- and former fileformatHans Breuer2008-06-131-1/+1
| | | | | | | | | | 2008-06-13 Hans Breuer <hans@breuer.org> * makefile.msc : updated to allow simple switch between gdiplus- and former fileformat backends * io-tiff.c : use g_snprintf svn path=/trunk/; revision=20369
* Use explicit G_MODULE_EXPORT decoration when building the loader inTor Lillqvist2008-05-271-6/+4
| | | | | | | | | | | | | 2008-05-27 Tor Lillqvist <tml@novell.com> * io-*.c: Use explicit G_MODULE_EXPORT decoration when building the loader in question as a module. * gdk-pixbuf-io.c: Enable included build of the icns and jasper loaders. svn path=/trunk/; revision=20192
* Added a comment to explain the signal used to stop parsing early.Michael J. Chudobiak2007-07-061-0/+5
| | | | | | | | | | 2007-07-06 Michael J. Chudobiak <mjc@cvs.gnome.org> * io-tiff.c: (tiff_image_parse): Added a comment to explain the signal used to stop parsing early. svn path=/trunk/; revision=18385
* Try again to make gdk_pixbuf_get_file_info work for tiff imagesMatthias Clasen2007-07-051-6/+1
| | | | svn path=/trunk/; revision=18384
* Always set an error when returning NULL. (453365, Michael Chudobiak)Matthias Clasen2007-07-031-1/+6
| | | | | | | | | | | 2007-07-03 Matthias Clasen <mclasen@redhat.com> * io-tiff.c (tiff_image_parse): Always set an error when returning NULL. (453365, Michael Chudobiak) svn path=/trunk/; revision=18365
* Bump libtiff requirement to 3.6.0, by requiring presence ofMichael J. Chudobiak2007-05-181-95/+60
| | | | | | | | | | | | | | | | | | | | | | | | 2007-05-18 Michael J. Chudobiak <mjc@cvs.gnome.org> * INSTALL.in: * README.in: * configure.in: Bump libtiff requirement to 3.6.0, by requiring presence of TIFFReadRGBAImageOriented. * gdk-pixbuf-scaled-anim.c: (get_scaled_pixbuf): Preserve pixbuf options when generating a new scaled pixbuf. * io-jpeg.c: (get_orientation), (gdk_pixbuf__jpeg_image_load), (gdk_pixbuf__jpeg_image_load_increment): Read the exif orientation tag and associate it with the "orientation" pixbuf option. Renders libexif unnecessary in some applications. * io-tiff.c: (tiff_image_parse): Read the tiff orientation tag, compensate for the partial rotations performed by libtiff, and generate an "orientation" option for the pixbuf. svn path=/trunk/; revision=17863
* Enable having some gdk-pixbuf loaders built-in even if loading the othersTor Lillqvist2006-10-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-10-11 Tor Lillqvist <tml@novell.com> * configure.in: Enable having some gdk-pixbuf loaders built-in even if loading the others dynamically. Define Automake conditional INCLUDE_FOO for each loader as TRUE if that loader is built-in. See also gdk-pixbuf/ChangeLog. 2006-10-11 Tor Lillqvist <tml@novell.com> Enable having some loaders built-in even if loading the others dynamically. Have loaders in the same order as in configure.in in all places where they are handled/listed. * Makefile.am: Define the STATIC_FOO_LIB and FOO_LIB macros conditionally depending on whether said loader is built-in or not. Use the names libstatic-pixbufloader-foo.la instead of libpixbufloader-static-foo.la for the built-in ones so that the "echo libpixbufloader-*.la" won't match them. * gdk-pixbuf-io.c: Reorganize code as to plumb the built-in loaders also if USE_GMODULE. Don't warn about a missing gdk-pixbuf.loaders file if we have at least one included loader. * gdk-pixbuf-private.h * io-*.c: Don't define a generic MODULE_ENTRY, as we can't use it in the loaders anyway. Each loader needs to check if INCLUDE_foo is defined.
* CleanupsMatthias Clasen2006-10-081-5/+1
|
* Update documentation now that tiff supports saving.Anders Carlsson2006-02-281-12/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-28 Anders Carlsson <andersca@imendio.com> * gdk-pixbuf-io.c: Update documentation now that tiff supports saving. * io-tiff.c: (tiff_load_read): (tiff_load_write): (tiff_load_seek): (tiff_load_close): (tiff_load_size): (tiff_load_map_file): (tiff_load_unmap_file): (gdk_pixbuf__tiff_image_stop_load): Rename callback functions that are used during loading. (tiff_save_read): (tiff_save_write): (tiff_save_seek): (tiff_save_close): (tiff_save_size): (create_save_context): (free_save_context): New callback functions which operate on a memory buffer. (gdk_pixbuf__tiff_image_save_to_callback): Implement saving of pixbufs to tiffs. (save_to_file_cb): (gdk_pixbuf__tiff_image_save): New function that saves a pixbuf to a FILE handle. Uses save_to_callback. (fill_vtable): Add new functions. (fill_info): Change flags since this module supports writing now.
* Always check for NULL when using callbacks. (#330563, Benjamin Otte)Matthias Clasen2006-02-101-2/+2
| | | | | | | | | | | | 2006-02-10 Matthias Clasen <mclasen@redhat.com> * io-jpeg.c: * io-png.c: * io-pnm.c: * io-tiff.c: * io-xbm.c: * io-xpm.c: Always check for NULL when using callbacks. (#330563, Benjamin Otte)
* Pass in the max number of bytes to read. (pnm_read_ascii_scanline): AndMatthias Clasen2005-02-071-1/+1
| | | | | | | | | | 2005-02-07 Matthias Clasen <mclasen@redhat.com> * io-pnm.c (pnm_read_next_value): Pass in the max number of bytes to read. (pnm_read_ascii_scanline): And use it here to enable parsing of pbm images without whitespace between the pixels. (#165803, Samuel Hym)
* Changes to make gdk-pixbuf threadsafe (#157310, #157306, Colin Walters):Matthias Clasen2004-11-121-17/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* function doesn't return a value, so don't use g_return_val_if_fail()Manish Singh2004-07-091-0/+2
| | | | | | | | | | | | | Fri Jul 9 15:38:06 2004 Manish Singh <yosh@gimp.org> * gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled): function doesn't return a value, so don't use g_return_val_if_fail() * gdk-pixbuf-scale.c (gdk_pixbuf_rotate_simple): initialize dest in the can't happen case, to quiet gcc. * io-tiff.c (tifflibversion): enclose in #if TIFFLIB_VERSION >= 20031226.
* New functions to disable/enable individual loaders and to obtain licenseMatthias Clasen2004-07-081-0/+1
| | | | | | | | | | | | | | | | | | | | | Wed Jul 7 23:53:58 2004 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-io.h: * gdk-pixbuf-io.c (gdk_pixbuf_format_is_disabled): * gdk-pixbuf-io.c (gdk_pixbuf_format_set_disabled): * gdk-pixbuf-io.c (gdk_pixbuf_format_get_license): New functions to disable/enable individual loaders and to obtain license information about loaders. * gdk-pixbuf-io.h (GdkPixbufFormat): Add disabled and license fields. * gdk-pixbuf-io.c (_gdk_pixbuf_get_module): * gdk-pixbuf-io.c (_gdk_pixbuf_get_named_module): Skip disabled loaders. * io-*.c: Add license information in the fill_info functions.
* Make the tiff loader work with both libtiff 3.5.7 and libtiff 3.6.1.Matthias Clasen2004-06-161-66/+87
| | | | | | | 2004-06-16 Matthias Clasen <mclasen@redhat.com> * io-tiff.c: Make the tiff loader work with both libtiff 3.5.7 and libtiff 3.6.1. (#135541, Marco Ghirlanda)
* include <io.h> for lseek() use HAVE_UNISTD_HHans Breuer2004-02-281-0/+2
| | | | | | | 2004-02-28 Hans Breuer <hans@breuer.org> * io-tiff.c : include <io.h> for lseek() * io-xbm.c : use HAVE_UNISTD_H
* Make it possible to call gdk_pixbuf_loader_set_size (loader, 0, 0) byMatthias Clasen2004-01-071-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Jan 7 01:17:36 2004 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-loader.c (gdk_pixbuf_loader_size_func): * gdk-pixbuf-loader.c (gdk_pixbuf_loader_set_size): * gdk-pixbuf-loader.c (gdk_pixbuf_loader_init): Make it possible to call gdk_pixbuf_loader_set_size (loader, 0, 0) by changing the initial values of priv->width/height to -1. * io-tiff.c (tiff_image_parse): * io-ras.c (RAS2State): * io-pnm.c (gdk_pixbuf__pnm_image_load_increment): * io-pcx.c (gdk_pixbuf__pcx_load_increment): * io-jpeg.c (gdk_pixbuf__jpeg_image_load_increment): * io-png.c (png_info_callback): * io-ico.c (DecodeHeader): * io-bmp.c (DecodeHeader): Call size_func once the size is known, even if the module can't make use of the scaling information. If size_func returns 0, don't allocate a pixbuf and return, if necessary with an error. * gdk-pixbuf.h: * gdk-pixbuf-io.c (gdk_pixbuf_get_file_info): A new function to determine the type and size of an image file without loading it completely. (#53725)
* use G_BIG_ENDIAN instead of WORDS_BIGENDIAN which isn't set byBastien Nocera2002-12-041-1/+1
| | | | | | | 2002-12-04 Bastien Nocera <hadess@hadess.net> * io-tiff.c: (tiff_image_parse): use G_BIG_ENDIAN instead of WORDS_BIGENDIAN which isn't set by configure.in
* Support for separately installed loaders. (#77486)Matthias Clasen2002-10-031-6/+32
| | | | | | | | | | | | | | | | | * 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)
* Load-at-size functionality for gdk-pixbuf.Matthias Clasen2002-07-061-1/+2
|
* Handle global_error == NULL better. (tiff_image_parse): Don't trustMatthias Clasen2002-07-061-7/+23
| | | | | | | | | * io-tiff.c (tiff_set_error): Handle global_error == NULL better. (tiff_image_parse): Don't trust TIFFRGBAImageBegin to set the "put" routine. (Fixes #87384) (gdk_pixbuf__tiff_image_stop_load): Don't call TIFFClose too early.
* Check for endianness.Matthias Clasen2002-05-181-0/+15
| | | | | | | * configure.in: Check for endianness. * io-tiff.c (tiff_image_parse): fix packing order on bigendian systems. (#81702)
* Avoid allocating an extra copy of the image by using aMatthias Clasen2002-04-051-50/+86
| | | | | | | * io-tiff.c (tiff_image_parse): Avoid allocating an extra copy of the image by using a TIFFRGBAImage{Begin,Get,End} with suitable put functions instead of TIFFRGBAImage. And check image dimensions for overflow.
* Don't leak pixbuf on error.Matthias Clasen2002-03-251-0/+3
| | | | | | | | | | * io-tiff.c (tiff_image_parse): Don't leak pixbuf on error. * io-gif.c (gdk_pixbuf__gif_image_load_increment): Don't leak context->buf on error. * gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Make sure to call stop_load even for short images to prevent memleaks.
* Avoid a double free error if reading the colormap fails.Matthias Clasen2002-03-211-1/+1
| | | | | | | | * io-tga.c (try_colormap, gdk_pixbuf__tga_stop_load): Avoid a double free error if reading the colormap fails. * io-tiff.c (tiff_image_parse): Make TIFFReadRGBAImage stop on errors, since it may otherwise segfault on certain bad TIFFs.
* Remove assorted G_OBJECT casts where unnecessary.Sebastian Wilhelmi2001-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c, io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove assorted G_OBJECT casts where unnecessary. * gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref resp. * gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c, io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and gdk_pixbuf_unref. * Makefile.am, pixops/Makefile.am: Compile everything with -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED * gdk-pixdata.c: Use g_ascii_strup() instead of g_strup(). * io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp(). * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c, demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref resp.
* On OSF, apparently fseek() works in some on-demand way, so the fseekOwen Taylor2001-09-201-0/+7
| | | | | | | | | Thu Sep 20 17:22:48 2001 Owen Taylor <otaylor@redhat.com> * io-tiff.c (gdk_pixbuf__tiff_image_load): On OSF, apparently fseek() works in some on-demand way, so the fseek gdk_pixbuf_new_from_file() doesn't work here since we are using the raw file descriptor. So, we call lseek() on the fileno(f) before using it. (#60840).
* Robustness fixes and test images for the jpeg, tiff, pnm, gif, xpm and tgaMatthias Clasen2001-09-141-13/+17
| | | | loaders.
* Initial stab at getting the focus code to work.Jonathan Blandford2001-06-011-111/+350
| | | | | | | | | | | | | | | | | | Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at getting the focus code to work. (gtk_tree_view_class_init): Add a bunch of keybindings. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func): s/GtkCellDataFunc/GtkTreeCellDataFunc. (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead of "properties_changed" to help justify the death of the latter signal. (-: * tests/testtreefocus.c (main): Let some columns be focussable to test focus better.
* fix some shell typosHavoc Pennington2001-05-071-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-04 Havoc Pennington <hp@redhat.com> * configure.in: fix some shell typos * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix * gtk/gtkimage.c: handle animations * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request border_width * 2, not just border_width * gtk/gtkscale.c: add "format_value" signal to allow people to override the way values are drawn. (gtk_scale_get_value_size): fix width/height mistake, and compute size from actual displayed text, not from made-up text. * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in signal registration * tests/testtext.c: Add "Remove all tags" menu item for testing * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement * demos/gtk-demo/main.c (main): add hack so we can find modules without installing gtk * demos/gtk-demo/textview.c (insert_text): demo font scaling * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling factor) (gtk_cell_renderer_text_set_property): remove some bogus g_object_notify * gtk/gtktexttag.c: add "scale" property which is a font scaling factor * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute to layout * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from gtk_text_iter_is_first 2001-05-04 Havoc Pennington <hp@redhat.com> * pixops/pixops.c (pixops_process): merge fix from stable: Patch from hoshem@mel.comcen.com.au to fix nonzero X offsets. Fixes bug #50371. * gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest): merge from stable: Patch from OKADA Mitsuru <m-okada@fjb.co.jp> to fix confusion of using "src" instead of "p". (pixops_composite_color_nearest): Use a more accurate (and correct, to begin with) compositing method. This cures checks showing through on images with no alpha. * gdk-pixbuf.c (gdk_pixbuf_fill): fix bug that left some trailing bytes unfilled. * gdk-pixbuf-io.h: fix UpdatedNotifyFunc to use signed ints * gdk-pixbuf-loader.h (struct _GdkPixbufLoaderClass): Change area_updated signal to use signed ints. Removed animation-related signals. * io-gif.c, io-gif-animation.h, io-gif-animation.c: Massive rewrite action * gdk-pixbuf-animation.c: Add GdkPixbufAnimationIter to abstract all the pesky details. Remove old frame-based API. Make GdkPixbufAnimation an abstract base class, derived by the loaders.
* Add built marshaller files to support GdkPixbufLoader signalsHavoc Pennington2001-01-221-21/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-22 Havoc Pennington <hp@redhat.com> * Makefile.am: Add built marshaller files to support GdkPixbufLoader signals * gdk-pixbuf-io.c (gdk_pixbuf_load_module): have GDK_PIXBUF_MODULEDIR unconditionally replace the compiled-in module location, rather than acting as a fallback, because we are using GDK_PIXBUF_MODULEDIR to use gdk-pixbuf before installing it. * gdk-pixbuf.h: include gdk-pixbuf-loader.h * gdk-pixbuf-loader.h, gdk-pixbuf-loader.c: Move back over here from gtk, and add error to close(), because stop_load may do parsing of the image. * pixops/have_mmx.S (_pixops_have_mmx): add newline at end of file * io-*.c: make individual operations static, and add fill_vtable functions which are exported. Fix the collection of type warnings that surfaced, including a number of functions that didn't properly take a GError and some that weren't const-correct. Involved adding error handling for a few loaders. * gdk-pixbuf-io.h: Add error reporting to stop_load function * gdk-pixbuf-io.c (gdk_pixbuf_load_module): change to just look up a function that fills in the GdkPixbufModule vtable, instead of looking up all the image functions individually; this means we can get type safety within modules for the loader functions. Also it means you don't have to keep the statically compiled and GModule versions in sync. * test-gdk-pixbuf.c (main): remove gdk_pixbuf_init() * make-inline-pixbuf.c (main): remove call to gdk_pixbuf_init() * gdk-pixbuf.h: nuke gdk_pixbuf_init() * gdk-pixbuf-animation.c (gdk_pixbuf_frame_get_type): g_type_init () here * gdk-pixbuf.c (gdk_pixbuf_get_type): g_type_init () here * gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_type): g_type_init() here 2001-01-22 Havoc Pennington <hp@redhat.com> * demos/testanimation.c: fix to reflect gdk-pixbuf changes * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: Remove, move back to gdk-pixbuf * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents to all the word functions * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return before doing anything on NULL layout or if we don't have the focus * gtk/testtext.c (fill_example_buffer): "justification" * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute to be called "justification" not "justify" * demos/gtk-demo/textview.c (create_tags): "justification" * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
* Use g_file_open_tmp() (just added to GLib) instead of mkstemp() (orTor Lillqvist2000-11-111-13/+2
| | | | | | | | | | 2000-11-11 Tor Lillqvist <tml@iki.fi> * io-tiff.c (gdk_pixbuf__tiff_image_begin_load): Use g_file_open_tmp() (just added to GLib) instead of mkstemp() (or mktemp() and open()). * io-xpm.c (gdk_pixbuf__xpm_image_begin_load): Ditto.