summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
Commit message (Collapse)AuthorAgeFilesLines
* gdk-pixbuf/Makefile.am Use install-data-hook for gdk-pixbuf.loaders andManish Singh2003-11-181-1/+5
| | | | | | | | | | | Mon Nov 17 16:25:04 2003 Manish Singh <yosh@gimp.org> * gdk-pixbuf/Makefile.am * modules/input/Makefile.am: Use install-data-hook for gdk-pixbuf.loaders and gtk.immodules install generation targets. Fixes #112806. * gtk/gtkexpander.h: Apply missing declarations from #124449.
* Check that the mask is NULL or a string of the same length consistingMatthias Clasen2003-11-142-2/+27
| | | | | | | | 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'.
* Typo fix.Matthias Clasen2003-11-092-1/+5
|
* If neither load nor begin_load are available fall back to load_animationMatthias Clasen2003-11-092-19/+45
| | | | | | | | | Sun Nov 9 23:07:05 2003 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): If neither load nor begin_load are available fall back to load_animation and use gdk_pixbuf_animation_get_static_image() to obtain a pixbuf. Inefficient, but at least doesn't crash.
* New function to write out the information for a single loader, factoredMatthias Clasen2003-11-092-21/+89
| | | | | | | | | | | 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.
* Fold two similar strings into on. (#126204, Danilo Segan)Matthias Clasen2003-11-052-1/+6
| | | | | | | Thu Nov 6 00:27:27 2003 Matthias Clasen <maclas@gmx.de> * io-pcx.c (gdk_pixbuf__pcx_load_increment): Fold two similar strings into on. (#126204, Danilo Segan)
* Remove a pointless check. (#122710, Kjartan Maraas)Matthias Clasen2003-09-192-6/+5
| | | | | | | 2003-09-19 Matthias Clasen <maclas@gmx.de> * io-tga.c (try_preload): Remove a pointless check. (#122710, Kjartan Maraas)
* brooooooooken pipe.Kristian Rietveld2003-09-031-1/+1
|
* Add the correct alignment magic for Sun compiler and for GCC to get theOwen Taylor2003-08-182-0/+18
| | | | | | | | Mon Aug 18 10:25:29 2003 Owen Taylor <otaylor@redhat.com> * gdk-pixdata.c (gdk_pixdata_to_csource): Add the correct alignment magic for Sun compiler and for GCC to get the strings aligned. (Patch from Brian Cameron, #117217)
* Improve doc comment wording. (#119754, Doug Quale)Matthias Clasen2003-08-132-1/+6
| | | | | | | 2003-08-14 Matthias Clasen <maclas@gmx.de> * gdk-pixdata.c (gdk_pixdata_to_csource): Improve doc comment wording. (#119754, Doug Quale)
* Reformat to 80 columns.Matthias Clasen2003-08-111-57/+80
|
* Clarify misleading explanation of rowstride. (#119000)Matthias Clasen2003-08-033-5/+11
| | | | | | | | 2003-08-03 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf.c (gdk_pixbuf_get_rowstride): * gdk-pixbuf-data.c (gdk_pixbuf_new_from_data): Clarify misleading explanation of rowstride. (#119000)
* Preserve the aspect ratio. (#118145, Owen Taylor)Matthias Clasen2003-07-232-2/+40
| | | | | | | 2003-07-24 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Preserve the aspect ratio. (#118145, Owen Taylor)
* Close loader before unref'ing it. (#118146, Owen Taylor)Matthias Clasen2003-07-232-0/+6
| | | | | | | 2003-07-23 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Close loader before unref'ing it. (#118146, Owen Taylor)
* updatedHans Breuer2003-07-203-3/+19
| | | | | | | | 2003-03-01 Hans Breuer <hans@breuer.org> * makefile.msc : updated * gdk_pixbuf.def : export a bunch of new functions
* Split correction into multiple pieces if no single weight is large enoughMatthias Clasen2003-07-172-10/+18
| | | | | | | 2003-07-18 Matthias Clasen <maclas@gmx.de> * pixops/pixops.c (correct_total): Split correction into multiple pieces if no single weight is large enough to apply the unsplit correction. (#117431, problem reported by Tomas Ă–gren)
* New function to load an image from a file at a specified size. (#105326,Matthias Clasen2003-07-133-0/+95
| | | | | | | | 2003-07-13 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf.h: * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): New function to load an image from a file at a specified size. (#105326, Dom Lachowicz)
* Use g_strfreev() to free mime_types. (#117219, Steve Chaplin)Matthias Clasen2003-07-113-10/+16
| | | | | | | | | | | | | 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().
* Support saving ICOs and CURs.Matthias Clasen2003-07-033-3/+330
|
* Stop discriminating against 32bpp ICOs a): Use the byte size of the imageMatthias Clasen2003-06-282-13/+18
| | | | | | | | | | | 2003-06-28 Matthias Clasen <maclas@gmx.de> * io-ico.c (DecodeHeader): Stop discriminating against 32bpp ICOs a): Use the byte size of the image as a heuristic when selecting the bitmap to load - this lets us select 32bpp bitmaps which come after a 8bpp bitmap. (OneLineTransp): Stop discriminating against 32bpp ICOs b): Don't overwrite the alpha channel of 32bpp ICOs. (gdk_pixbuf__ico_image_load_increment): Stop decoding the header unnecessarily.
* Make it compile with C89 compilers.Soeren Sandmann2003-06-272-2/+9
| | | | | | | | | | | | | Fri Jun 27 03:56:59 2003 Soeren Sandmann <sandmann@daimi.au.dk> * io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Make it compile with C89 compilers. Thu Jun 26 21:41:16 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_cell_data): only set "is_expander" and "is_expanded" if the new value is different fromt he old one.
* Remove the pointless refusal to load images with dubious disposal mode onMatthias Clasen2003-06-232-11/+8
| | | | | | | 2003-06-23 Matthias Clasen <maclas@gmx.de> * io-gif.c (gif_get_frame_info): Remove the pointless refusal to load images with dubious disposal mode on the first frame. Just ignore it, as everybody else does.
* Add gdk_pixbuf_loader_new_with_mime_type.Matthias Clasen2003-06-223-0/+64
| | | | | | 2003-06-22 Matthias Clasen <matthias@localhost.localdomain> * gdk-pixbuf/gdk-pixbuf-sections.txt: Add gdk_pixbuf_loader_new_with_mime_type.
* Reset block_count to 0 for all application extensions, otherwise the dataMatthias Clasen2003-06-223-139/+168
| | | | | | | | | | | | | | | | | | | 2003-06-22 Matthias Clasen <matthias@localhost.localdomain> * io-gif.c (gif_get_extension): Reset block_count to 0 for all application extensions, otherwise the data blocks of unknown extensions are not propertly skipped. Second half of the fix for #106962, handle frames extending beyond the logical screen: * io-gif.c (clip_frame): New helper function to clip a rectangle to the logical screen size of the gif. (maybe_update): New helper function to call update_func only if the rectangle is not completely off-bounds. (gif_get_lzw): Read frames extending outside the logical screen size, but be careful clip to the logical screen size when operating on the composite pixbuf and when calling update_func. (gif_init): Set the animation size to the logical screen size. (gif_get_frame_info): Don't refuse to load images with frames extending beyond the logical screen size. * io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Be careful to clip all rectangles to the logical screen size, also handle the fact that frames may be completely off-bounds.
* Merge from 2.2Matthias Clasen2003-06-212-24/+45
|
* Add rule to regenerate man pages from Docbook. (man_MANS): AddMatthias Clasen2003-06-171-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-06-17 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf/Makefile.am: Add rule to regenerate man pages from Docbook. (man_MANS): Add gdk-pixbuf-csource.1, gdk-pixbuf-query-loaders.1. (content_files): Add gdk-pixbuf-csource.xml, gdk-pixbuf-query-loaders.xml. * gdk-pixbuf/gdk-pixbuf-csource.xml: New refentry, containing the former gdk-pixbuf/gdk-pixbuf-csource.1, converted to Docbook. * gdk-pixbuf/gdk-pixbuf-query-loaders.xml: New refentry. * gdk-pixbuf/gdk-pixbuf-csource.1: * gdk-pixbuf/gdk-pixbuf-query-loaders.1: Man pages generated from the .xml sources. * gdk-pixbuf/gdk-pixbuf.sgml: Include gdk-pixbuf-csource.xml and gdk-pixbuf-query-loaders.xml. * gtk/Makefile.am: Add rule to regenerate man pages from Docbook. (man_MANS): Add gtk-query-immodules-2.0.1 (content_files): Add gtk-query-immodules-2.0.xml * gtk/gtk-query-immodules-2.0.xml: New refentry. * gtk/gtk-query-immodules-2.0.1: Man page generated from the .xml source. * gtk/gtk-docs.sgml: Include gtk-query-immodules-2.0.xml. * acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New macros to check for XML catalog contents and path, borrowed from gtk-doc. * configure.in: New option --enable-man to enable regeneration of man pages from Docbook, if the necessary tools are found.
* Document data_length == -1, add an example. (#97290)Matthias Clasen2003-06-022-6/+17
| | | | | | | 2003-06-03 Matthias Clasen <maclas@gmx.de> * gdk-pixdata.c (gdk_pixbuf_new_from_inline): Document data_length == -1, add an example. (#97290)
* Fix misleading documentation of rowstride. (#113924, Noah Levitt)Matthias Clasen2003-05-312-4/+9
| | | | | | | 2003-06-01 Matthias Clasen <maclas@gmx.de> * gdk-pixdata.h (struct _GdkPixdata): Fix misleading documentation of rowstride. (#113924, Noah Levitt)
* Remove dubious bitfields of unspecified signedness. (#112919, MortenMatthias Clasen2003-05-273-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-27 Matthias Clasen <maclas@gmx.de> * io-wbmp.c: Remove dubious bitfields of unspecified signedness. (#112919, Morten Welinder)gdk-p * gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder) * gtk/gtkwindow-decorate.c: * gtk/gtktreeprivate.h: * gtk/gtkdnd.c: * gdk/win32/gdkwindow-win32.h: * gdk/linux-fb/gdkprivate-fb.h: * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of unspecified signedness. (#112919, Morten Welinder) * gtk/queryimmodules.c (escape_string): * gtk/gtktextbtree.c (_gtk_text_btree_get_text): * gtk/gtksettings.c (_gtk_settings_parse_convert): * gtk/gtkrc.c (gtk_rc_parse_assignment): * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all occurances of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
* A loader for PCX files. (#113035, Josh Beam)Matthias Clasen2003-05-215-3/+792
| | | | | | | | | | 2003-05-21 Matthias Clasen <maclas@gmx.de> * pixbufloader_pcx.def: * io-pcx.c: A loader for PCX files. (#113035, Josh Beam) * gdk-pixbuf-io.c: * Makefile.am: Add PCX loader.
* Improve progressive loading from slow sources: (#107368)Matthias Clasen2003-05-193-4/+32
| | | | | | | | | | | | | | 2003-05-19 Matthias Clasen <maclas@gmx.de> Improve progressive loading from slow sources: (#107368) * io-gif-animation.c (gdk_pixbuf_gif_anim_get_iter): Initialize first_loop_slowness. (gdk_pixbuf_gif_anim_iter_advance): Don't wrap during loading if the datasource falls behind the speed of the display. * io-gif-animation.h: Add a loading flag to GdkPixbufGifAnim and first_loop_slowness to GdkPixbufGifAnimIter.
* Add a (gint32 *) => (guint32 *) cast. (#108615, Rick Jones)Owen Taylor2003-05-142-1/+6
| | | | | | | Wed May 14 18:24:50 2003 Owen Taylor <otaylor@redhat.com> * gdk-pixdata.c (gdk_pixdata_deserialize): Add a (gint32 *) => (guint32 *) cast. (#108615, Rick Jones)
* Patch from James Henstridge to update to automake-1.7 (#109542)Owen Taylor2003-05-062-69/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue May 6 16:50:52 2003 Owen Taylor <otaylor@redhat.com> Patch from James Henstridge to update to automake-1.7 (#109542) * autogen.sh: update to call newer tools. * configure.in: various updates, to use M4 macros to put variables that change each release at the top. Use AC_HELP_STRING to format help strings. Use AC_CONFIG_COMMANDS to generate gdkconfig.h. * Makefile.am: require Automake 1.7. Remove gdk-2.0.pc and gtk+-2.0.pc on uninstall. Pass --enable-gtk-doc to configure during distcheck. * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make makefile fragment. * */Makefile.am: don't use STRIP_BEGIN/STRIP_END. Use BUILT_SOURCES where appropriate. Build generated files in builddir rather than srcdir. Fix uninstall and distclean targets to satisfy distcheck. === * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h built first, since we are now using BUILT_SOURCES. * gdk/Makefile.am: Remove an outdated comment about gdk_headers. * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem with geninclude.pl. * configure.in: Update versions to 2.3.0.
* Add sanity checks for GError handling. (#108345)Matthias Clasen2003-04-244-1/+20
|
* Exploit the fact that all our filters are separable to simplify theOwen Taylor2003-04-014-346/+405
| | | | | | | | | | | | Tue Apr 1 15:33:51 2003 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c (make_weights): Exploit the fact that all our filters are separable to simplify the calculation of the weight tables. (Based on a patch from Brian Cameron.) * pixops/Makefile.am pixbuf-transform-math.ltx: Add a short article describing how the math in pixops.c works.
* Add missing static. (#108614)Matthias Clasen2003-03-212-1/+4
| | | | | | | 2003-03-21 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-animation.c (gdk_pixbuf_non_anim_get_type): Add missing static. (#108614)
* Add missing static qualifiers apparently causing problems on someMatthias Clasen2003-03-213-3/+10
| | | | | | | | 2003-03-21 Matthias Clasen <maclas@gmx.de> * io-jpeg.c (gdk_pixbuf__jpeg_image_begin_load): * io-ico.c (gdk_pixbuf__ico_image_stop_load): Add missing static qualifiers apparently causing problems on some platforms. (#108617)
* Calculate LineWidth for 16bpp from width, like for the other depths.Matthias Clasen2003-03-112-1/+6
| | | | | | | 2003-03-11 Matthias Clasen <maclas@gmx.de> * io-ico.c (DecodeHeader): Calculate LineWidth for 16bpp from width, like for the other depths. (noticed by Marijn Ros)
* Trivial cleanups (bug #107664)Matthias Clasen2003-03-083-2/+9
|
* Return gboolean, not gint. (#107664, Morten Welinder)Matthias Clasen2003-03-062-1/+5
| | | | | | | | | | | | | | 2003-03-06 Matthias Clasen <maclas@gmx.de> * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint. (#107664, Morten Welinder) * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): * gdk/x11/gdkfont-x11.c (gdk_font_equal): * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): Fix TRUE/1 and FALSE/0 confusion. (#107664, Morten Welinder) * io-gif.c (gif_read): Fix 0/FALSE confusion (#107664, Morten Welinder)
* Always clear the initial frame and "disposed" areas with transparentMatthias Clasen2003-02-192-4/+9
| | | | | | | | | 2003-02-20 Matthias Clasen <maclas@gmx.de> * io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite): Always clear the initial frame and "disposed" areas with transparent pixels, no matter whether the frame has transparency or not. (#55502)
* Auxiliary functions used to implement support for arbitrary origins.Matthias Clasen2003-02-182-462/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-18 Matthias Clasen <maclas@gmx.de> * io-tga.c (pixbuf_flip_row): (pixbuf_flip_vertically): Auxiliary functions used to implement support for arbitrary origins. (parse_data_for_row_pseudocolor): (parse_data_for_row_truecolor): (parse_data_for_row_grayscale): (parse_data_for_row): (fill_in_context): Remove the check for upper-left origin. (parse_rle_data): Support arbitrary origins. (#105912) * io-tga.c (fread_check): (fseek_check): (get_header_from_file): (get_colormap_from_file): (get_image_pseudocolor): (swap_channels_pixbuf): (get_image_truecolor): (get_image_grayscale): (gdk_pixbuf__tga_load): Remove the non-incremental load implementation, since we have generic_image_load () now. (gdk_pixbuf__tga_stop_load): Fix a potential crash discovered by pixbuf-lowmem.
* Actually reject images with origin not in the upper-left corner. (#105912)Matthias Clasen2003-02-132-5/+14
| | | | | | | | 2003-02-14 Matthias Clasen <maclas@gmx.de> * io-tga.c (try_preload): (gdk_pixbuf__tga_load): Actually reject images with origin not in the upper-left corner. (#105912)
* 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)
* Rewrite to run on the .la files rather than looking for .so files.Owen Taylor2003-01-272-2/+15
| | | | | | | | | | | Mon Jan 27 17:10:30 2003 Owen Taylor <otaylor@redhat.com> * Makefile.am (gdk-pixbuf.loaders): Rewrite to run on the .la files rather than looking for .so files. (#102142, Martin Gansser) * Makefile.am: Don't build gdk-pixbuf.loaders when cross-compiling.
* Add gdk_pixbuf_loader_set_size.Tor Lillqvist2003-01-051-0/+1
| | | | | | 2003-01-05 Tor Lillqvist <tml@iki.fi> * gdk_pixbuf.def: Add gdk_pixbuf_loader_set_size.
* Use correct DLL and import library names, with GTK_API_VERSION in name,Tor Lillqvist2003-01-055-175/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-05 Tor Lillqvist <tml@iki.fi> * gtk-zip.sh.in: Use correct DLL and import library names, with GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION. (DEVZIP): Add gdk-pixbuf-query-loaders.exe. * configure.in: Improve check for dimm.h. * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in gdk-pixbuf/Makefile.am. * gdk-pixbuf/makefile.mingw.in * gdk-pixbuf/pixops/makefile.mingw.in * gdk/makefile.mingw.in * gdk/win32/makefile.mingw.in * gtk/makefile.mingw.in: Remove. Not maintained anyway. * gdk-pixbuf/Makefile.am * gdk-pixbuf/pixops/Makefile.am * gdk/Makefile.am * gdk/win32/Makefile.am * gtk/Makefile.am * configure.in: Remove makefile.mingw{,.in} from here, too. * README.win32: Updates. Don't mention the now removed makefile.mingw files. * gdk/gdk.def * gtk/gtk.def: Add a couple of missing entries. * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy(). * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround earlier. * gdk/win32/rc/Makefile.am: Add hack to help build/win32/lt-compile-resource decide which kind of libtool object file to produce.
* Don't crash if gdk-pixbuf.loaders file is missing. (#102222)Matthias Clasen2003-01-022-6/+13
| | | | | | | 2003-01-03 Matthias Clasen <maclas@gmx.de> * gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Don't crash if gdk-pixbuf.loaders file is missing. (#102222)
* Use g_printf instead of system printf. (#99327)Matthias Clasen2002-12-153-50/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Add docs.Matthias Clasen2002-12-083-0/+10
|