2017-10-09  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 2.0.4

2017-10-09  Damon Chaplin  <damon@gnome.org>

	* docs/goocanvas2-docs.sgml:
	* docs/Makefile.am:
	* configure.in: patch from Ross Gammon to support latest gtk-doc
	and add an index. #788436

2017-08-30  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 2.0.3

2017-08-30  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: If we receive a LEAVE_NOTIFY event with a mode of
	GDK_CROSSING_GRAB or GDK_CROSSING_GTK_GRAB we finish any passive grab
	we have underway. Hopefully fixes #711709

	* demo/mv-simple-demo.c (on_rect_button_press): 
	* demo/simple-demo.c (on_rect_button_press): show a dialog to test
	the grab bug fix above.

2017-08-29  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c:
	* docs/simple-canvas.xml: updated simple demo code.

2017-08-29  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_get_bounds): Call goo_canvas_update()
	if needed when automatic bounds is on. #785326

2016-12-30  Damon Chaplin  <damon@gnome.org>

	* configure.in: Use AM_GNU_GETTEXT instead of AM_GLIB_GNU_GETTEXT.
	Also added po/Makevars, copying from GTK+/gdk-pixbuf.

2016-12-16  Damon Chaplin  <damon@gnome.org>

	* autogen.sh: pinched from gdk-pixbuf.

	* src/Makefile.am (GooCanvas_2_0_gir_CFLAGS): added -I$(top_srcdir)/src
	so hopefully it builds OK outside srcdir. #735420

2016-12-16  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasimage.c (goo_canvas_image_paint): use cairo_clip() when
	calling cairo_paint_with_alpha() otherwise it gets messed up.
	(the flowers in the demo were sometimes painted incorrectly.)

2016-12-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c (goo_canvas_text_get_natural_extents):
	* src/goocanvas.c (goo_canvas_render):
	* src/goocanvas.c (goo_canvas_get_bounds): added (allow-none)
	annotations for introspection.

2016-12-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_get_bounds): patch from Simon Feltman
	to add (out) annotations for introspection. #732197

2016-12-15  Damon Chaplin  <damon@gnome.org>

	* configure.in:
	* src/Makefile.am : patch from Alberto Garcia to install introspection
	data to the correct place. #731839

2016-12-15  Damon Chaplin  <damon@gnome.org>

	* src/*.c: removed use of <!--PARAMETERS--> gtk-doc flag which isn't
	supported any more. #729984

2016-12-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c (goo_canvas_text_get_natural_extents): patch from
	Cédric Krier to add "(out)" annotations for introspection. #771317

2016-12-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c (goo_canvas_item_base_init): patch from
	Cédric Krier to specify the correct event types for the signals,
	in the introspection annotations. #771316

2016-12-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_allocate_child_widget): call
	gtk_widget_get_preferred_size() to stop GTK+ spewing warnings.

2016-12-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added background_color and background_color_set
	to GooCanvasPrivate struct.
	(goo_canvas_init, goo_canvas_get_property)
	(goo_canvas_set_property): add code to init/get/set background color
	property, as gtk_widget_override_background_color() and
	gtk_widget_modify_bg() are now deprecated.
	(goo_canvas_draw): use the background color property if it is set.

2016-12-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_configure_hadjustment)
	(goo_canvas_configure_vadjustment): rewrote these to get rid of
	deprecated calls to gtk_adjustment_changed/value_changed().

2016-12-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_button_press):
	(goo_canvas_button_release): use gdk_display_device_is_grabbed()
	instead of gdk_display_pointer_is_grabbed().
	(goo_canvas_pointer_grab):
	(goo_canvas_pointer_ungrab): use gdk_seat_grab/ungrab() instead of
	gdk_pointer_grab/ungrab(), but only with GTK+ >= 3.20.0 so we don't
	break compilation with older GTK+.
	(goo_canvas_keyboard_grab, goo_canvas_keyboard_ungrab): use
	gdk_seat_grab()/ungrab() instead of gdk_keyboard_grab/ungrab().

2016-12-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_create_cairo_context): removed use of
	gdk_cairo_create(). We always just use cairo_create() now.

2016-12-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_focus_check_is_best): change comment
	that confused gtk-doc.

2016-12-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_request_update): use
	gdk_threads_add_idle_full() instead of g_idle_add_full().
	(goo_canvas_idle_handler): remove GDK_THREADS_ENTER/LEAVE().
	I think this is what we are supposed to do now, but I'm not sure!

	* src/goocanvasitem.c (_goo_canvas_item_animate_internal): use
	gdk_threads_add_timeout() instead of g_timeout_add().
	(goo_canvas_item_animate_cb): remove GDK_THREADS_ENTER/LEAVE().

2016-12-13  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.c (goo_canvas_create_path): added (element-type)
	annotation.

	* src/Makefile.am: moved goocanvasprivate.h to _extra_sources so
	it doesn't get scanned for introspection.

2016-12-13  Damon Chaplin  <damon@gnome.org>

	* demo/*.c: remove deprecated GTK+ calls.

2013-11-03  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 2.0.2

2013-11-02  Damon Chaplin  <damon@gnome.org>

	* demo/*.c: use gtk_box_pack_start() rather than gtk_container_add(),
	for boxes, as the demos didn't appear correctly.

2013-11-02  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.c (goo_canvas_line_dash_set_offset): new function
	to set the offset.

2013-11-02  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (emit_pointer_event): use gdk_event_copy() rather
	than a struct copy, to copy the private stuff like device etc. #665637

2013-11-01  Damon Chaplin  <damon@gnome.org>

	* src/*.c:
	* demo/*.c: fixed a lot of warnings, mainly about deprecated stuff.

2013-11-01  Damon Chaplin  <damon@gnome.org>

	* .gitignore: added gtk-doc.m4

2013-11-01  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added doc about disabling mouse-wheel scrolling.
	#617900.

2013-11-01  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_adjustment_value_changed): disabled
	the code that handled "redraw-when-scrolled" and tried to optimise
	the drawing of static items. GTK+ 3.0 always redraws everything when
	a window is scrolled, so these aren't needed.

	We could possibly use GtkPixelCache or similar in future, to try to
	optimise scrolling.

2013-10-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (paint_static_items, goo_canvas_draw): another
	attempt at fixing the drawing code. Now it uses the transform & clip
	from the given cairo_t and the code seems to work OK for both the old
	GTK+ and GTK+ 3.10. Bug #700674.

2013-09-27  Damon Chaplin  <damon@gnome.org>

	* demo/demo-grabs.c (on_widget_draw): draw simple rects for the widgets
	as the old code using gtk_paint_box() doesn't seem to work any more.

2013-09-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.c: added introspection flags, so it now seems to
	work OK with python at least.

	* bindings/python/demo.py (setup_canvas): added line dash to a path.

	* demo/demo.c (setup_rectangles): added line dash to one rect.

2013-09-24  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c: 
	* src/goocanvasitemmodel.c: added a few (allow-none) flags. #677013.

2013-09-24  Damon Chaplin  <damon@gnome.org>

	* src/Makefile.am: added -lm to LIBADD. Bug #671766.

2013-08-20  Damon Chaplin  <damon@gnome.org>

	* src/*.h: fixed a few documentation issues.
	* docs/goocanvas2-docs.sgml: added annotation glossary.

2013-07-18  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (paint_static_items, goo_canvas_draw): tried to
	fix drawing code to work with new GTK+ 3.9 drawing code. I'm not sure
	it is 100% there yet, but the demo seems OK. Bug #700674.

2013-03-28  Murray Cumming  <murrayc@murrayc.com>

	Fix some introspection generation warnings.

	Avoid gobject-introspection warnings about missing : in 
	documentation comments.
	Part of bug #696736

2011-10-19  Jasper Lievisse Adriaanse <jasperla@gnome.org>

	* configure.in: Bump pygobject dependency to 2.90.4. Bug #661487.

2011-10-09  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 2.0.1

2011-10-09  Damon Chaplin  <damon@gnome.org>

	* src/goocanvaspolyline.[hc]: Added GOO_CANVAS_POLYLINE_ prefix to
	NUM_ARROW_POINTS to silence gir warnings.

	* src/goocanvas.c (goo_canvas_render): added example code for printing.

	* src/goocanvasitem.c: added (element-type GooCanvas.CanvasItem)
	annotation to get_items_at().

2011-10-07  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c (goo_canvas_item_get_transform)
	(goo_canvas_item_get_transform_for_child): use (out) annotation for the
	transformation matrix. Though it won't work at the moment as there is
	currently no introspection support for cairo_matrix_t. (See #651043)
	Also don't (skip) the return value.

	* src/goocanvasgrid.c (goo_canvas_grid_model_new): removed the (skip)
	annotation on the varargs - none of the other new() functions have it.

2011-09-26  Murray Cumming  <murrayc@murrayc.com>

  GooCanvasImage: Correct the image appearance when using non-pixel units.
    
	* src/goocanvasimage.c: (goo_canvas_image_convert_pixbuf_sizes):
	Store the scale factor so we can use it later when drawing the image.
	(goo_canvas_image_new): Move the call to
	goo_canvas_image_convert_pixbuf_sizes() until after adding the item,
	so that it can get the canvas, instead of passing the parent item
	instead. We need to pass the actual item so we can store the
	scale factor.
	(goo_canvas_image_paint): Use the scale factor.
	Bug #657592
	
2011-09-24  Krzesimir Nowak  <qdlacz@gmail.com>

	Add GdkRGBA properties. #651125.

	* src/goocanvasutils.c: Added helper functions for GdkRGBA.
	* src/goocanvasprivate: Ditto.
	* src/goocanvas.c: Added GdkRGBA version color properties.
	* src/goocanvasgrid.c: Ditto.
	* src/goocanvasitemsimple.c: Ditto.

	(committed by Damon with a few minor changes)

2011-09-07  Murray Cumming  <murrayc@murrayc.com>

	GooCanvasImage: Correct the size when using units other than pixels.
	#657592.

	* src/goocanvas.[h|c]: Added goo_canvas_convert_units_to_pixels() and
	goo_canvas_convert_units_from_pixels(), which ignore the scale and
	ignore the bounds.
	Added a static units_to_pixels_ratios() function shared by these new
	functions and the existing recalculate_scales() function.
	* src/goocanvasimage.c: Added static
	goo_canvas_image_convert_pixbuf_sizes()	function, used by
	goo_canvas_image_new() and goo_canvas_image_set_common_property() to
	get the true size of the image in the units that are used.

	(committed by Damon with a few minor changes)

2011-09-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.h: added get_requested_area_for_width() method.
	get_requested_height() didn't work for aligned text items as the
	position of the item moves horizontally due to the allocated width,
	and this wasn't being taken into account in the layout code.

	* src/goocanvastable.c (goo_canvas_table_update_requested_heights): use
	get_requested_area_for_width() if available.

	* src/goocanvastext.c (goo_canvas_text_get_requested_area_for_width): 
	use this instead of get_requested_height() so aligned text should work.

	* demo/mv-demo-table.c: 
	* demo/demo-table.c: added tests for the above.

2011-08-17  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c (goo_canvas_text_get_requested_height): when
	the height property is set make sure the bounds are still calculated.
	Fixes redraw problems. (The way layout is done is too confusing.)
	#656391

2011-08-11  Murray Cumming  <murrayc.com>

	GooCanvasTable: Warn if setting child properties on a non-child.

	* src/goocanvastable.c (goo_canvas_table_set_child_property):
	If the child wasn't added yet then issue a g_warning(). This gives 
	the programmer a clue.

2011-08-11  Murray Cumming  <murrayc@murrayc.com>

	Table demo: Correct the box packing of the scrolled windows.

	* demo/mv-table-demo.c (main):
	* demo/table-demo.c (main): Pack the scrolled windows with expand=true.
	I wonder when this broke and why.

2011-02-27  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 2.0.0

2011-02-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_set_property): use gtk_widget_modify_bg()
	instead of gtk_widget_modify_base() to change the background color.

2011-02-14  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 1.90.3

2011-02-11  Damon Chaplin  <damon@gnome.org>

	* docs/Makefile.am: set DOC_MODULE to goocanvas2 to make it parallel
	installable with 1.x. Also renamed several of the files from
	goocanvasXXX to goocanvas2XXX.

2011-01-10  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.h (enum): added docs for GooCanvasAnchorType.

2011-01-10  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasimage.c: added "alpha" property. Patch from xapantu
	plus a few changes.

	* demo/mv-demo.c:
	* demo/demo.c: added test for the above for the flowers.

2010-11-03  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 1.90.2

2010-11-03  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added goo_canvas_get_preferred_width() and
	goo_canvas_get_preferred_height() and removed goo_canvas_size_request().

	* configure.in: depend on GTK+ 2.91.3 for the above.

2010-10-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: switched the get_property/set_property code and
	added "hscroll-policy" and "vscroll-policy".

2010-10-27  Murray Cumming  <murrayc@murrayc.com>

	Fix the build with GTK+ 2.91.2, using GtkScrollable.

	* src/goocanvas.[h|c] (goo_canvas_class_init): Implemeent the GtkScrollable
	interface, overriding the hadjustment and vadjustment properties, instead
	of implementing the set_scroll_adjustments vfunc, which was removed from
	GtkWidget. Likewise remove the set_scroll_adjustments_signal because it
	is no longer needed.
	(goo_canvas_get_property), (goo_canvas_set_property): Handle the new
	properties.
	(goo_canvas_set_hadjustment), (goo_canvas_set_vadjustment): Replace
	the old goo_canvas_set_adjustments() function with individual functions
	because they can be set separately, and to have code that is as similar as
	possible to, for instance, GtkTextView.

2010-10-24  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (redraw_static_items_at_position)
	(goo_canvas_adjustment_value_changed): comment out the calls to
	gdk_window_process_updates() as they cause flickering when zooming.
	I'm not sure if we should use something else instead.

2010-10-24  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 1.90.1

2010-10-24  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: updated the drawing code to work with GTK+ 3.
	It seems to work now, but it still flickers when zooming in & out,
	since we can't use our old trick of mapping a temporary window with
	no background over it while changing the scale.

2010-10-01  Damon Chaplin  <damon@gnome.org>

	* demo/*.c
	* src/goocanvas.c (goo_canvas_draw): applied patch from Murray to
	compile with latest GTK+, with minor changes.
	Note that drawing doesn't work properly at present.

2010-09-02  Murray Cumming  <murrayc@murrayc.com>

	Fix build with latest GTK+, which has no GdkGC.

	* src/goocanvas.c (goo_canvas_expose_event): When clearing the background,
  use gdk_cairo_set_source_color() and GtkWidget::base instead of
  gdk_draw_rectangle() and GtkWidget::base_gc. Thanks to Benjamin Otte for
  this code.

2010-07-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_adjustment_value_changed): fixed call
	to redraw_static_items_at_position() - was using hadjustment twice.

2010-07-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_configure_hadjustment)
	(goo_canvas_configure_vadjustment): freeze updates until finished,
	and fixed bug setting hadjustment page size.
	(goo_canvas_focus_in, goo_canvas_focus_out): removed grab_focus()
	calls that replaced "GTK_WIDGET_SET/UNSET_FLAGS (widget, GTK_HAS_FOCUS)"
	I don't think the macros should have been there anyway.

	* src/goocanvasatk.c (goo_canvas_item_accessible_get_extents): tidied
	up a little - get canvas window once and reuse.

2010-07-25  Murray Cumming  <murrayc@murrayc.com>

	Fix the build with the latest GTK+ 3.0 API.

	* demo/demo-focus.c (create_focus_page):
	* demo/demo-grabs.c (on_widget_expose), (on_widget_button_press):
	* demo/demo-large-items.c (zoom_changed):
	* demo/demo.c (zoom_changed), (zoom_x_changed), (zoom_y_changed),
	(anchor_toggled):
	* demo/mv-demo-focus.c (create_focus_page):
	* demo/mv-demo-grabs.c (on_widget_expose),
	(on_widget_button_press):
	* demo/mv-demo.c (zoom_changed), (anchor_toggled):
	* demo/units-demo.c (zoom_changed):
	* demo/widgets-demo.c (main):
	* src/goocanvas.c (goo_canvas_init), (goo_canvas_realize),
	(goo_canvas_map), (goo_canvas_style_set),
	(goo_canvas_configure_hadjustment),
	(goo_canvas_configure_vadjustment), (reconfigure_canvas),
	(goo_canvas_size_allocate), (goo_canvas_adjustment_value_changed),
	(goo_canvas_scroll_to), (goo_canvas_scroll_to_item),
	(goo_canvas_set_scale_internal), (paint_static_items),
	(goo_canvas_expose_event), (goo_canvas_scroll),
	(goo_canvas_focus_in), (goo_canvas_focus_out),
	(goo_canvas_convert_from_window_pixels),
	(goo_canvas_convert_to_static_item_space),
	(goo_canvas_get_start_bounds), (goo_canvas_focus):
	* src/goocanvasatk.c (goo_canvas_item_accessible_get_item_extents),
	(goo_canvas_item_accessible_is_item_in_window),
	(goo_canvas_item_accessible_get_extents),
	(goo_canvas_accessible_get_n_children),
	(goo_canvas_accessible_ref_child): Replace use of direct struct field access
	in GtkWidget, GtkWindow, and GtkAdjustment, with use of the new get/set
	functions, to fix the build with the latest GTK+ 3.0 API.

2010-06-30  Damon Chaplin  <damon@gnome.org>

	* docs: added empty internal subset "[]" to the DOCTYPEs to keep
	gtk-doc happy.

	* src/goocanvas.c (goo_canvas_expose_event): do a cairo_save()/restore()
	around painting the main items, so the static items don't get clipped.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_set_property):
	handle setting "clip-path" to NULL to reset it.

	* src/goocanvastable.c: try to handle RTL direction better.

	* src/goocanvasgroup.c (goo_canvas_group_paint): use the scale
	argument rather than the canvas scale.

	* src/goocanvas.c: added "before-initial-expose" flag which we use
	to ignore any redraw requests before the initial expose (since we
	know the entire canvas needs redrawing anyway). This speeds up the
	creation of lots of items, e.g. scalability-demo.

	* demo/Makefile.am (mv_demo_LDADD, demo_LDADD): added -lm to compile.

	* demo/mv-scalability-demo.c:
	* demo/scalability-demo.c: updated to compare with the new-api code.

2010-06-21  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 1.90.0

2010-06-21  Damon Chaplin  <damon@gnome.org>

	Got rid of all the GTK_CHECK_VERSION stuff as we depend on 3.0 now.

2010-06-11  Murray Cumming  <murrayc@murrayc.com>

	Update source code for GTK+ 3.

	* demo/Makefile.am: Fix a typo.
	* demo/demo-grabs.c (create_fixed):
	* demo/mv-demo-grabs.c (create_fixed):
	* src/goocanvas.c (goo_canvas_grab_focus), (goo_canvas_focus):
	* src/goocanvasatk.c (goo_canvas_item_accessible_grab_focus),
	(goo_canvas_item_accessible_ref_state_set):
	Replace use of gtk_fixed_set_has_window() with gtk_widget_set_has_window().
	Replace use of GTK_WIDGET_CAN_FOCUS() with gtk_widget_get_can_focus().
	Replace use of GTK_WIDGET_TOPLEVEL() with gtk_widget_is_toplevel().

	This seems to all work fine.

2010-06-11  Murray Cumming  <murrayc@murrayc.com>

	Use GTK+ 3 instead of GTK+ 2.

	* goocanvas.pc.in: Rename to goocanvas-2.0.pc.in:
	* configure.in
	* Makefile.am
	* demo/Makefile.am:  Depend on GTK+ 3 instead of GTK+ 2.
	Change the library name from libgoocanvas to libgoocanvas-2.0.
	Install the headers in <prefix>/include/goocanvas-2.0 instead of
	<prefix>/include/goocanvas-1.0.

This is the master branch for goocanvas-2.0, using GTK+ 3
See also the goocanvas-1.0 branch.

2010-05-10  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c: improve docs for "width" and "height" properties.
	#595164.

2010-05-10  Damon Chaplin  <damon@gnome.org>

	* src/goocanvaspolyline.c: don't use the reconfigure_arrows flag
	any more - always reconfigure the arrows during an update. This
	avoids a bug where the line width changes but the arrows don't get
	reconfigured, since the line width is an inherited property and
	reconfigure_arrows wasn't being set when it changed.

2010-05-07  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasstyle.c (goo_canvas_style_set_stroke_options): handle
	a NULL dash setting. #617960.

2010-04-28  Luis Medinas  <lmedinas@gnome.org>

	* applied small patch to compile with GTK+ 3.0. #615435.

2009-08-20  Murray Cumming  <murrayc@murrayc.com>

	* docs/architecture.xml: Fixed documenation typo. Bug #591983.
	(Martin Olsson)

2009-06-29  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.15

2009-06-29  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasimage.c: added "scale-to-fit" property, which scales
	the image to fit the "width" and "height" settings.

	* demo/units-demo.c:
	* demo/mv-demo.c (plant_flower):
	* demo/demo.c (plant_flower): test "scale-to-fit" property.

2009-05-07  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasatk.c: fixed GooCanvasWidgetAccessible's G_DEFINE_TYPE
	call, using GOO_TYPE_CANVAS_ITEM_ACCESSIBLE as parent class.
	This avoids a hang when using GooCanvasWidget with accessibility support
	turned on. #581596.

2009-03-16  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c: changed docs referring to "root_x" and "root_y"
	fields of event structs to "x_root" and "y_root".

2009-03-15  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.14

2009-03-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_query_tooltip): new function to propagate the "query-tooltip"
	signal up through the canvas items.

	* src/goocanvasitem.[hc]: added "query-tooltip" signal and "tooltip" property.
	* src/goocanvasitemmodel.c: added "tooltip" property.

	* src/goocanvasitemsimple.c: added "tooltip" property and query_tooltip signal handler.

	* configure.in: added dependancy on GTK+ 2.12 for tooltips.

	* demo/mv-demo.c:
	* demo/demo.c: added tests for tooltips.

2009-03-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasgrid.c: improved section docs.

	* src/goocanvas.c: improved a few function docs.

2009-03-15  Damon Chaplin  <damon@gnome.org>

	* docs/coordinates.xml:
	* docs/architecture.xml:
	* docs/creating-items.xml:
	* src/goocanvasitemsimple.c: use the terms "canvas coordinate space" or
	"canvas space" rather than "device space" which is a bit misleading.

	* src/goocanvasitem.c: clarify the docs for the mouse position fields
	of the event structs of the signals. #573458

2009-03-15  Gian Mario Tagliaretti  <gianmt@gnome.org>
	(Committed by Damon with a few changes.)

	* src/goocanvasitem.h (struct _GooCanvasItemIface): added
	scroll_event() signals on items.

	* src/goocanvasitem.c: implemented "scroll_event" signals on items.

	* src/goocanvas.c: implemented "scroll_event" signals on items.

	* demo/demo.c: added test for above. #566110

2009-02-17  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_convert_from_item_space): changed the
	order of the arguments to cairo_matrix_multiply(). This was broken
	for everything except translations. #572180

2009-01-12  Armin Burgmeier  <armin@openismus.com>

	* src/goocanvasellipse.c:
	* src/goocanvaspolyline.c:
	* src/goocanvasgroup.c:
	* src/goocanvaspath.c:
	* src/goocanvaswidget.c:
	* src/goocanvastext.c:
	* src/goocanvastable.c: Added "x", "y", "width" and "height"
	properties where they do not exist already. GooCanvasGroup clips its
	children if they are out of the specified area, and GooCanvasText
	clips the text. It is possible to turn off the clipping by using -1
	for width or height, respectively, which is the default.

	* demo/generic-position-demo.c:
	* demo/mv-generic-position-demo.c:
	* demo/Makefile.am: Added a demo showing how this can be used to
	generically resize items using drag and drop.

	(Patch from bug #555097 committed with quite a few changes by Damon)

2008-12-29  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasgrid.c (calculate_start_position)
	(paint_vertical_lines, paint_horizontal_lines): handle step <= 0.0.
	It should now draw a single line at the start position.
	(based on patch from Murray Cumming) #563487.

2008-12-29  Jonathon Jongsma  <jonathon@quotidian.org>

	* demo/Makefile.am: Fix building demos when builddir != srcdir.
	goocanvasenumtypes.h is generated in the build dir and not the src dir
	so we must also add the build dir to the INCLUDES. #561401.

2008-11-30  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.13

2008-11-19  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.c (goo_canvas_item_model_stop_animation):
	* src/goocanvasitem.c (goo_canvas_item_animate_cb)
	(goo_canvas_item_stop_animation): remove the current animation data
	before emitting "animation-finished", so signal handlers can start a
	new animation.

2008-11-17  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasgrid.c: added "show-horz-grid-lines" and
	"show-vert-grid-lines" properties, to turn off horz/vert grid lines.

2008-11-17  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (redraw_static_items_at_position): redraw each
	group of static items separately, to stop GTK+ merging the redraw
	rect into one massive one.

	* demo/mv-demo.c (create_static_model):
	* demo/demo.c (setup_static_items): use a group for all the static
	items.

2008-11-17  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added "redraw-when-scrolled" boolean property,
	which makes the canvas redraw the entire window when scrolled. This
	is useful for static items to reduce flicker, but is slower.
	(goo_canvas_adjustment_value_changed): map/unmap the temporary window
	to implement "redraw-when-scrolled".

2008-11-04  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.h: added typedefs for wrappers of cairo types
	(but ifdef'd out so not usable), so we can add docs for them.
	And added the docs, pointing to the cairo docs.

	* src/goocanvasutils.c (goo_canvas_line_dash_get_type): changed the
	registered type	name from GooCairoLineDash to GooCanvasLineDash so the
	docs work. The struct was already called GooCanvasLineDash.

2008-11-03  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (emit_pointer_event): handle NULL target_item.

	* src/goocanvaswidget.c: note that widgets can't be static.

	* README:
	* docs/overview.xml: mention static items and the grid item.

2008-11-03  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_scroll_to_item): just return if the
	item is static, as we can't scroll to a static item.
	(emit_pointer_event): convert the pointer position to static item space
	for static items.

	* src/goocanvasatk.c (goo_canvas_item_accessible_get_item_extents):
	handle static items - don't need to convert to pixels within the
	window as they are already like that.

2008-11-03  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasgrid.[hc]: new grid item.

	* demo/mv-demo.c (setup_grids):
	* demo/demo.c (setup_grids): added a grid.

	* src/Makefile.am: added grid.

	* src/goocanvas.[hc] (goo_canvas_convert_bounds_to_item_space): new
	function to convert a bounding box in device space to a bounding box
	in item space. Useful in paint() methods to optimize painting.

	* src/goocanvasutils.c (goo_canvas_convert_colors_to_rgba)
	(goo_canvas_get_rgba_value_from_pattern)
	(goo_canvas_set_style_property_from_pattern)
	(goo_canvas_create_pattern_from_color_value)
	(goo_canvas_create_pattern_from_rgba_value)
	(goo_canvas_create_pattern_from_pixbuf_value): new private utility
	functions taken out of goocanvasitemsimple.c code.

	* src/goocanvasitemsimple.c: use above utility functions.

2008-10-31  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.h (struct _GooCanvasItemModelIface):
	* src/goocanvasitem.h (struct _GooCanvasItemIface): added
	animation_finished() signals.

	* src/goocanvasitemmodel.c:
	* src/goocanvasitem.c: implemented "animation-finished" signals.

	* demo/mv-demo-animation.c:
	* demo/demo-animation.c: added test for above.

2008-10-31  Damon Chaplin  <damon@gnome.org>

	* demo/mv-demo-arrowhead.c (on_button_press):
	* demo/demo-arrowhead.c (on_button_press):
	* demo/mv-demo.c (on_button_press):
	* demo/demo.c (on_button_press): use GDK_POINTER_MOTION_HINT_MASK for
	the pointer grab, so we don't get too many events.

2008-10-31  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.h:
	(goo_canvas_get_static_root_item): new function to get static root item.
	(goo_canvas_set_static_root_item): new function to set static root item.
	(goo_canvas_get_static_root_item_model): new function to get static
	root item model.
	(goo_canvas_set_static_root_item_model): new function to set static
	root item model.
	(goo_canvas_request_item_redraw): new function to request a redraw of
	an item either in device space or in the static item space.

	* src/goocanvasitem.h (struct _GooCanvasItemIface): added
	get_is_static() and set_is_static() interface methods.

	* src/goocanvasitemsimple.h (struct _GooCanvasItemSimpleData): removed
	one bit from cache_setting and used it for is_static. Hopefully that
	won't break binary compatibility.

	* src/goocanvas.c (struct _GooCanvasPrivate): added new private struct
	with static root item & model and current window position.
	(goo_canvas_init): init private struct and create static root item.
	(goo_canvas_dispose): free static root item & model.
	(goo_canvas_update_internal): update static items.
	(goo_canvas_get_item_at): check static items as well.
	(goo_canvas_get_items_at): check static items as well.
	(goo_canvas_realize): store original window position in private struct.
	(request_static_redraw): new function to request a redraw in static
	coordinate space.
	(request_all_static_redraws): new function to request a redraw of all
	static items.
	(paint_static_items): new function to paint the static items.
	(goo_canvas_expose_event): call paint_static_items().
	(goo_canvas_convert_to_static_item_space): new function to convert
	coords to static space.
	(goo_canvas_adjustment_value_changed): redraw the static items before
	the window is scrolled, but in their new position. We do this so we
	don't see them being dragged along when scrolling.
	Redraw them again after the window has been moved. Hopefully we can
	optimize this a bit in future to avoid the flickering.

	* src/goocanvasitem.c (goo_canvas_item_get_is_static)
	(goo_canvas_item_set_is_static): new functions to call the interface
	methods if they	are implemented. The default behavior allows old code
	to work without crashing (but old items can't be static).

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_get_is_static)
	(goo_canvas_item_simple_set_is_static): implemented new interface
	functions - just get/set the bit-flag.

	* src/goocanvasgroup.c (goo_canvas_group_add_child): call
	set_is_static() on new child.

	* src/goocanvasgroup.c (goo_canvas_group_set_is_static): implement new
	interface method, calling set_is_static() for all children if changed.

	* src/goocanvasitemsimple.c:
	* src/goocanvasgroup.c:
	* src/goocanvastable.c: use new goo_canvas_request_item_redraw()
	function so static items are redrawn correctly.

	* demo/mv-demo.c (create_static_model):
	* demo/demo.c (setup_static_items): added some static items to test.
	Note that dragging around when scale != 1.0 is weird as the coord
	spaces are different, but is expected.

2008-10-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvaspolyline.c (goo_canvas_polyline_is_item_at): only check
	the fill if the polyline path is closed. Otherwise if we call
	cairo_in_fill() it will automatically close the path which is not what
	we want.

	* src/goocanvaspath.c (goo_canvas_path_is_item_at): only check the fill
	if a fill color/pattern has been set, for similar reasons.

2008-10-12  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c (goo_canvas_text_create_layout): fixed calculation
	of text bounds.

2008-10-12  Armin Burgmeier  <armin@openismus.com>

	* src/goocanvastable.c (goo_canvas_table_get_requested_area)
	(goo_canvas_table_allocate_area): Request redraw of the table's
	bounds, as GooCanvasItemSimple does, to fix incorrect drawing when
	changing the table's width or height.

	(goo_canvas_table_paint): Keep clipping to the allocated size when
	drawing the children, so they are not rendered outside the allocated
	area when the table is shrunk. #555093

2008-10-11  Damon Chaplin  <damon@gnome.org>

	* docs/coordinates.xml: added section on Cairo limits.

	* README: updated home page URL.

2008-10-05  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c (goo_canvas_text_create_layout): don't turn off
	font hinting. I don't think it has any effect on text layout so we can
	safely leave it on. Small text should be easier to read, as well as
	non-antialiased text. Though it does seem to sometimes produce slightly
	odd results for rotated text (see the 8-bit text in the demo).

2008-09-21  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.12

2008-09-21  Damon Chaplin  <damon@gnome.org>

	* configure.in: renamed LT_CURRENT, LT_AGE & LT_REVISION to CURRENT,
	AGE & REVISION to avoid problems with libtool 2.2. #552725.

2008-09-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_get_requested_area)
	(goo_canvas_item_simple_allocate_area): request redraws of the old and
	new item bounds.

2008-09-09  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.11

2008-09-02  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastable.c (goo_canvas_table_paint): use the item's
	fill and stroke colors for the table background and grid.

	* demo/table-demo.c: test the above.

2008-08-17  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasgroup.c (goo_canvas_group_add_child)
	(goo_canvas_group_remove_child): emit the "children_changed" ATK
	signal, if ATK is enabled. This needs testing.

2008-08-17  Damon Chaplin  <damon@gnome.org>

	* src/Makefile.am (INCLUDES):
	* demo/Makefile.am (INCLUDES): get rid of the XXX_DISABLE_DEPRECATED
	flags so we don't break compilation when GTK+ deprecates stuff. #548086

2008-06-24  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasgroup.c (goo_canvas_group_get_child)
	(goo_canvas_group_model_get_child): return NULL if child_num is out
	of range. #535150

	* src/goocanvasitemmodel.c (goo_canvas_item_model_get_child):
	* src/goocanvasitem.c (goo_canvas_item_get_child): updated docs.

2008-06-24  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.h: removed comma at end of GooCanvasItemVisibility
	enum. Patch from Hubert Figuiere. #539844

2008-06-22  Kjartan Maraas  <kmaraas@gnome.org>

	* demo/demo-animation.c: (create_animation_page):
	* demo/demo-arrowhead.c: (create_drag_box):
	* demo/demo-clipping.c: (setup_canvas):
	* demo/demo-events.c: (setup_item_signals):
	* demo/demo-features.c: (create_canvas_features):
	* demo/demo-fifteen.c: (setup_item_signals),
	(create_canvas_fifteen):
	* demo/demo-focus.c: (create_focus_box):
	* demo/demo-grabs.c: (create_fixed), (setup_item_signals):
	* demo/demo-large-items.c: (create_large_items_page):
	* demo/demo-paths.c: (create_paths_page):
	* demo/demo-table.c: (create_demo_item), (create_demo_table),
	(create_width_for_height_table):
	* demo/demo.c: (setup_item_signals), (create_canvas_primitives),
	(setup_canvas), (create_window):
	* demo/mv-demo-animation.c: (create_animation_page):
	* demo/mv-demo-arrowhead.c: (on_item_created),
	(create_canvas_arrowhead):
	* demo/mv-demo-clipping.c: (setup_canvas):
	* demo/mv-demo-events.c: (on_item_created), (create_events_page):
	* demo/mv-demo-features.c: (on_item_created),
	(create_canvas_features):
	* demo/mv-demo-fifteen.c: (on_item_created),
	(create_canvas_fifteen):
	* demo/mv-demo-focus.c: (on_item_created), (create_focus_page):
	* demo/mv-demo-grabs.c: (create_fixed), (on_item_created),
	(create_canvas):
	* demo/mv-demo-paths.c: (create_paths_page):
	* demo/mv-demo-table.c: (create_demo_item), (create_demo_table),
	(create_width_for_height_table):
	* demo/mv-demo.c: (on_item_created), (create_canvas_primitives),
	(create_window):
	* demo/mv-scalability-demo.c: (setup_canvas), (create_canvas),
	(main):
	* demo/mv-simple-demo.c: (main):
	* demo/mv-table-demo.c: (main):
	* demo/scalability-demo.c: (setup_canvas), (create_canvas), (main):
	* demo/simple-demo.c: (main):
	* demo/table-demo.c: (main):
	* demo/units-demo.c: (setup_canvas), (create_canvas), (main):
	* demo/widgets-demo.c: (create_focus_box), (main):
	Use G_CALLBACK instead of the deprecated GtkSignal stuff.

2008-05-18  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasatk.c (goo_canvas_widget_accessible_new): made static.

2008-05-18  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_expose_event): when clipping, clip to
	the intersection of the canvas bounds and the expose bounds, to avoid
	problems with cairo's coordinate limits. (This was apparent in the
	scalability demo - it wasn't redrawing properly at the bottom of the
	canvas.)

2008-05-09  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.h:
	* src/goocanvasitem.h: removed _CLASS macros since they are interfaces.
	(From Masatake YAMATO).

2008-05-09  Damon Chaplin  <damon@gnome.org>

	* demo/widgets-demo.c (remove_widget_clicked): use g_list_delete_link
	to update the GList, to avoid a crash.

2008-04-27  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.10

2008-04-06  Armin Burgmeier  <armin@openismus.com>

	* src/goocanvastable.c: Implemented grid lines between table items by
	adding "horz-grid-line-width", "vert-grid-line-width",
	"x-border-spacing" and "y-border-spacing" properties.
	(Patch applied by Damon with a few changes.)

	* demo/mv-table-demo.c:
	* demo/table-demo.c: added tests for the gridlines.

2008-04-04  Damon Chaplin  <damon@gnome.org>

	* docs/coordinates.xml:
	* docs/architecture.xml: new sections.

	* docs/creating-items.xml: rewritten.

	* src/goocanvasitemmodel.c (goo_canvas_item_model_set_parent):
	* src/goocanvasitem.c (goo_canvas_item_set_parent): note in the docs
	that the "parent" property can be used to set the parent, but that
	these functions are only for implementing new items (a bit confusing).

	* src/goocanvasitem.c (goo_canvas_item_is_visible): fixed a bug
	where if the item doesn't support the method it would just return
	TRUE, but it should also check the ancestors are visible.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_set_property)
	(goo_canvas_item_model_simple_set_property): use the _remove()
	functions instead of the find_child()/remove_child() code.

2008-03-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c (goo_canvas_item_get_simple_transform):
	* src/goocanvasitemmodel.c (goo_canvas_item_model_get_simple_transform):
	new functions to do opposite of set_simple_transform().

	* demo/mv-demo.c (test_simple_transforms):
	* demo/demo.c (test_simple_transforms): added some test code for above.

2008-03-27  Damon Chaplin  <damon@gnome.org>

	* docs/wysiwyg.xml: new section to document WYSIWYG stuff.

2008-03-23  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.c: made "stroke-color-rgba" and
	"fill-color-rgba" properties read/write.

	* configure.in (pkg_modules): depend on cairo >= 1.4.0 for
	cairo_pattern_get_rgba().

	* demo/demo.c (test_color_properties): added some test code.

2008-02-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.c: added default implementations for the
	simple_update/paint/get_item_at() virtual functions that call
	simple_create_path(). These make it easier for language bindings.
	Based on patch from Jonathon Jongsma.

2008-02-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c (goo_canvas_text_get_natural_extents): added
	function to get the natural extents of the text.

2007-11-23  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastable.c (goo_canvas_table_size_allocate_pass1): when
	shrinking, make sure the extra value is always decreasing, so we don't
	get into an infinite loop.

2007-11-18  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added support for "clear-background" property,
	patch from Grahame Bowland.

2007-11-18  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c (goo_canvas_item_get_child_property)
	(goo_canvas_item_set_child_property):
	* src/goocanvasitemmodel.c (goo_canvas_item_model_get_child_property)
	(goo_canvas_item_model_set_child_property): new functions to get/set
	individual child properties (to help language bindings).

	* demo/demo-table.c (create_demo_item):
	* demo/mv-demo-table.c (create_demo_item): test the above.

	* src/goocanvasitem.c:
	* src/goocanvasitemmodel.c: fixed some docs that wrongly say functions
	are for implementing new items only.

2007-11-13  Murray Cumming  <murrayc@murrayc.com>

	* src/goocanvasitem.c: goo_canvas_item_add_child():
	* src/goocanvasitemmodel.c: goo_canvas_item_model_add_child():
	Add a debugging check to make sure the child is not the same as the
	parent, preventing an endless loop.

2007-11-13  Murray Cumming  <murrayc@murrayc.com>

	* src/goocanvasimage.c: goo_canvas_image_set_common_property():
	Support setting the pixbuf property to NULL.

2007-11-13  Murray Cumming  <murrayc@murrayc.com>

	* src/goocanvas.c: goo_canvas_render(): Call goo_canvas_update()
	if necessary, as suggested by Damon, to fix a crash when rendering
	a GooCanvasTable that has never been shown on screen.

2007-08-13  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.9

2007-08-13  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c: added "wrap" property (patch from James
	Dietrich).

	* src/goocanvastable.c: use static goo_canvas_table_parent_iface
	and goo_canvas_table_model_parent_iface variables which are set in
	the class_init functions. That makes it much easier to call the
	GooCanvasGroup methods when needed.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_set_parent): call
	goo_canvas_item_set_canvas() so items can do whatever is needed
	(e.g. groups can pass the canvas on to children).

	* src/goocanvasitem.c (goo_canvas_item_request_update): don't use
	return here as it is a void function.

	* src/goocanvastable.c (goo_canvas_table_remove_child):
	* src/goocanvasgroup.c (goo_canvas_group_remove_child): check the
	child_num arg is valid.

2007-06-20  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added "automatic-bounds", "bounds-from-origin" and
	"bounds-padding" properties, used to calculate the canvas bounds
	automatically.

	* demo/demo.c (change_bounds_clicked):
	* demo/mv-demo.c (change_bounds_clicked): test the above.

2007-06-19  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added "integer-layout" boolean property, to specify
	that all layout in the canvas (i.e. in GooCanvasTable) is done to the
	nearest integer.

	* src/goocanvastable.c: implement integer layout.

	* demo/table-demo.c:
	* demo/mv-table-demo.c: tests for integer layout.

2007-05-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added "scale-x" and "scale-y" properties to set
	the horizontal and vertical scale independently. Note that if items
	use the visibility threshold setting it will compare it to the minimum
	of scale_x and scale_y.

	* demo/demo.c: added "Scale X" and "Scale Y" spinbuttons.

2007-05-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_style_set, goo_canvas_realize): reset
	the window backgrounds to nothing, to avoid flicker when scrolling.
	(This happened due to the delay between X clearing the window and
	GooCanvas repainting it.)
	(goo_canvas_expose_event): clear the background ourselves here.

2007-05-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_set_property)
	(goo_canvas_set_bounds): queue a redraw of the widget.
	(goo_canvas_expose_event): clip to the canvas bounds if necessary.

	* demo/mv-demo.c (change_bounds_clicked):
	* demo/demo.c (change_bounds_clicked): test changing the bounds
	dynamically.

2007-05-13  Damon Chaplin  <damon@gnome.org>

	* src/goocanvaspath.c: use a common GooCanvasPathData like the other
	standard items. This fixes a crash where the model's path_commands
	GArray was updated but the view still pointed to the old GArray
	which had been freed.

	* demo/mv-demo-paths.c:
	* demo/demo-paths.c: added a button to test changing the path data
	dynamically.

2007-05-11  Damon Chaplin  <damon@gnome.org>

	* demo/demo-large-rect.c:
	* demo/demo-large-line.c:
	* demo/demo-large-items.c: new demo and items to show how to create a
	very large canvas and very large items.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_get_line_width):
	added utility function to get an item's line width.
	Also changed default line width property value to 2.0, and returned
	canvas line width setting if item's line width isn't set.

	* src/goocanvasrect.c (goo_canvas_rect_update):
	* src/goocanvaspolyline.c (goo_canvas_polyline_reconfigure_arrows): use
	the above function to get the line width.

2007-04-30  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_create_cairo_context): if the GooCanvas
	isn't realized, use a temporary image surface to create the cairo_t.
	Hopefully that will result in exactly the same bounds of items.
	(goo_canvas_get_item): initialize item to NULL.

2007-04-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.h:
	* src/goocanvasutils.c (goo_canvas_bounds_get_type): added type stuff
	for language bindings (patch from Murray Cumming).

2007-04-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.c (_goo_canvas_item_model_emit_child_added)
	(_goo_canvas_item_model_emit_changed): new simple functions to emit
	signals faster (avoids signal name lookups).

	* src/goocanvasitemsimple.c
	(goo_canvas_item_model_simple_set_property)
	(goo_canvas_item_model_simple_set_transform)
	(goo_canvas_item_model_simple_set_style):
	* src/goocanvasgroup.c (goo_canvas_group_model_add_child): use the
	above functions for a little speedup.

2007-04-25  Damon Chaplin  <damon@gnome.org>

	* demo/mv-scalability-demo.c:
	* demo/scalability-demo.c: instead of connecting signals to all items
	we just use a handler on the root item. Also added a switch to turn
	off the text items, to see the difference in performance (a lot).
	Without text items we can startup with 100,000 items in 1 second
	for a simple canvas, or 4 seconds for model-view (compared to 4 seconds
	and 7 seconds with text items).

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_set_model): only
	setup the accessibility stuff if accessibility is enabled (as it is
	quite slow if you have lots of items).

2007-04-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasrect.c (goo_canvas_rect_update): added optimized
	function to calculate the bounds without using cairo.

2007-04-16  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c (goo_canvas_item_animate_cb): check keep_source
	before updating the item so we don't use the freed animation data.

2007-04-16  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_get_path_bounds):
	handle empty bounds for an item's fill or stroke. cairo 1.4.x returns
	0.0 for x1/y1/x2/y2 in that case, though older versions of cairo
	returned odd values. So I've added a workaround for that as well.

2007-04-05  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_key_press, goo_canvas_key_release): only
	emit "key-press" and "key-release" signals on items if the canvas has
	the focus. (We were incorrectly emitting signals if an embedded widget
	had the focus, as the events were propagating up to the canvas.)

2007-04-03  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.8

2007-04-03  Damon Chaplin  <damon@gnome.org>

	* demo/mv-demo.c (create_canvas_primitives):
	* demo/demo.c (create_canvas_primitives): set the maximum scale to 50,
	since if we go above that we hit the cairo 16-bit limit and the large
	rectangle isn't painted correctly.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_install_common_properties): improved docs for fill/stroke properties.

	* src/goocanvaswidget.c (goo_canvas_widget_new)
	(goo_canvas_widget_set_widget): keep our own reference to the widget,
	rather than just relying on the canvas widget's reference. Otherwise
	once the widget is removed from the canvas we have an invalid pointer.

2007-03-30  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.c (goo_canvas_boolean_handled_accumulator): new
	function, copied from _gtk_boolean_handled_accumulator().

	* src/goocanvasitem.c (goo_canvas_item_base_init): use the above
	accumulator for the event signals, so returning TRUE from a handler
	stops the signal.

	* src/goocanvasitemsimple.h (struct _GooCanvasItemSimpleData):
	* src/goocanvasitem.h (struct _GooCanvasItemIface): added a few bits
	that will be needed to support tooltips with GTK+ 2.12. I have a patch
	to support tooltips but I don't want to depend on GTK+ 2.12 yet.

2007-03-28  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasstyle.c (goo_canvas_style_set_fill_options): check if
	the fill pattern is set to NULL, which is used to reset any fill
	pattern or color. If it is, don't set the cairo source and return
	FALSE.

	* demo/demo.c (move_ellipse_clicked): set the fill pattern to NULL
	occasionally to test the above.

2007-03-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c: added "background-color" and "background-color-rgb"
	properties to set the background color of the canvas, based on a patch
	from Gian Mario Tagliaretti.

	* demo/demo.c (create_canvas_primitives):
	* demo/mv-demo.c (create_canvas_primitives): use above properties.

2007-03-16  Murray Cumming  <murrayc@murrayc.com>

	* src/goocanvasitemsimple.h: Change the struct field name from
	private to priv, to avoid problems when using this from C++.

2007-03-08  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.h (struct _GooCanvasItemSimpleData): use
	guints for the bitflags rather than the enum types, since that is what
	GTK+ does. Maybe enums cause a problem because of being signed ints.
	Also added cache_setting which we may use in future.
	(struct _GooCanvasItemSimple): added private pointer to allow a bit
	of expansion in future (e.g. maybe a cache).

2007-03-08  Damon Chaplin  <damon@gnome.org>

	* src/goocanvaswidget.c (goo_canvas_widget_set_canvas): unparent the
	widget if the canvas is set to NULL (i.e. when the item is removed
	from the canvas).

2007-03-08  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.c (goo_canvas_item_model_remove):
	* src/goocanvasitem.c (goo_canvas_item_remove): new convenience
	functions to easily remove items & models from the canvas.

	* demo/mv-demo-features.c (on_button_press):
	* demo/demo-features.c (on_button_press):
	* demo/demo.c (on_button_press):
	* demo/mv-demo.c (on_button_press):
	* demo/widgets-demo.c (remove_widget_clicked): use new remove()
	functions to test them.

	* docs/goocanvas-sections.txt: rearranged GooCanvasItem/Model to put
	commonly-used functions first, and added remove() functions.

2007-03-08  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.[hc]: added ellipsize property, and used bit flags
	to cut down on memory use a bit.

	* demo/demo.c (setup_texts): added test for ellipsized text.

	* demo/mv-demo.c:
	* demo/mv-demo-table.c:
	* demo/mv-demo-clipping.c: updated model-view demos, adding new stuff
	from simple demo.

2007-03-07  Damon Chaplin  <damon@gnome.org>

	* src/*.c: added notes to all functions that are only meant to be used
	when implementing new canvas items.

	* docs/goocanvas-sections.txt: placed all the functions only used when
	implementing new canvas items together at the bottom.

2007-03-06  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c (goo_canvas_item_get_items_at): if the item
	doesn't support this method just return found_items.

	* src/goocanvas.c (goo_canvas_create_cairo_context): made this public.

2007-03-06  Damon Chaplin  <damon@gnome.org>

	* */*: added 'const' to a number of arguments taking a cairo_matrix_t*
	or a GooCanvasBounds*.

2007-03-06  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.[hc]: added get_requested_height() method.

	* src/goocanvastable.c: Reworked a lot of code to support
	width-for-height layout. This gets the requested area of all children,
	calculates the column widths, then checks if any children want to
	change their requested height given their allocated width. Text items
	change their requested height based on their width, so this results in
	a better layout.

	* src/goocanvastext.h (struct _GooCanvasText): added layout_width to
	store the width used for the PangoLayout. This initially comes from
	the text's width property, but can be modified when the text item
	is layed out in a container like GooCanvasTable.

	* src/goocanvastext.c (goo_canvas_text_get_requested_height):
	calculates the requested height for the given width, or just returns
	-1 if the text item is rotated or has a clip path, in which case the
	original height is used.
	(goo_canvas_text_init, goo_canvas_text_create_layout)
	(goo_canvas_text_update): use layout_width.

	* demo/demo-table.c (create_width_for_height_table): added tests for
	width-for-height layout.

	* demo/demo-clipping.c (setup_canvas): added text item to check
	clipping works OK with them.

2007-02-27  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.7

2007-02-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_get_items_in_area): new function to
	get items inside or outside a given area.

	* demo/demo.c: added little test for goo_canvas_get_items_at() and
	goo_canvas_get_items_in_area().

2007-02-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.[hc]:
	* src/goocanvasitem.[hc]: used name "transform" for all arguments
	to get/set_transform functions.

2007-02-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.[hc]:
	* src/goocanvasitem.[hc]: changed get_transform() method to take a
	cairo_matrix_t* to fill in, and return a boolean if a transform is set.
	This is better for bindings.

	* src/goocanvasitemsimple.c: updated get_transform() methods.

2007-02-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.[hc]: changed get_item_at method to get_items_at
	which returns a list of found items rather than a single found item.

	* src/goocanvasitemsimple.[hc]: changed get_item_at() method to
	is_item_at() which just returns a boolean, and updated to new API.

	* src/goocanvas.c (goo_canvas_get_item_at): updated to use new API.
	(goo_canvas_get_items_at): new function to return list of found items.

	* src/goocanvastable.c (goo_canvas_table_get_items_at):
	* src/goocanvasgroup.c (goo_canvas_group_get_items_at):
	* src/goocanvasimage.c (goo_canvas_image_is_item_at):
	* src/goocanvaspolyline.c (goo_canvas_polyline_is_item_at):
	* src/goocanvastext.c (goo_canvas_text_is_item_at):
	* src/goocanvaswidget.c (goo_canvas_widget_is_item_at):
	* docs/creating-items.xml:
	* demo/demo-item.c (goo_demo_item_is_item_at): updated for new API.

2007-02-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.c: added "hint-metrics" property so people
	can use hinted metrics for prettier text if they aren't scaling the
	canvas at all.

	* src/goocanvasstyle.c: added goo_canvas_style_hint_metrics_id quark.

	* src/goocanvasutils.c (goo_cairo_hint_metrics_get_type): added enum
	stuff for cairo_hint_metrics_t.

	* src/goocanvastext.c (goo_canvas_text_create_layout): use hint metrics
	property.

2007-02-25  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_create_cairo): use CAIRO_ANTIALIAS_GRAY
	as the default antialiasing mode, as that is what is recommended when
	using unhinted text. (subpixel antialiasing looks really bad.)

2007-02-25  Damon Chaplin  <damon@gnome.org>

	* src/*.c: checked over all finalize methods and moved code to dispose
	methods where appropriate. (Dispose methods should be used to unref
	any other objects.) This was done to help the Ruby bindings.
	It was a bit fiddly so it might cause a few bugs.

	* src/goocanvasutils.c (goo_cairo_matrix_copy)
	(goo_cairo_matrix_free): allocate and free with g_slice_new/free() as
	that is what was being used in GooCanvasItemSimple.

	* demo/scalability-demo.c: added a test for a very wide canvas, almost
	up to the 31-bit GDK window size limit. (It is slow to start though.)

2007-02-24  Damon Chaplin  <damon@gnome.org>

	* demo/widgets-demo.c (on_delete_event):
	* demo/units-demo.c (on_delete_event):
	* demo/mv-scalability-demo.c (on_delete_event):
	* demo/scalability-demo.c (on_delete_event):
	* demo/mv-demo.c (on_delete_event):
	* demo/demo.c (on_delete_event): use gtk_main_quit() rather than exit()
	here, so GTK+ destroys the window and the finalization code gets
	tested.

	* src/goocanvas.c (goo_canvas_remove): implement this so embedded
	widgets are removed properly.

2007-02-20  Damon Chaplin  <damon@gnome.org>

	* demo/demo-table.c:
	* demo/mv-demo-table.c: moved table-demo.c into main demo app, and
	made a model-view version.

2007-02-20  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastable.c (goo_canvas_table_get_item_at)
	(goo_canvas_table_paint): if the table was shrunk below its requested
	size, clip the children if appropriate.

	* src/goocanvastable.c (goo_canvas_table_get_item_at)
	(goo_canvas_table_paint):
	* src/goocanvasgroup.c (goo_canvas_group_get_item_at)
	(goo_canvas_group_paint): check the bounds and handle the clip path.

	* demo/table-demo.c (create_demo_table): added parameters and created
	a second table of shapes, this time with the items shrunk and clipped.

2007-02-20  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastext.c (goo_canvas_text_create_layout):
	(goo_canvas_text_get_item_at): use the ink rect as well as the logical
	rect when calculating the bounds or doing hit-testing.

	* src/goocanvastable.c (goo_canvas_table_size_allocate_pass1): shrink
	homogeneous tables if appropriate.

	* src/goocanvaswidget.c (goo_canvas_widget_get_item_at): return the
	widget item if the point is within its bounds.

	* src/goocanvas.c (goo_canvas_render): if bounds are passed in set
	the clip path to the bounds.

	* demo/demo.c (write_pdf_clicked): added code to test clipped painting.

2007-02-19  Damon Chaplin  <damon@gnome.org>

	* demo/scalability-demo.c (setup_canvas): set the font on the root
	group so we don't need to set it on all the text items.
	Also output the time to the first expose.

	* demo/mv-scalability-demo.c: new demo based on scalability-demo.c.

2007-02-19  Damon Chaplin  <damon@gnome.org>

	* demo/demo.c:
	* demo/mv-demo.c:
	* demo/demo-animation.c:
	* demo/mv-demo-animation.c: made the file-global variables static so
	they don't clash, and updated the demos a bit.

2007-02-19  Damon Chaplin  <damon@gnome.org>

	* configure.in:
	* src/Makefile.am: rewrote the stuff that handles the autogeneration
	of goocanvasmarshal.[hc] and goocanvasenumtypes.[hc], copying what
	GTK+ does. It now has a --disable-rebuilds option to disable the
	autogeneration and it doesn't try autogeneration if Perl isn't
	available.

2007-02-17  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.6

2007-02-17  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.h (struct _GooCanvasItemSimpleClass): renamed
	create_path, update, paint and get_item_at class methods to
	simple_create_path, simple_update, simple_paint and simple_get_item_at.
	This avoids confusion with the GooCanvasItem interface methods with the
	same name (and may avoid problems with language bindings etc.)

	* src/goocanvasellipse.c (goo_canvas_ellipse_class_init):
	* src/goocanvasimage.c (goo_canvas_image_class_init):
	* src/goocanvaspath.c (goo_canvas_path_class_init):
	* src/goocanvaspolyline.c (goo_canvas_polyline_class_init):
	* src/goocanvasrect.c (goo_canvas_rect_class_init):
	* src/goocanvastext.c (goo_canvas_text_class_init):
	* src/goocanvaswidget.c (goo_canvas_widget_class_init):
	* demo/demo-item.c (goo_demo_item_class_init):
	* src/goocanvasitemsimple.c: updated use of above class methods.

	* src/goocanvasgroup.c (goo_canvas_group_update): handle children with
	empty bounds (i.e. ignore their bounds when computing the group's
	bounds).

	* src/goocanvastable.c (goo_canvas_table_paint)
	(goo_canvas_table_get_item_at):
	* src/goocanvasgroup.c (goo_canvas_group_get_item_at)
	(goo_canvas_group_paint): don't check the
	child bounds here. Leave it up to the children to do that.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_get_item_at)
	(goo_canvas_item_simple_paint): check the item's bounds here.

2007-02-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.c:
	* src/goocanvaspath.c: moved data structures and code for parsing and
	creating SVG paths from goocanvaspath.[hc] to goocanvasutils.[hc].
	Added goo_canvas_parse_path_data() and goo_canvas_create_path() public
	functions.

	* src/goocanvasitemsimple.c: added "clip-path" and "clip-fill-rule"
	properties to specify the clip path and fill rule, and used these
	to calculate bounds, paint, and do hit testing.

	* src/goocanvasitemsimple.h (struct _GooCanvasItemSimpleData): added
	clip_path_commands and clip_fill_rule.

	* src/goocanvastext.c (goo_canvas_text_set_model):
	* src/goocanvasrect.c (goo_canvas_rect_set_model):
	* src/goocanvaspolyline.c (goo_canvas_polyline_set_model):
	* src/goocanvaspath.c (goo_canvas_path_set_model):
	* src/goocanvasimage.c (goo_canvas_image_set_model):
	* src/goocanvasgroup.c (goo_canvas_group_set_model):
	* src/goocanvasellipse.c (goo_canvas_ellipse_set_model): use
	goo_canvas_item_simple_set_model() rather than getting parent iface.
	(For GooCanvasTable this actually caused a crash as when it called
	the GooCanvasGroup function that got the parent iface which pointed to
	itself so it got into an infinite loop.)

	* demo/mv-demo-clipping.c:
	* demo/demo-clipping.c: new files for clipping demo pages.

	* demo/Makefile.am:
	* demo/mv-demo.c:
	* demo/demo.c: added clipping pages.

2007-02-13  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.c (goo_canvas_size_allocate): only allocate the child
	widgets if we are realized, otherwise it crashes.

2007-02-13  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.c (goo_canvas_item_model_animate):
	* src/goocanvasitem.c (goo_canvas_item_animate): added "absolute"
	parameter, and rewrote the animation code, using the same code for
	GooCanvasItem and GooCanvasItemModel.

	* demo/demo-animation.c:
	* demo/mv-demo-animation.c: new files for animation demo pages.

	* demo/mv-demo.c:
	* demo/demo.c: added new animation pages and updated animation calls.

2007-02-12  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.c (goo_canvas_item_model_set_simple_transform):
	* src/goocanvasitem.c (goo_canvas_item_set_simple_transform): convert
	rotation to radians.

2007-02-09  Damon Chaplin  <damon@gnome.org>

	* demo/demo-item.c (goo_demo_item_update): don't convert bounds to
	device space.

	* src/*.h: added padding to all *Class structs, to allow a bit of
	expansion without breaking backwards compatibility.

	* docs/*.xml: added example code to the introductory sections.
	Needs more explanation at some point.

	* configure.in:
	* src/Makefile.am: added libtool version numbers.

2007-02-08  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.c
	(goo_canvas_item_model_set_simple_transform):
	* src/goocanvasitem.c (goo_canvas_item_set_simple_transform): new
	convenience functions to set the position, scale and rotation easily.

	* demo/demo.c (move_ellipse_clicked): added tests for
	goo_canvas_item_set_simple_transform().

	* */*: more documentation updates. I've started adding a few
	introductory sections, tidied up a few bits, and tried to update all
	the docs that referred to the old model/view terminology.

2007-02-08  Damon Chaplin  <damon@gnome.org>

	* */*: more documentation updates. It is 100% complete now, though it
	still needs docs on the optional model/view split and creating new
	items.

2007-02-07  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.c (goo_canvas_query_child_properties): check if
	type is classed before calling g_type_interface_peek().

2007-02-06  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas.[hc]: updated docs.

2007-02-04  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasstyle.[hc]: extern the GQuarks in the header and define
	them in the .c file.

2007-02-04  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemmodel.c (goo_canvas_item_model_base_init): fix type
	of "parent" property, from Gian Mario Tagliaretti.

2007-02-04  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_check_style): fixed
	bug where if item was using its parent's style it wouldn't get updated.

	* */*: documented most of the other symbols. I just need to document
	the 2 main interfaces - GooCanvasItemIface and GooCanvasItemModelIface,
	check it all over for out-of-date docs, and document the optional
	model/view split a bit more. (And maybe a section on writing new items)

2007-02-02  Damon Chaplin  <damon@gnome.org>

	* */*: updated docs for all canvas items & models.

2007-02-01  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastable.c: finished table item. I think the only API
	breakage this introduces is that GooCanvasItemSimple subclasses that
	override the update() class method must now return the bounds in user
	space rather than device space. (This is needed to do the table
	layout.)

	* demo/table-demo.c: added more test tables with various transforms
	and settings.

	* src/goocanvasitem.c (goo_canvas_item_get_requested_area)
	(goo_canvas_item_allocate_area)
	(goo_canvas_item_get_transform_for_child) : new functions and interface
	methods to support GooCanvasTable and other layout containers.

	* src/goocanvasitemsimple.c: added support for GOO_CANVAS_ITEM_HIDDEN,
	initialized the model's visibility setting to GOO_CANVAS_ITEM_VISIBLE.
	(goo_canvas_item_simple_update): split part of it out into
	goo_canvas_item_simple_update_internal and updated slightly.
	(goo_canvas_item_simple_get_requested_area)
	(goo_canvas_item_simple_allocate_area): new functions to support
	GooCanvasTable and other layout containers.
	(goo_canvas_item_simple_get_path_bounds): don't convert to device space
	as some code needs the bounds in user space.

	* src/goocanvas.c (goo_canvas_convert_to_item_space)
	(goo_canvas_convert_from_item_space): used the new
	goo_canvas_item_get_transform_for_child() function to get the transform
	for each item.

	* src/goocanvasutils.h: added GOO_CANVAS_ITEM_HIDDEN visibility setting
	which is used for items which are invisible and not allocated any space
	in containter items like GooCanvasTable.

	* src/goocanvasgroup.c (goo_canvas_group_get_item_at)
	(goo_canvas_group_paint): support GOO_CANVAS_ITEM_HIDDEN.

	* src/goocanvaspolyline.c (goo_canvas_polyline_compute_bounds):
	* src/goocanvasimage.c (goo_canvas_image_update): leave bounds in user
	space.

	* src/goocanvaswidget.c: updated to override the GooCanvasItemSimple
	update, paint & get_item_at methods instead of the interface methods,
	added support for GOO_CANVAS_ITEM_HIDDEN, and added
	goo_canvas_widget_allocate_area() implementation.

	* src/goocanvastext.c (goo_canvas_text_get_item_at): fixed bug that
	meant it didn't work for text items with no fill color/pattern set.

2006-12-09  Damon Chaplin  <damon@gnome.org>

	* docs/goocanvas-sections.txt:
	* docs/goocanvas-docs.sgml: use separate sections for model objects,
	as gtk-doc doesn't support multiple objects per section.

	* docs/Makefile.am (SCANGOBJ_OPTIONS): added --query-child-properties
	argument to document child properties (needs cvs gtk-doc).

	* src/goocanvasutils.c (goo_canvas_query_child_properties): new
	function to allow documentation of child properties with gtk-doc.

	* src/goocanvasitemmodel.c:
	* src/goocanvasitem.c: added support for child properties of item
	models.

	* src/goocanvastable.c: beginnings of a new table item to layout child
	items. Doesn't do much yet.

	* demo/table-demo.c: beginnings of demo for GooCanvasTable.

	* src/goocanvasitem.c (goo_canvas_item_animate): clarified docs.

	* src/goocanvasgroup.c: use goo_canvas_item_add/move/remove_child()
	rather than goo_canvas_group_add/move_remove_child() so subclasses can
	reuse group's code. Also fix some docs & variable names.

2006-11-30  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.h (struct _GooCanvasItemSimpleClass): added
	new update/paint/get_item_at methods that subclasses can override.
	If items use these methods GooCanvasItemSimple will perform all the
	standard stuff before passing control to them. This makes it much
	easier to create simple canvas items.

	* demo/demo-item.c:
	* src/goocanvaspolyline.c:
	* src/goocanvastext.c:
	* src/goocanvasimage.c: use the above methods, so we can get rid of
	all the boilerplate code.

2006-11-29  Damon Chaplin  <damon@gnome.org>

	* demo/demo-item.[hc]: new demo item to show how to create new items.
	There's more boilerplate code than I'd like, but I don't know the best
	way to deal with it.

2006-11-29  Damon Chaplin  <damon@gnome.org>

	* */*: major rewrite to make the model optional, so people can choose
	to have either a simple canvas or a model/view canvas. (Many people
	found the model/view split awkward.) The standard items can be used
	in either scenario.

	Also added support for cascading styles, with arbitrary properties,
	and embedded widget items. I'm in the middle of adding support for
	layout items as well (e.g. something like a GtkTable for items).

2006-10-12  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastextview.c (goo_canvas_text_view_create_layout)
	(goo_canvas_text_view_get_item_view_at)
	(goo_canvas_text_view_paint): patch from Martin Soto to fix a text
	positioning bug. The position was wrong when the text width was set
	and the alignment wasn't PANGO_ALIGN_LEFT. (Pango uses the set width
	to calculate the text origin, but we were using the logical width.)

2006-10-12  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.h:
	* src/goocanvasprivate.h: make get_type() declarations public as
	they are useful for bindings.

2006-10-12  Damon Chaplin  <damon@gnome.org>

	Applied patch from Paul Davis to use glib_mkenums, slightly modified:

	* configure.in: use pkg-config to get the glib_genmarshal and
	glib_mkenums binaries.

	* src/Makefile.am: use glib_mkenums to generate goocanvasenums.[hc].

	* src/goocanvasutils.c: removed goo_canvas_pointer_events_get_type()
	and goo_canvas_item_visibility_get_type() as they're generated now.

	* src/goocanvasutils.h: removed get_type() declarations that are now
	in goocanvasenums.h, and modifed GooCanvasPointerEvents so glib_mkenums
	could parse it.

	* src/goocanvas.h:
	* src/goocanvasitem.c: include goocanvasenums.h.

2006-10-12  Damon Chaplin  <damon@gnome.org>

	* src/goocanvaspolyline.h (struct _GooCanvasPoints): use a separate
	typedef declaration for the struct, to help C++ bindings. From Paul
	Davis.

	* src/goocanvaspath.c (goo_canvas_path_new): use 'const' for the
	path_data argument. From Paul Davis.

	* src/goocanvaspathview.c (goo_canvas_path_view_create_path): init
	last_control_point_x/y to avoid compiler warning.

2006-09-11  Damon Chaplin  <damon@gnome.org>

	* src/goocanvaspolylineview.c: be more careful about using points and
	arrow data.

	* demo/demo.c (setup_lines): add checks for polylines with 0 and 1
	points.

	* configure.in: require GTK+ 2.10.0, for GtkUnit (Gian Mario
	Tagliaretti).

2006-08-31  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c: added "units", "resolution-x" & "resolution-y"
	properties so we can support points, inches and millimeters being used
	for item units as well as just pixels. Thus you can create a complete
	WYSIWYG printable document. But note that you must use absolute units
	for font sizes, i.e. use "px" after the size in any font description
	strings, e.g. "Sans 10px".  That stops us scaling fonts twice.
	(goo_canvas_view_set_default_line_width): set a reasonable default
	line width according to the current units.

	* demo/units-demo.c: new demo showing different units in use.

2006-08-30  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemviewsimple.c (goo_canvas_item_view_simple_update)
	* src/goocanvaspolylineview.c (goo_canvas_polyline_view_update):
	added a workaround for cairo limits. Cairo uses fixed point integer
	maths and is currently limited to 16-bits for the integer component.
	So we remove any current translation before calculating the bounds
	of the item, then add it back to the results. This means the 16-bit
	limit only applies to items' user space rather than the entire canvas.

	* src/goocanvasitemviewsimple.c
	(goo_canvas_item_view_simple_get_item_view_at):
	* src/goocanvaspolylineview.c
	(goo_canvas_polyline_view_get_item_view_at): as above, remove any
	current translation before checking if the point is in the item.

	* demo/scalability-demo.c: updated to create ~100,000 items, either
	rectangles or images. For images it now reuses a single cairo pattern
	rather than passing the pixbuf to the GooCanvasImage (which created a
	new pattern for each one and ran out of memory). It takes about 10
	seconds to setup the canvas which is slower than I'd like, but once
	created it seems to work fast enough.

2006-08-27  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (goo_canvas_view_class_init):
	* src/goocanvasitemviewsimple.c (goo_canvas_item_view_simple_class_init)
	* src/goocanvasgroupview.c (goo_canvas_group_view_class_init): only
	register the accessible factories if accessibility is enabled (i.e.
	GtkWidget has registered a factory).

	* src/goocanvasitemviewsimple.c (goo_canvas_item_view_simple_setup_accessibility):
	* src/goocanvasgroupview.c (goo_canvas_group_view_set_group): only
	set the accessible title & description and connect the signal handlers
	if accessibility is enabled. (It would be better to not call
	atk_gobject_accessible_for_object() at all, as it isn't useful.)

	* demo/scalability-demo.c: start of new demo/test for scalability.
	We are currently hitting the cairo 16-bit limit (transformed coords
	can't be larger than 16-bit ints). A workaround would be nice.
	I also want to profile it and see if there are any major bottlenecks.
	(Creating canvases with thousands of items is very slow, though
	scrolling etc. is OK as long as the canvas is split into groups.)

2006-08-24  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.4

2006-08-24  Damon Chaplin  <damon@gnome.org>

	* src/*.c: updated docs to point to goo_canvas_view_get_item_view() as
	a simple alternative for setting up signal handlers.

	* src/goocanvasview.c (goo_canvas_view_pointer_ungrab): only call
	gdk_display_pointer_ungrab() if we have an active pointer grab.
	So maybe we can now use goo_canvas_view_pointer_ungrab() to ungrab
	passive grabs on canvas item views (need to test this though).

2006-08-23  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c: keep an item_to_view hash table so apps can
	get the view for particular items (e.g. as an easy alternative for
	setting up signal handlers).
	(goo_canvas_view_get_item_view): new function to get the item view for
	a given item.
	(goo_canvas_view_unregister_item_view): new function that implementors
	of GooCanvasItemView should call in their finalize method to unregister
	the view (so the GooCanvasView removes it from the hash table.)
	(goo_canvas_view_create_item_view): add the new item view to the
	item_to_view hash table.

	* src/goocanvasitemviewsimple.c (goo_canvas_item_view_simple_finalize):
	* src/goocanvasgroupview.c (goo_canvas_group_view_finalize): unregister
	the item view.
	(goo_canvas_group_view_set_parent_view): don't change the canvas view
	here any more, since we don't support that.

	* demo/simple-demo.c: updated to use simple signal handler setup.

2006-08-22  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (goo_canvas_view_class_init): 2 minor fixes for
	the docs (from Gian Mario Tagliaretti).

2006-08-15  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasutils.h: moved GOO_TYPE_CAIRO_PATTERN stuff here, so
	bindings can use it.
	Also renamed goo_cairo_line_dash stuff to goo_canvas_line_dash for
	consistency.

	* src/goocanvasutils.c (goo_canvas_line_dash_newv): new non-varargs
	variant of function of goo_canvas_line_dash_new() for bindings.
	(from Gustavo J. A. M. Carneiro.)

2006-08-14  Damon Chaplin  <damon@gnome.org>

	* Makefile.am: require automake 1.7, since it is needed for
	glib-genmarshal (from Gian Mario Tagliaretti).

2006-08-08  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastextview.c (goo_canvas_text_view_update):
	* src/goocanvaspolylineview.c (goo_canvas_polyline_view_update):
	* src/goocanvasitemviewsimple.c (goo_canvas_item_view_simple_update):
	* src/goocanvasimageview.c (goo_canvas_image_view_update):
	* src/goocanvasgroupview.c (goo_canvas_group_view_update): rewrote the
	update methods to make sure the bounds is always set and returned
	correctly.

2006-07-26  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasgroup.[hc]: added goo_canvas_group_set_model() function,
	to set the model of the root group.
	* src/goocanvasmodelsimple.c (goo_canvas_model_simple_init): use the
	above function.

	* src/goocanvas*view.c: support an optional transformation matrix for
	each view, which is combined with the underlying item's transform.
	(I'm not sure if this will overcomplicate things.)

	* src/goocanvasgroupview.c: support generic GooCanvasItems as the
	underlying group rather than just GooCanvasGroups. This allows us to
	use subclasses of GooCanvasGroupView easily.
	(goo_canvas_group_view_set_group): new function to set the underlying
	group item, creating child views and setting up signal handlers etc.

2006-07-21  Damon Chaplin  <damon@gnome.org>

	* src/goocanvas*view.c: renamed get_item_at() methods to
	get_item_view_at().

	* src/goocanvasview.c (goo_canvas_view_get_root_view): new function
	to return the root view.
	(goo_canvas_view_get_item_view_at): new function to return the item
	view at a given point.

2006-07-19  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasatk.c:
	* src/goocanvasgroupview.c:
	* src/goocanvasimageview.c:
	* src/goocanvasitemview.c:
	* src/goocanvasitemview.h:
	* src/goocanvasitemviewsimple.c:
	* src/goocanvaspolylineview.c:
	* src/goocanvastextview.c:
	* src/goocanvasview.c: changed item view update() and get_bounds()
	methods to take a GooCanvasBounds* to fill in, rather than returning
	a pointer to a static GooCanvasBounds. This makes it easier for
	language bindings.

2006-07-19  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (goo_canvas_view_scroll): handle scroll events
	ourselves, in case we aren't placed directly in a scrolled window.

	* src/goocanvasitem.c (goo_canvas_item_get_transform): if the item
	doesn't support this method just return NULL.

	* demo/demo-fifteen.c: use generic goo_canvas_item_view_get_item()
	method to get the item rather than private struct members.

	* configure.in: depend on glib 2.10.0 (from Gian Mario Tagliaretti).

	* src/goocanvasutils.c (goo_canvas_pointer_events_get_type): use a
	flags type rather than an enum type (from Gustavo J. A. M. Carneiro).

	* src/goocanvasitem.c (goo_canvas_item_base_init):
	* src/goocanvasitemsimple.c:
	* src/goocanvasgroup.c: updated to use the flags type for
	"pointer-events" instead of enum.

 	* src/goocanvasprivate.h:
 	* src/goocanvasutils.h: The type GOO_TYPE_CAIRO_MATRIX is used in
 	a public interface (a property in the GooCanvasItem interface),
 	therefore it has to be public (from Gustavo J. A. M. Carneiro).

2006-06-08  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_set_property):
	only create the item's style when needed.
	(goo_canvas_style_get_type): register boxed type (from Gustavo J. A. M.
	Carneiro).

2006-06-01  Damon Chaplin  <damon@gnome.org>

	* demo/demo.c: only add the "Output PDF" option if cairo has PDF
	support compiled in.

2006-05-27  Damon Chaplin  <damon@gnome.org>

	* src/*.c: removed ';' after all G_DEFINE_TYPE* macros.

2006-05-27  Damon Chaplin  <damon@gnome.org>

	* autogen.sh: check for AC_CONFIG_HEADER as well as old AM_*.

2006-05-16  Damon Chaplin  <damon@gnome.org>

	* goocanvas.pc.in:
	* Makefile.am:
	* configure.in: added .pc file (patch from Gian Mario Tagliaretti).

2006-05-12  Damon Chaplin  <damon@gnome.org>

	* src/goocanvastextview.c (goo_canvas_text_view_create_layout): if
	there is no text return an empty layout rather than NULL.
	(goo_canvas_text_view_get_item_at): check if there is no text first.

	* src/goocanvasitemsimple.[hc]: rename operator to op since operator
	is a C++ keyword (reported by Yevgen Muntyan).

2006-04-24  Damon Chaplin  <damon@gnome.org>

	* Released GooCanvas 0.3

2006-04-24  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c: added "model", "scale", "anchor", "x1", "y1",
	"x2", "y2" properties, and goo_canvas_view_get_bounds() and
	goo_canvas_view_get_scale() accessors.
	Removed goo_canvas_view_set_anchor() as the property should be enough.
	(I think we should only have accessor functions for major properties.)

	* src/goocanvasitemview.c (goo_canvas_item_view_is_visible)
	(goo_canvas_item_view_get_item_at): removed scale argument. We get it
	from the canvas view now, to make the API a little simpler.

	* src/goocanvasitemviewsimple.h (struct _GooCanvasItemViewSimple):
	added pointer to the canvas view.

	* src/*view.[hc]: added canvas view argument to all view creation
	functions.

2006-04-23  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (goo_canvas_view_focus): scroll to show the new
	focused item if necessary.
	(goo_canvas_view_set_model): set need_update to TRUE.
	(goo_canvas_view_focus_check_is_best): try to avoid wild jumps when
	moving around with the cursor keys.

2006-04-22  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c: added support for keyboard focus navigation.
	(I still need to make it scroll to show the focused item if needed.)

	* demo/demo-focus.c: new demo page to test keyboard focus navigation.

	* src/goocanvasitemview.c: added "focus-in-event" & "focus-out-event"
	signals.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_get_path_bounds):
	make sure we do min/max over all points of bounds.

	* src/goocanvasview.c (goo_canvas_view_focus_out): emit
	"focus_out_event", not "focus_in_event".

2006-04-19  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c (goo_canvas_item_base_init): added "title" and
	"description" properties for accessibility. Note that we only support
	per-item settings for the standard canvas items, though more complex
	items may want to support per-view settings.

	* src/goocanvasitemsimple.c:
	* src/goocanvasgroup.c: implemented "title" and "description"
	properties.

	* src/goocanvas*view.c: set the accessible name & description based
	on the item's settings, and update them if changed.

	* src/goocanvasatk.c (goo_canvas_item_view_accessible_ref_child):
	return the accessible rather than the item view.

2006-04-18  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (goo_canvas_view_get_model): new function.
	(goo_canvas_view_adjustment_value_changed): emit "visible_data_changed"
	on accessible object.
	(goo_canvas_view_init): initialize default bounds, and create default
	adjustments.

	* src/goocanvasitemview.[hc]: added new is_visible() method, and
	"can-focus" property, and convenience find_child() function.

	* src/goocanvasitemviewsimple.c: implemented "can-focus" property
	and "is_visible" method.

	* src/goocanvasgroupview.c: implemented "can-focus" property and
	"is_visible" method, and used same flags field as
	GooCanvasItemViewSimple.

	* src/goocanvasatk.[c]: new files to support accessibility. Most of
	the code has been copied from foocanvas & libgnomecanvas, with slight
	changes to handle our model/view split.

	* src/goocanvasitemviewsimple.c (goo_canvas_item_view_simple_finalize):
	chain up to parent's finalize method.

2006-04-16  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (propagate_event, emit_pointer_event): ref views
	and check they are still valid.

	* src/*view.[hc]: made views hold reference on items, to ensure we
	never use invalid pointers.

2006-04-16  Damon Chaplin  <damon@gnome.org>

	* demo/simple-demo.c: new very simple demo, also used in docs.

	* src/goocanvasitemviewsimple.[hc]: new base class for item views,
	so we can share a lot of the common code.

	* src/*view.[hc]: updated item views to be a subclass of above.

	* src/*.c: removed lots of unused debugging code.

	* src/goocanvasitem.c:
	* src/goocanvasitemsimple.c:
	* src/goocanvasgroup.c: moved "pointer-events" and "transform"
	properties, and the "changed" signal to the GooCanvasItem interface.

	* src/*.[hc]: updated use of above.

2006-04-14  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c: documented GooCanvasView, though it needs an
	overview and demo code.

	* src/*.[hc]: documented most of the core objects.

	* src/goocanvasutils.h: renamed goo_cairo_dash* to goo_canvas_dash*
	for consistency.

	* src/goocanvasprivate.h: new header to contain private declarations
	that we don't install.

	* src/*.[hc]: documented enums & structs on the types page.

2006-04-13  Damon Chaplin  <damon@gnome.org>

	* src/*.[hc]: documented views for standard items.

	* src/*.[hc]: documented standard items.

2006-04-12  Damon Chaplin  <damon@gnome.org>

	* configure.in: updated to use newer forms of macros.

	* COPYING: added LGPL license.

	* src/Makefile.am (libgoocanvasincludedir): install headers into
	$(includedir)/goocanvas-1.0 rather than $(includedir)/libgoocanvas-1.0.

	* demo/*: moved all the demo code here.

	* src/goocanvas.h: new main header to include all the public headers.

	* autogen.sh:
	* configure.in:
	* Makefile.am: setup to use gtk-doc.

	* src/Makefile.am: build libgoocanvas as a library now, so we can
	document it with gtk-doc. The demo will be moved to a separate
	directory.

	* src/goocanvastext.h:
	* src/goocanvasitem.h: rename a few parameters to match the sources,
	since gtk-doc complains if they are different.

2006-04-11  Damon Chaplin  <damon@gnome.org>

	* src/demo-paths.c (create_paths): added more arc tests.

	* src/goocanvaspathview.c: finished the elliptical arc and split
	up the create_path() function a bit.

2006-04-10  Damon Chaplin  <damon@gnome.org>

	* src/goocanvaspathview.[hc]:
	* src/goocanvaspath.[hc]: new path item and view, that uses the same
	path spec strings as SVG. I think everything works, except the
	elliptical arc, which I haven't finished yet.

	* src/demo-paths.c: new demo page to test paths.

2006-04-08  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemsimple.[hc]:
	* src/goocanvasgroup.[hc]: added "pointer-events" property, like SVG.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_get_path_bounds):
	changed to include both the stroke and fill extents, even if they will
	not be painted. This is needed to handle the "pointer-events" property.

	* src/goocanvasitemsimple.c (goo_canvas_item_simple_check_in_path):
	added "pointer_events" argument, to specify which parts of the path
	to check.

	* src/goocanvasitemview.[hc]: change get_item_at() to take
	"is_pointer_event", "parent_visible", and "scale" properties, so we
	can handle the "pointer-events" property.

	* src/goocanvasgroupview.c (goo_canvas_group_view_get_item_at):
	* src/goocanvasellipseview.c (goo_canvas_ellipse_view_get_item_at):
	* src/goocanvasimageview.c (goo_canvas_image_view_get_item_at):
	* src/goocanvaspolylineview.c (goo_canvas_polyline_view_get_item_at):
	* src/goocanvasrectview.c (goo_canvas_rect_view_get_item_at):
	* src/goocanvastextview.c (goo_canvas_text_view_get_item_at): updated
	to support "pointer-events".

	* src/goocanvasutils.[hc]: added GooCanvasPointerEvents enum, and
	goo_cairo_line_dash_new().

	* src/demo-events.c: new demo page to test "pointer-events" property.

	* src/goocanvastextview.c (goo_canvas_text_view_paint): if the fill
	pattern	has been explicitly set to NULL, don't paint the text.

2006-04-03  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (goo_canvas_view_style_set)
	(goo_canvas_view_realize): use the base color for the background.

	* src/demo.c (create_canvas_primitives): use gtk_widget_modify_base()
	to test setting the background color.

2006-03-24  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitemview.c (goo_canvas_item_view_ensure_updated): new
	convenience function to do an immediate update.

	* src/goocanvasview.c (goo_canvas_view_update): turned this into a
	public function for use by the above.

	* src/goocanvastextview.c (goo_canvas_text_view_get_bounds)
	(goo_canvas_text_view_get_item_at):
	* src/goocanvasrectview.c (goo_canvas_rect_view_get_bounds)
	(goo_canvas_rect_view_get_item_at):
	* src/goocanvaspolylineview.c (goo_canvas_polyline_view_get_bounds)
	(goo_canvas_polyline_view_get_item_at):
	* src/goocanvasgroupview.c (goo_canvas_group_view_get_bounds)
	(goo_canvas_group_view_get_item_at):
	* src/goocanvasimageview.c (goo_canvas_image_view_get_bounds)
	(goo_canvas_image_view_get_item_at):
	* src/goocanvasellipseview.c (goo_canvas_ellipse_view_get_bounds)
	(goo_canvas_ellipse_view_get_item_at): make sure the canvas is updated
	first, if needed.

2006-03-24  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (goo_canvas_view_render): new function to
	render all or part of the canvas to a given cairo context.

	* src/demo.c: added "Write PDF" test, that creates a pdf file
	containing the main canvas.

	* src/goocanvasview.[hc]: used a GooCanvasBounds rather than left,
	right, top, bottom for the bounds. Also renamed "pixels_per_unit"
	to "scale".

	* src/goocanvasitemview.[hc]:
	* src/goocanvastextview.c (goo_canvas_text_view_paint):
	* src/goocanvasgroupview.c (goo_canvas_group_view_paint):
	* src/goocanvasellipseview.c (goo_canvas_ellipse_view_paint):
	* src/goocanvasimageview.c (goo_canvas_image_view_paint):
	* src/goocanvaspolylineview.c (goo_canvas_polyline_view_paint): we
	now just pass the effective scale to the paint function rather than the
	GooCanvasView*, since when rendering to an arbitrary cairo_t we may not
	want to use a different effective scale (to determine which items are
	shown). (Also fixed some of the visibility checks.)

2006-03-23  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasitem.c: added new "visibility" and
	"visibility-threshold" properties to specify when an item should be
	visible (always, never, or above a certain scale threshold).

	* src/goocanvasutils.[hc]: added GooCanvasItemVisibility enum stuff.

	* src/goocanvasitemsimple.[hc]:
	* src/goocanvasgroup.[hc]: implemented new properties.

	* src/goocanvasgroupview.c (goo_canvas_group_view_paint):
	* src/goocanvastextview.c (goo_canvas_text_view_paint):
	* src/goocanvasrectview.c (goo_canvas_rect_view_paint):
	* src/goocanvasimageview.c (goo_canvas_image_view_paint):
	* src/goocanvasellipseview.c (goo_canvas_ellipse_view_paint): check
	the visibility settings to see if the items should be painted.

	* src/demo.c (setup_invisible_texts): added test for visibility
	settings.

	* src/goocanvasitem.[hc] (goo_canvas_item_create_view): removed this as
	it is mainly an internal function and the interface can be used
	directly instead where needed.

2006-03-23  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.c (goo_canvas_view_scroll_to): freeze the canvas
	while setting the adjustments so we don't redraw twice.

2006-03-22  Damon Chaplin  <damon@gnome.org>

	* src/goocanvasview.[hc]: convert to a subclass of GtkContainer rather
	than GtkLayout, since the layout code didn't help much and just added
	to the confusion. (Getting scrolling/zooming to work smoothly  is
	pretty difficult.)

	Added a goo_canvas_view_scroll_to() function to scroll to a desired
	position.

	Added an anchor setting to specify where to place the contents of the
	canvas if it is smaller than the allocated widget area. (Like the
	"center_scroll_region" setting in GnomeCanvas but a bit more general.)

	Mapped a temporary window above the canvas when zooming in/out to
	stop X from scrolling the canvas contents before it is redrawn.
	(Idea pinched from FooCanvas.) Though this could possibly cause
	problems with keyboard input in future, in which case I think we should
	drop the fancy window scrolling stuff and just scroll ourselves.

	Added an internal freeze_count like GtkLayout used to have. This is
	used while reconfiguring the scrollbars etc. so we don't scroll more
	than once (e.g. horizontally then vertically).

	Added coordinate conversion functions to convert between device units
	and canvas item units or pixels.

	* src/goocanvastextview.[hc]: create a cairo_font_options_t object in
	the class init function and use it for all created PangoLayouts.
	This ensures that text is layed out the same at any scale, which
	also avoids the problems with items not being redrawn properly
	(since the bounds were slightly wrong). Note that I was using
	cairo_set_font_options(cr) before, but that isn't picked up by Pango
	so didn't work. (Font options seem to be associated with surfaces and
	also with the graphics state which is confusing.)
