]> Pileus Git - ~andy/gtk/log
~andy/gtk
24 years agoUse libart-config correctly; find gnome-config separately. Fix GNOME_LIBS
Havoc Pennington [Thu, 4 Nov 1999 20:04:02 +0000 (20:04 +0000)]
Use libart-config correctly; find gnome-config separately. Fix GNOME_LIBS

1999-11-04  Havoc Pennington  <hp@pobox.com>

* configure.in: Use libart-config correctly; find gnome-config
separately. Fix GNOME_LIBS to be correct in "no gnome installed
yet" case.

* src/Makefile.am: Link to GNOME_LIBS instead of a hardcoded
library list.

Patch untested in the inside-gnome-libs case, I need to commit
then check out to the gnome-libs I'm using.

24 years agoAdd update_func callback. Call updated callback when new graphic data
Michael Fulbright [Thu, 4 Nov 1999 20:02:37 +0000 (20:02 +0000)]
Add update_func callback. Call updated callback when new graphic data

1999-11-04  Michael Fulbright  <drmike@redhat.com>

* src/io-jpeg.c (image_begin_load): Add update_func callback.
* src/io-jpeg.c (image_load_increment): Call updated callback when
new graphic data decoded.

24 years agofix .tiff loader.
Jonathan Blandford [Thu, 4 Nov 1999 19:22:45 +0000 (19:22 +0000)]
fix .tiff loader.

add a testcase for the "updated_area"

24 years agohandle the actual update. add a update_func callback. add a update_func
Jonathan Blandford [Thu, 4 Nov 1999 18:18:07 +0000 (18:18 +0000)]
handle the actual update. add a update_func callback. add a update_func

1999-11-04  Jonathan Blandford  <jrb@redhat.com>

* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_update): handle the
actual update.
* src/io-png.c (image_begin_load): add a update_func callback.
* src/io-gif.c (image_begin_load): add a update_func callback.
* src/io-tiff.c (image_begin_load): add a update_func callback.

24 years agoPopulated.
Federico Mena Quintero [Thu, 4 Nov 1999 08:14:32 +0000 (08:14 +0000)]
Populated.

1999-11-04  Federico Mena Quintero  <federico@redhat.com>

* doc/tmpl/gdk-pixbuf.sgml: Populated.

* doc/tmpl/refcounting.sgml: Populated.

* doc/tmpl/file-loading.sgml: Populated.

* src/gdk-pixbuf.c: Added documentation comments.

* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): Added
documentation comments.

24 years agoFinished integrating the documentation framework.
Federico Mena Quintero [Thu, 4 Nov 1999 07:30:04 +0000 (07:30 +0000)]
Finished integrating the documentation framework.

1999-11-04  Federico Mena Quintero  <federico@redhat.com>

* doc/: Finished integrating the documentation framework.

24 years agoEek - Federico
Arturo Espinosa [Thu, 4 Nov 1999 07:03:10 +0000 (07:03 +0000)]
Eek - Federico

24 years agoIntegrate gtk-doc, part 1; need to finish it at home - Federico
Arturo Espinosa [Thu, 4 Nov 1999 01:10:05 +0000 (01:10 +0000)]
Integrate gtk-doc, part 1; need to finish it at home - Federico

24 years agoSync - Federico
Arturo Espinosa [Wed, 3 Nov 1999 23:58:37 +0000 (23:58 +0000)]
Sync - Federico

24 years agominor packing change
Jonathan Blandford [Wed, 3 Nov 1999 23:39:58 +0000 (23:39 +0000)]
minor packing change

24 years agorenamed ReadOK to gif_read. Added a lot of comments to the file.
Jonathan Blandford [Wed, 3 Nov 1999 23:22:27 +0000 (23:22 +0000)]
renamed ReadOK to gif_read. Added a lot of comments to the file.

1999-11-03  Jonathan Blandford  <jrb@redhat.com>

* src/io-gif.c (gif_read): renamed ReadOK to gif_read.
Added a lot of comments to the file.

24 years agoRemove dependency on lib*gif!!!!
Jonathan Blandford [Wed, 3 Nov 1999 22:27:59 +0000 (22:27 +0000)]
Remove dependency on lib*gif!!!!

1999-11-03  Jonathan Blandford  <jrb@redhat.com>

* src/Makefile.am (libpixbuf_gif_la_LIBADD): Remove dependency on
lib*gif!!!!

Also, some code cleanups to io-gif

24 years agoset the transparency to the right val.
Jonathan Blandford [Wed, 3 Nov 1999 22:19:42 +0000 (22:19 +0000)]
set the transparency to the right val.

1999-11-03  Jonathan Blandford  <jrb@redhat.com>

* src/io-gif.c (gif_get_lzw): set the transparency to the right
          val.

24 years agoFurther removal of bugginess in local buffering code. Handles grayscale
Michael Fulbright [Wed, 3 Nov 1999 22:00:27 +0000 (22:00 +0000)]
Further removal of bugginess in local buffering code. Handles grayscale

1999-11-03  Michael Fulbright  <msf@redhat.com>

* src/io-jpeg.c (image_load_increment): Further removal of
bugginess in local buffering code. Handles grayscale jpegs
correctly now.

* src/io-jpeg.c (image_load_stop): Was freeing local context
for jpeg library before calling jpeg_decompres_finish ().

24 years agonow handle arbitrary buffer sizes.
Jonathan Blandford [Wed, 3 Nov 1999 21:52:16 +0000 (21:52 +0000)]
now handle arbitrary buffer sizes.

1999-11-03  Jonathan Blandford  <jrb@redhat.com>

* src/io-gif.c (image_load_increment): now handle arbitrary buffer
sizes.

24 years agoInitiailize the x and y fields. (gnome_canvas_pixbuf_destroy): Queue a
Federico Mena Quintero [Wed, 3 Nov 1999 21:26:52 +0000 (21:26 +0000)]
Initiailize the x and y fields. (gnome_canvas_pixbuf_destroy): Queue a

1999-11-03  Federico Mena Quintero  <federico@redhat.com>

* src/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_init):
Initiailize the x and y fields.
(gnome_canvas_pixbuf_destroy): Queue a redraw upon destruction.
(PixbufPrivate): Renamed need_size_update to need_xform_update.
(recompute_bounding_box): Do not use temporary values.

24 years agonew state. Fixes un-compressed gifs.
Jonathan Blandford [Wed, 3 Nov 1999 21:22:38 +0000 (21:22 +0000)]
new state. Fixes un-compressed gifs.

1999-11-03  Jonathan Blandford  <jrb@redhat.com>

* src/io-gif.c (set_gif_lzw_clear_code): new state.  Fixes
un-compressed gifs.

* src/gnome-canvas-pixbuf.c (recompute_bounding_box): remove
unneeded x,y,h,w vars.

24 years agoadjust render_affine calculation for x,y offsets.
Larry Ewing [Wed, 3 Nov 1999 20:57:04 +0000 (20:57 +0000)]
adjust render_affine calculation for x,y offsets.

1999-11-03  Larry Ewing  <lewing@gimp.org>

* src/gnome-canvas-pixbuf.c (compute_render_affine): adjust
render_affine calculation for x,y offsets.
(gnome_canvas_pixbuf_set_arg): add x,y args.
(gnome_canvas_pixbuf_get_arg): add x,y args.
(recompute_bounding_box): simply code using ArtDrect and the
render_affine.  Removed compute_xform_vectors as it was no longer
needed.

24 years agoI'm a doofus. Return a distance, not a boolean, for opaque images.
Federico Mena Quintero [Wed, 3 Nov 1999 20:39:27 +0000 (20:39 +0000)]
I'm a doofus. Return a distance, not a boolean, for opaque images.

1999-11-03  Federico Mena Quintero  <federico@redhat.com>

* src/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_point): I'm a
doofus.  Return a distance, not a boolean, for opaque images.

24 years agoDo proper rounding of bounding box coordinates.
Federico Mena Quintero [Wed, 3 Nov 1999 20:26:32 +0000 (20:26 +0000)]
Do proper rounding of bounding box coordinates.

1999-11-03  Federico Mena Quintero  <federico@redhat.com>

* src/gnome-canvas-pixbuf.c (recompute_bounding_box): Do proper
rounding of bounding box coordinates.
(gnome_canvas_pixbuf_bounds): Implemented the ::bounds() method.
(gnome_canvas_pixbuf_draw): Use the correct alpha threshold value.

24 years agoforgot this
Jonathan Blandford [Wed, 3 Nov 1999 17:45:41 +0000 (17:45 +0000)]
forgot this

24 years agos/lwz/lzw/g
Jonathan Blandford [Wed, 3 Nov 1999 17:45:24 +0000 (17:45 +0000)]
s/lwz/lzw/g

1999-11-03  Jonathan Blandford  <jrb@redhat.com>

* src/io-gif.c (gif_prepare_lzw): s/lwz/lzw/g

24 years agoFixed code which moved buffer around as new data comes in to work
Michael Fulbright [Wed, 3 Nov 1999 17:17:32 +0000 (17:17 +0000)]
Fixed code which moved buffer around as new data comes in to work

1999-11-03  Michael Fulbright  <drmike@redhat.com>

* src/io-jpg.c image_load_increment(): Fixed code which moved
buffer around as new data comes in to work properly. JPEG progressive
loading should be working now except for grayscale JPEG's, which I

24 years agochangelog
Michael Fulbright [Wed, 3 Nov 1999 17:17:11 +0000 (17:17 +0000)]
changelog

24 years agoinitialize a variable; kill a bug
Jonathan Blandford [Wed, 3 Nov 1999 16:40:43 +0000 (16:40 +0000)]
initialize a variable; kill a bug

24 years agoA GtkFunction needs to return a value for deterministic behaviour. Also
Elliot Lee [Wed, 3 Nov 1999 15:57:16 +0000 (15:57 +0000)]
A GtkFunction needs to return a value for deterministic behaviour. Also

A GtkFunction needs to return a value for deterministic behaviour. Also put dot printing back in.

24 years agoRead 'til the next empty block correctly, now.
3 [Wed, 3 Nov 1999 05:12:02 +0000 (05:12 +0000)]
Read 'til the next empty block correctly, now.

1999-11-03    <jrb@redhat.com>

* src/io-gif.c (gif_get_extension): Read 'til the next empty block
correctly, now.

24 years agoSync to laptop - Federico
Arturo Espinosa [Wed, 3 Nov 1999 03:16:21 +0000 (03:16 +0000)]
Sync to laptop - Federico

24 years agosrc/gdk-pixbuf-drawable.c: Changed the behavior to return NULL if part of
Cody Russell [Wed, 3 Nov 1999 00:37:40 +0000 (00:37 +0000)]
src/gdk-pixbuf-drawable.c: Changed the behavior to return NULL if part of
the requested image is offscreen, rather than clipping the image.

24 years agoFill in the gif's blank areas for interlacing and progressive loading.
Jonathan Blandford [Wed, 3 Nov 1999 00:20:27 +0000 (00:20 +0000)]
Fill in the gif's blank areas for interlacing and progressive loading.

1999-11-02  Jonathan Blandford  <jrb@redhat.com>

* src/io-gif.c (gif_fill_in_lines): Fill in the gif's blank areas
for interlacing and progressive loading.

24 years agosrc/gdk-pixbuf-drawable.c (gdk_pibxuf_from_drawable_core): Now calls
Cody Russell [Tue, 2 Nov 1999 23:59:03 +0000 (23:59 +0000)]
src/gdk-pixbuf-drawable.c (gdk_pibxuf_from_drawable_core): Now calls
gdk_pixbuf_new_from_art_pixbuf() instead of gdk_pixbuf_new().

24 years agoNow progressive gif loading works! It's a little slow though. )-:
Jonathan Blandford [Tue, 2 Nov 1999 23:49:22 +0000 (23:49 +0000)]
Now progressive gif loading works! It's a little slow though. )-:

1999-11-02  Jonathan Blandford  <jrb@redhat.com>

* src/io-gif.c (gif_main_loop): Now progressive gif loading works!
It's a little slow though. )-:

24 years agoMake the arguments to the write/load_increment operations const-correct.
Elliot Lee [Tue, 2 Nov 1999 23:44:32 +0000 (23:44 +0000)]
Make the arguments to the write/load_increment operations const-correct.

* src/gdk-pixbuf-loader.[ch], src/gdk-pixbuf-io.h: Make the arguments to the
write/load_increment operations const-correct.

24 years agoImplemented the ::point() method. We do a simple containment test instead
Federico Mena Quintero [Tue, 2 Nov 1999 23:11:09 +0000 (23:11 +0000)]
Implemented the ::point() method. We do a simple containment test instead

1999-11-02  Federico Mena Quintero  <federico@redhat.com>

* src/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_point):
Implemented the ::point() method.  We do a simple containment test
instead of a full distance calculation since the canvas is going
to change to that scheme, anyways.

24 years agoAllow using $TBF_READLEN to specify the size of the chunks that are read
Elliot Lee [Tue, 2 Nov 1999 22:01:43 +0000 (22:01 +0000)]
Allow using $TBF_READLEN to specify the size of the chunks that are read

* src/testpixbuf.c: Allow using $TBF_READLEN to specify the size of the chunks that are read from
the input file.

24 years agoAlways return the amount eaten, rather than the full header size.
Elliot Lee [Tue, 2 Nov 1999 21:49:46 +0000 (21:49 +0000)]
Always return the amount eaten, rather than the full header size.

Always return the amount eaten, rather than the full header size.

24 years agoReturn TRUE if all the data got eaten by header_buf, instead of FALSE.
Elliot Lee [Tue, 2 Nov 1999 20:20:05 +0000 (20:20 +0000)]
Return TRUE if all the data got eaten by header_buf, instead of FALSE.

Return TRUE if all the data got eaten by header_buf, instead of FALSE.

24 years agoadd aa render function. (gnome_canvas_pixbuf_class_init): add
Larry Ewing [Tue, 2 Nov 1999 19:43:48 +0000 (19:43 +0000)]
add aa render function. (gnome_canvas_pixbuf_class_init): add

1999-11-02  Larry Ewing  <lewing@gimp.org>

* src/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_render): add aa
render function.
(gnome_canvas_pixbuf_class_init): add gnome_canvas_pixbuf_render
to class.

24 years agoSync for Larry - Federico
Arturo Espinosa [Tue, 2 Nov 1999 19:31:11 +0000 (19:31 +0000)]
Sync for Larry - Federico

24 years agochangelog
Michael Fulbright [Tue, 2 Nov 1999 18:26:51 +0000 (18:26 +0000)]
changelog

24 years agorevert
Elliot Lee [Tue, 2 Nov 1999 17:17:00 +0000 (17:17 +0000)]
revert

24 years agoReorganize gdk_pixbuf_loader_write into three functions, and eliminate
Elliot Lee [Tue, 2 Nov 1999 16:10:25 +0000 (16:10 +0000)]
Reorganize gdk_pixbuf_loader_write into three functions, and eliminate

* src/gdk-pixbuf-loader.c: Reorganize gdk_pixbuf_loader_write into three functions, and eliminate
duplication of code from write() and close(). Also fix bug where the 128-byte header was being
written twice.

24 years agoFixed bounding box computation.
Federico Mena Quintero [Tue, 2 Nov 1999 02:17:06 +0000 (02:17 +0000)]
Fixed bounding box computation.

1999-11-01  Federico Mena Quintero  <federico@redhat.com>

* src/gnome-canvas-pixbuf.c (recompute_bounding_box): Fixed
bounding box computation.

24 years agoSync - Federico
Arturo Espinosa [Tue, 2 Nov 1999 01:50:41 +0000 (01:50 +0000)]
Sync - Federico

24 years agoStart of the pixbuf canvas item. Drawing affines seem to work. Bounding
Federico Mena Quintero [Tue, 2 Nov 1999 01:50:06 +0000 (01:50 +0000)]
Start of the pixbuf canvas item. Drawing affines seem to work. Bounding

1999-11-01  Federico Mena Quintero  <federico@redhat.com>

* src/gnome-canvas-pixbuf.c: Start of the pixbuf canvas item.
Drawing affines seem to work.  Bounding box is fubared.  ::point()
is not implemented.  This is a work in progress.

* src/Makefile.am: Added gnome-canvas-pixbuf.[ch] to the list of
sources.

* configure.in: Sigh.  We need to link in libgnomeui for the
canvas stuff.  This mess will disappear when gdk-pixbuf gets
folded into gnome-libs.

24 years agolots of lots of work. USE AT YOUR OWN RISK
Jonathan Blandford [Tue, 2 Nov 1999 01:17:41 +0000 (01:17 +0000)]
lots of lots of work.  USE AT YOUR OWN RISK

24 years agoSync to desktop - Federico
Arturo Espinosa [Mon, 1 Nov 1999 19:09:20 +0000 (19:09 +0000)]
Sync to desktop - Federico

24 years agomuch more work on the progressive loader.
Jonathan Blandford [Mon, 1 Nov 1999 13:26:03 +0000 (13:26 +0000)]
much more work on the progressive loader.
somewhere, some how, I broke something, )-: so all you get is a black
image.  Hopefully, we can load the real image later.

24 years agoAdd new keysyms from X11R6.4 (including EuroSign).
Tor Lillqvist [Sun, 31 Oct 1999 21:35:39 +0000 (21:35 +0000)]
Add new keysyms from X11R6.4 (including EuroSign).

1999-10-31  Tor Lillqvist  <tml@iki.fi>

* gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
EuroSign).

* gdk/gdktypes.h: Add note about wchar_t not necessarily being the
same type as GdkWChar, especially on Win32.

* gdk/win32/*.c: Change gdk_root_parent to be a pointer.

* gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
before passing to Windows GDI for drawing etc. Convert to the
system default codepage before passing to Windows as window
titles.

* gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
support changing input locale on the fly.

* gdk/win32/gdkevent.c: Support input language (keyboard locale)
on-the-fly changes. Convert incoming characters from the current
codepage to Unicode (and then to a UTF-8 multi-byte string) based
on the current input language. Use keysym<->Unicode mapping tables
and functions borrowed from xterm sources.

Support IMEs (Input Method Editors) for CJK languages. On non-CJK
editions of Win9x, use the ActiveX-based Active IMM (Input Method
Manager) if available. IMEs and the Active IMM are available under
the disguise of Chinese, Korean and Japanese support for IE and
Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
support is present in all editions (as long as you install it).

Call DispatchMessage from gdk_events_queue() (and thus
gdk_WindowProc()), instead of duplicating the code in
gdk_WindowProc().

Reworked the grab handling and propagation code, factored out
duplicated code snippets into separate functions. Other cleanups,
too.

* gdk/win32/surrogate-dimm.h: Provide just the bits we need from
the <dimm.h> header describing the Active IMM.

* gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
just do the same as for "single" fonts.

* gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
the new keysyms from gdkkeysyms.h.

* gtk/gtkfontsel.c (Win32): Load the font for the preview as a
fontset, so that gtkentry uses wide characters.

* gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
GTk+'s system directory "gtk+", not "gtk".

24 years agoComments.
Tor Lillqvist [Sun, 31 Oct 1999 20:30:20 +0000 (20:30 +0000)]
Comments.

24 years agoNew file for building the message catalogs on Win32. Generic, used also in
Tor Lillqvist [Sun, 31 Oct 1999 20:28:23 +0000 (20:28 +0000)]
New file for building the message catalogs on Win32. Generic, used also in

1999-10-31  Tor Lillqvist  <tml@iki.fi>

* makefile.cygwin: New file for building the message catalogs on
Win32. Generic, used also in GIMP's po and po-plug-ins
directories. On Win32 we use UTF-8, and we convert the .po files
to UTF-8 in two passes using the useful native2ascii tool from the
JDK.

24 years agonow gif loading works. Time to de-stiticify it and move onto progressive loading
Jonathan Blandford [Sun, 31 Oct 1999 01:13:25 +0000 (01:13 +0000)]
now gif loading works.  Time to de-stiticify it and move onto progressive loading

24 years agoquick hack to restore wotrkingness to regular gifs. Creates a RGBA buffer independen...
Jonathan Blandford [Sat, 30 Oct 1999 23:17:06 +0000 (23:17 +0000)]
quick hack to restore wotrkingness to regular gifs.  Creates a RGBA buffer independent of the gif type. I'll try to get it right later.

24 years ago(ReadImage): lets get the offset right. This will let transparent gifs
0 [Sat, 30 Oct 1999 23:07:18 +0000 (23:07 +0000)]
(ReadImage): lets get the offset right. This will let transparent gifs

1999-10-30    <jrb@redhat.com>

(ReadImage): lets get the offset right.  This will let transparent
gifs work.

Right now, gifs with transparency, both interlaced and non-interlaced,
seem to work perfectly fine.  I haven't tried grayscale gifs yet, and I
seem to be getting offset in my RGB buffer with non-alpha gifs. )-:
This leads to pretty, but incorrect, images.

-Jonathan

24 years agoSome more work. Now it generates a gdk_pixbuf of the right size, at a
0 [Sat, 30 Oct 1999 22:04:27 +0000 (22:04 +0000)]
Some more work. Now it generates a gdk_pixbuf of the right size, at a

1999-10-30    <jrb@redhat.com>

* src/io-gif.c: Some more work.  Now it generates a gdk_pixbuf of
the right size, at a minimum, even if the image is squished and
the wrong color.

24 years agoFirst run at the new gif format. Shouldn't work, unfortunately.
Jonathan Blandford [Sat, 30 Oct 1999 19:28:53 +0000 (19:28 +0000)]
First run at the new gif format.  Shouldn't work, unfortunately.

24 years agoFAQ update
BST 1999 Tony Gale [Sat, 30 Oct 1999 12:02:43 +0000 (12:02 +0000)]
FAQ update

Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>

        * docs/gtkfaq.sgml: FAQ update

24 years agoFixed small oopsie with grayscale jpeg handling - still not working for progressive
Michael Fulbright [Fri, 29 Oct 1999 23:07:23 +0000 (23:07 +0000)]
Fixed small oopsie with grayscale jpeg handling - still not working for progressive

24 years agoRemoved erroneous comments.
Michael Fulbright [Fri, 29 Oct 1999 22:54:02 +0000 (22:54 +0000)]
Removed erroneous comments.

Dr Mike <drmike@redhat.com>

24 years agoimage_load_increment(): Fixed bug when image width was not a multiple of 4
Michael Fulbright [Fri, 29 Oct 1999 22:43:51 +0000 (22:43 +0000)]
image_load_increment(): Fixed bug when image width was not a multiple of 4

1999-10-29  Michael Fulbright  <drmike@redhat.com>

        * src/io-jpeg.c: image_load_increment(): Fixed bug when
        image width was not a multiple of 4 - always use the
        gdk_pixbuf rowstride to increment pointers!

24 years agoAdded first cut at progressive jpeg loading. Currently does not handle
Michael Fulbright [Fri, 29 Oct 1999 22:37:27 +0000 (22:37 +0000)]
Added first cut at progressive jpeg loading. Currently does not handle

999-10-29  Michael Fulbright  <drmike@redhat.com>

        * src/io-jpeg.c: Added first cut at progressive jpeg loading.
        Currently does not handle either progressive jpeg files (jpeg
        files with multiple scans at different quality settings), but
        I plan on adding this support soon. These are fairly rare in
        my experience, so it shouldn't slow people down too much.
        Grayscale jpegs also don't work but that should be easy to fix.

24 years agoAdded title to windows so you can identify progressive and file windows.
Michael Fulbright [Fri, 29 Oct 1999 22:32:47 +0000 (22:32 +0000)]
Added title to windows so you can identify progressive and file windows.

1999-10-29  Michael Fulbright  <drmike@redhat.com>

* src/testpixbuf.c: Added title to windows so you can identify
progressive and file windows.

24 years agoActually load the image handler when we determine the image type.
Michael Fulbright [Fri, 29 Oct 1999 19:27:51 +0000 (19:27 +0000)]
Actually load the image handler when we determine the image type.

1999-10-29  Michael Fulbright  <drmike@redhat.com>

        * src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Actually
        load the image handler when we determine the image type.

        * src/gdk-pixbuf-io.[ch] (gdk_pixbuf_load_module): Changed the
        previously static function load_image_handler () to
        a public function gdk_pixbuf_load_module (). It is needed in
        gdk-pixbuf-loader.c to load image handler modules.  This function
        is different from gdk_pixbuf_get_module (), which only returns
        a reference to the required handler, because it actually loads
        the handler into memory. Both actions should possibly be combined
        in a convenience function since one w/o the other doesn't seem to
        make much sense.

24 years agoNew function to render a portion of a pixbuf to a drawable. Ignores alpha
Federico Mena Quintero [Thu, 28 Oct 1999 23:25:02 +0000 (23:25 +0000)]
New function to render a portion of a pixbuf to a drawable. Ignores alpha

1999-10-28  Federico Mena Quintero  <federico@redhat.com>

* src/gdk-pixbuf-render.c (gdk_pixbuf_render_to_drawable): New
function to render a portion of a pixbuf to a drawable.  Ignores
alpha information and takes in a GC.
(gdk_pixbuf_render_to_drawable_alpha): New function to render a
portion of a pixbuf to a drawable.  It automatically creates a GC
and a clipping mask for alpha pixbufs.

24 years agodon't send a 0 length buffer.
Jonathan Blandford [Thu, 28 Oct 1999 19:30:11 +0000 (19:30 +0000)]
don't send a 0 length buffer.

1999-10-28  Jonathan Blandford  <jrb@redhat.com>

* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): don't send a
0 length buffer.

24 years agoturned convenience macros into convenience
Jonathan Blandford [Thu, 28 Oct 1999 19:00:02 +0000 (19:00 +0000)]
turned convenience macros into convenience

1999-10-28  Jonathan Blandford  <jrb@redhat.com>

* src/gdk-pixbuf.h: turned convenience macros into convenience

24 years ago*src/io-tiff.c (image_begin_load): Finished the incremental loader.
Jonathan Blandford [Thu, 28 Oct 1999 16:40:15 +0000 (16:40 +0000)]
*src/io-tiff.c (image_begin_load): Finished the incremental loader.

1999-10-28  Jonathan Blandford  <jrb@redhat.com>

*src/io-tiff.c (image_begin_load): Finished the incremental loader.

24 years agoSync to desktop - Federico
Arturo Espinosa [Thu, 28 Oct 1999 16:13:49 +0000 (16:13 +0000)]
Sync to desktop - Federico

24 years agostarted work on the tiff non-incremental loader.
Jonathan Blandford [Thu, 28 Oct 1999 14:46:46 +0000 (14:46 +0000)]
started work on the tiff non-incremental loader.

1999-10-28  Jonathan Blandford  <jrb@redhat.com>

* src/io-tiff.c (image_load_increment): started work on the tiff
non-incremental loader.

* src/io-gif.c (image_load_increment): started work on the gif
incremental loader.

* src/gdk-pixbuf-io.h: Changed ModuleType to GdkPixbufModule.

24 years agoSync to laptop - Federico
Arturo Espinosa [Thu, 28 Oct 1999 00:34:59 +0000 (00:34 +0000)]
Sync to laptop - Federico

24 years agoNew function to threshold a pixbuf's alpha channel into a bitmap.
Federico Mena Quintero [Wed, 27 Oct 1999 23:36:44 +0000 (23:36 +0000)]
New function to threshold a pixbuf's alpha channel into a bitmap.

1999-10-27  Federico Mena Quintero  <federico@redhat.com>

* src/gdk-pixbuf-render.c (gdk_pixbuf_render_threshold_alpha): New
function to threshold a pixbuf's alpha channel into a bitmap.

* src/gdk-pixbuf.c (gdk_pixbuf_new): Fixed so that it will
contemplate future extensions to ArtPixBuf's formats.

* src/io-png.c (png_info_callback): Use the new API of gdk_pixbuf_new().

* src/gdk-pixbuf.h (gdk_pixbuf_get_height): Added some convenience
macros to fetch the ArtPixBuf's fields.

24 years agoblank space cleanups
Havoc Pennington [Wed, 27 Oct 1999 20:16:37 +0000 (20:16 +0000)]
blank space cleanups

24 years agoDisplay the progressive load
Havoc Pennington [Wed, 27 Oct 1999 19:42:34 +0000 (19:42 +0000)]
Display the progressive load

1999-10-27  Havoc Pennington  <hp@pobox.com>

* src/testpixbuf.c (main): Display the progressive load

* src/io-png.c (setup_png_transformations): Break transformation
code into separate function
(png_info_callback): Use setup_png_transformations

24 years agoMake it build - Federico
Arturo Espinosa [Wed, 27 Oct 1999 19:15:37 +0000 (19:15 +0000)]
Make it build - Federico

24 years agoCheck properly whether the XPM module has already been loaded
Havoc Pennington [Wed, 27 Oct 1999 18:55:00 +0000 (18:55 +0000)]
Check properly whether the XPM module has already been loaded

1999-10-27  Havoc Pennington  <hp@pobox.com>

* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): Check
properly whether the XPM module has already been loaded
(gdk_pixbuf_new_from_file): Check properly if loader module
was already loaded (was checking if load symbol was present
in order to decide whether to re-load; should check module !=
NULL, then load != NULL)
(image_handler_load): Check in present working directory,
makes it easier to debug for now
(file_formats): This array initializer was seriously on crack,
was assigning a function pointer to a GModule*

* src/testpixbuf.c (main): Change type of pixbuf_loader to GdkPixbufLoader*

* src/io-png.c: Progressive loading stuff compiles, untested.

24 years agooops
Havoc Pennington [Wed, 27 Oct 1999 18:24:20 +0000 (18:24 +0000)]
oops

24 years agoFix typo that prevented compilation (gdk_pixbuf_loader_destroy): ditto
Havoc Pennington [Wed, 27 Oct 1999 18:24:05 +0000 (18:24 +0000)]
Fix typo that prevented compilation (gdk_pixbuf_loader_destroy): ditto

1999-10-27  Havoc Pennington  <hp@pobox.com>

* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_finalize):
Fix typo that prevented compilation
(gdk_pixbuf_loader_destroy): ditto

24 years agoReturn a GdkPixbufLoader, not a GtkObject.
Federico Mena Quintero [Wed, 27 Oct 1999 17:31:07 +0000 (17:31 +0000)]
Return a GdkPixbufLoader, not a GtkObject.

1999-10-27  Federico Mena Quintero  <federico@redhat.com>

* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_new): Return a
GdkPixbufLoader, not a GtkObject.
(gtk_marshal_NONE__INT_INT_INT_INT): Made static.
(gdk_pixbuf_loader_get_type): Documented.
(gdk_pixbuf_loader_class_init): Initialize the parent class
correctly.
(gdk_pixbuf_loader_destroy): Added sanity checks. Call the parent
class destroy function.
(gdk_pixbuf_loader_new): Documented.
(gdk_pixbuf_loader_finalize): Call the parent class finalize
function.
(gdk_pixbuf_loader_write): Use size_t for count.

24 years agoNew function to create a blank pixbuf.
Havoc Pennington [Wed, 27 Oct 1999 17:28:44 +0000 (17:28 +0000)]
New function to create a blank pixbuf.

1999-10-27  Havoc Pennington  <hp@pobox.com>

* src/gdk-pixbuf.c (gdk_pixbuf_new): New function to create a
blank pixbuf.

* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Check all
three progressive load funcs are non-NULL, rather than checking
begin_load three times. Also, check whether begin_load returns
NULL on failure.

24 years agoFixed logic so we only try to close loader if it wasn't previously closed.
Michael Fulbright [Wed, 27 Oct 1999 17:08:21 +0000 (17:08 +0000)]
Fixed logic so we only try to close loader if it wasn't previously closed.

1999-10-27  Michael Fulbright  <msf@redhat.com>

        * src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_destroy): Fixed
        logic so we only try to close loader if it wasn't previously closed.

24 years agochangelog
Michael Fulbright [Wed, 27 Oct 1999 17:08:10 +0000 (17:08 +0000)]
changelog

24 years agoIncremental loader tweaks.
Michael Fulbright [Wed, 27 Oct 1999 16:43:22 +0000 (16:43 +0000)]
Incremental loader tweaks.

Dr Mike <drmike@redhat.com>

24 years agogdk-pixbuf-loader.c: Fixed init function to properly initialize all
Michael Fulbright [Wed, 27 Oct 1999 16:41:44 +0000 (16:41 +0000)]
gdk-pixbuf-loader.c: Fixed init function to properly initialize all
structure members.

testpixbuf.c: Added call to close and destroy pixbuf loader properly.

24 years agoforgot this
Jonathan Blandford [Wed, 27 Oct 1999 15:44:41 +0000 (15:44 +0000)]
forgot this

24 years agoSync to laptop - Federico
Arturo Espinosa [Tue, 26 Oct 1999 23:29:59 +0000 (23:29 +0000)]
Sync to laptop - Federico

24 years agoload the vtable fully.
Jonathan Blandford [Tue, 26 Oct 1999 23:26:16 +0000 (23:26 +0000)]
load the vtable fully.

1999-10-26  Jonathan Blandford  <jrb@redhat.com>

* src/gdk-pixbuf-io.c (image_handler_load): load the vtable fully.

24 years agoFinished initial cut at the object.
Jonathan Blandford [Tue, 26 Oct 1999 23:19:49 +0000 (23:19 +0000)]
Finished initial cut at the object.

1999-10-26  Jonathan Blandford  <jrb@redhat.com>

* src/gdk-pixbuf-loader.c: Finished initial cut at the object.

24 years agofix signals
Havoc Pennington [Tue, 26 Oct 1999 22:04:29 +0000 (22:04 +0000)]
fix signals

1999-10-26  Havoc Pennington  <hp@pobox.com>

* src/gdk-pixbuf-loader.h: fix signals

* src/gdk-pixbuf-io.h: add new vtable fields

24 years agoAdded information about widget paths and pattern matching.
Owen Taylor [Tue, 26 Oct 1999 20:59:31 +0000 (20:59 +0000)]
Added information about widget paths and pattern matching.

Tue Oct 26 16:50:15 1999  Owen Taylor  <otaylor@redhat.com>

* gtk/tmpl/gtkrc.sgml: Added information about widget
paths and pattern matching.

24 years agomore work on the incremental loading
Jonathan Blandford [Tue, 26 Oct 1999 20:43:39 +0000 (20:43 +0000)]
more work on the incremental loading

24 years agoNew Class. Beginning of progrssive loading.
Jonathan Blandford [Tue, 26 Oct 1999 16:26:00 +0000 (16:26 +0000)]
New Class. Beginning of progrssive loading.

1999-10-26  Jonathan Blandford  <jrb@redhat.com>

* src/gdk-pixbuf-loader.h: New Class.  Beginning of progrssive
loading.

24 years agostarted work on the loader
Jonathan Blandford [Tue, 26 Oct 1999 03:42:14 +0000 (03:42 +0000)]
started work on the loader

24 years ago*** empty log message ***
Arturo Espinosa [Tue, 26 Oct 1999 02:19:43 +0000 (02:19 +0000)]
*** empty log message ***

24 years agoSync to laptop - Federico
Arturo Espinosa [Mon, 25 Oct 1999 23:43:04 +0000 (23:43 +0000)]
Sync to laptop - Federico

24 years agoPatch from Uwe Koloska <koloska@Rcs1.urz.tu-dresden.de> to fix a stupid
Federico Mena Quintero [Mon, 25 Oct 1999 19:26:13 +0000 (19:26 +0000)]
Patch from Uwe Koloska <koloska@Rcs1.urz.tu-dresden.de> to fix a stupid

1999-10-25  Federico Mena Quintero  <federico@redhat.com>

* configure.in (CFLAGS): Patch from Uwe Koloska
<koloska@Rcs1.urz.tu-dresden.de> to fix a stupid typo of mine.

24 years agoSync to laptop - Federico
Arturo Espinosa [Sat, 23 Oct 1999 00:06:10 +0000 (00:06 +0000)]
Sync to laptop - Federico

24 years agoClean up stupid increment-inside-array-dereference thing
Havoc Pennington [Fri, 22 Oct 1999 23:26:22 +0000 (23:26 +0000)]
Clean up stupid increment-inside-array-dereference thing

1999-10-22  Havoc Pennington  <hp@pobox.com>

* src/io-xpm.c (mem_buffer): Clean up stupid
increment-inside-array-dereference thing

* src/testpixbuf.c: Add XPM data tests.

* src/io-xpm.c: Make the XPM data buffer const, fix const
correctness throughout the code.

24 years agoExport gdk_pixbuf_new_from_xpm_data()
Havoc Pennington [Fri, 22 Oct 1999 21:06:36 +0000 (21:06 +0000)]
Export gdk_pixbuf_new_from_xpm_data()

1999-10-22  Havoc Pennington  <hp@pobox.com>

* src/gdk-pixbuf.h: Export gdk_pixbuf_new_from_xpm_data()

24 years agoExport this symbol for loading an XPM from memory.
Havoc Pennington [Fri, 22 Oct 1999 21:05:16 +0000 (21:05 +0000)]
Export this symbol for loading an XPM from memory.

1999-10-22  Havoc Pennington  <hp@pobox.com>

* src/io-xpm.c (image_load_xpm_data): Export this symbol for
loading an XPM from memory.

* src/gdk-pixbuf-io.c (gdk_pixbuf_new_from_xpm_data): New
function, loads pixbuf from xpm data
(image_handler_load): Add g_return_if_fail() to ensure the same
module isn't loaded twice. Add g_module_symbol() to scan for XPM
loader function.

24 years agoComment fixes - Federico
Arturo Espinosa [Fri, 22 Oct 1999 16:19:59 +0000 (16:19 +0000)]
Comment fixes - Federico