summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/test-loaders.c
Commit message (Collapse)AuthorAgeFilesLines
* image files for testing pixbuf loaders the old test-loaders.c split intoSoeren Sandmann2002-05-051-489/+0
| | | | | | | | | | | | | | | Sun May 5 02:22:59 2002 Soeren Sandmann <sandmann@daimi.au.dk> * tests/test-images/*: image files for testing pixbuf loaders * tests/pixbuf-*.c: the old test-loaders.c split into four different programs * tests/Makefile.am: add new pixbuf tests Sun May 5 02:27:01 2002 Soeren Sandmann <sandmann@daimi.au.dk> * Makefile.am (noinst_PROGRAMS): remove test-loaders (moved to gtk+/tests/) * test-loaders.c, test-images.h: remove
* Add valid_ras_test and invalid_bmp_1.Matthias Clasen2002-03-131-9/+15
| | | | | | | | | | | | * test-images.h: Add valid_ras_test and invalid_bmp_1. * test-loaders.c (main): Add random tests for ras and pnm and an invalid bmp which was a crasher until my 2002-03-12 commit. * io-pnm.c (gdk_pixbuf__pnm_image_load_increment): Don't unref the pixbuf on errors. * io-ras.c: Handle some errors.
* Fix docs.Matthias Clasen2002-03-051-2/+11
| | | | | | | | | | | | | | | | | * gtk/gtktreemodel.c (gtk_tree_row_reference_deleted): Fix docs. * gtk/gtkwindow.c (gtk_window_remove_mnemonic): (gtk_window_add_mnemonic): (gtk_window_mnemonic_activate): Add docs. * gtk/gtktreeview.c (gtk_tree_view_get_search_equal_func): Fix typo in docs. * test-loaders.c, test-images.h: More random tests. * io-bmp.c (DecodeHeader): Fail gracefully on OOM here. * gtk/gtk-sections.txt: Remove gtk_win32_get_installation_directory.
* If we can't load the module using the g_module_build_path() filename, tryOwen Taylor2002-03-031-21/+13
| | | | | | | | | | | | | Sat Mar 2 22:11:10 2002 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf-io.c (_gdk_pixbuf_load_module): If we can't load the module using the g_module_build_path() filename, try loading it as a .la file. * test-loaders.c: Look for modules in current directory rather than .libs, so we find the right .la files. * test-loaders.c: Back out some accidental commits.
* Default to --disable-gtk-doc (avoid Jade breakage) and --disable-staticOwen Taylor2002-03-021-13/+21
| | | | | | | | | | | | | | | | | | | | Sat Mar 2 14:32:50 2002 Owen Taylor <otaylor@redhat.com> * configure.in: Default to --disable-gtk-doc (avoid Jade breakage) and --disable-static (static linking causes problems with Xft changes.) * autogen.sh: Add --enable-gtk-doc by default. * Makefile.am: Add a 'mydistcheck' rule that passes --enable-gtk-doc to the configure since that is needed for 'make dist'. * docs/tutorial/Makefile.am (dist-hook): Don't distribute the PDF file. (Rule doesn't work on my system, plus it's big.) * gtk/Makefile.am: 'make dist' fixes.
* Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().Matthias Clasen2002-02-121-9/+9
| | | | | | | | | | | | | | | | | * test-images.h (tiff1_test_3), test-loaders.c (main): Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory(). * io-ico.c (DecodeHeader): Check that pixbuf could be allocated. * test-images.h (ico_test_2), test-loaders.c (main): Test the previous change. * io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Don't write beyond the end of buffer if width % 8 != 0. * io-tga.c (try_preload): Enforce that ctx->hdr->type is one of the supported types, otherwise parse_data_for_row () will not make any progress, leading to an infinite loop.
* Enable some tests which should work now.Matthias Clasen2002-02-101-10/+6
| | | | | | | | | | | | | | * test-loaders.c (main): Enable some tests which should work now. * io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Detect invalid image dimensions and insufficient memory. * io-tga.c (try_preload): Detect invalid image dimensions. (gdk_pixbuf__tga_stop_load): Don't try to unref NULL pointers. * io-ico.c (DecodeHeader): Detect some invalid headers and don't segfault.
* Remove assorted G_OBJECT casts where unnecessary.Sebastian Wilhelmi2001-12-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Robustness fixes and test images for the jpeg, tiff, pnm, gif, xpm and tgaMatthias Clasen2001-09-141-31/+47
| | | | loaders.
* gdk-pixbuf/test-loaders.c (test_loader): Catch errors at close time.Matthias Clasen2001-08-281-4/+4
| | | | | | gdk-pixbuf/test-loaders.c (main): Remove C++ comments. demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf only in response to an area_prepared signal.
* Add ico and wbmp tests. Fail with a suitable error if buffer allocationMatthias Clasen2001-08-201-9/+26
| | | | | | | | * test-images.h, test-loaders.c: Add ico and wbmp tests. * io-jpeg.c (gdk_pixbuf__jpeg_image_save): Fail with a suitable error if buffer allocation fails. * io-ico.c: Make .ICO loader more robust. All of these are due to sandmann@daimi.au.dk (#50187)
* Fix args to g_type_init ().Owen Taylor2001-06-291-1/+1
| | | | | | | Thu Jun 28 21:54:19 2001 Owen Taylor <otaylor@redhat.com> * make-inline-pixbuf.c test-gdk-pixbuf.c test-loaders.c gdk-pixbuf-csource.c: Fix args to g_type_init ().
* clamp the value to the range that was setHavoc Pennington2001-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-05 Havoc Pennington <hp@redhat.com> * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value to the range that was set * gtk/gtkrange.c: add value_changed signal, primarily intended for use with GtkScale (gtk_range_set_increments): new function (gtk_range_set_range): new function with weird name (gtk_range_set_value): new function (gtk_range_get_value): new function * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename from gtk_spin_button_get_value_as_float(). Compat #define added for get_value_as_float. * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function 2001-06-05 Havoc Pennington <hp@redhat.com> * test-loaders.c (main): use putenv not setenv, reported by Armin Theissen
* Initial stab at getting the focus code to work.Jonathan Blandford2001-06-011-0/+445
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.