gcompris r3607 - branches/gcomprixogoo/src/goocanvas/src
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3607 - branches/gcomprixogoo/src/goocanvas/src
- Date: Sun, 9 Nov 2008 22:24:31 +0000 (UTC)
Author: bcoudoin
Date: Sun Nov 9 22:24:30 2008
New Revision: 3607
URL: http://svn.gnome.org/viewvc/gcompris?rev=3607&view=rev
Log:
improved hit detection to avoid unecessary refresh (not sure of what I did)
fixed property name
Modified:
branches/gcomprixogoo/src/goocanvas/src/goocanvassvg.c
Modified: branches/gcomprixogoo/src/goocanvas/src/goocanvassvg.c
==============================================================================
--- branches/gcomprixogoo/src/goocanvas/src/goocanvassvg.c (original)
+++ branches/gcomprixogoo/src/goocanvas/src/goocanvassvg.c Sun Nov 9 22:24:30 2008
@@ -31,7 +31,7 @@
goo_canvas_svg_install_common_properties (GObjectClass *gobject_class)
{
g_object_class_install_property (gobject_class, PROP_SVGHANDLE,
- g_param_spec_object ("rsvg-handle",
+ g_param_spec_object ("svg-handle",
"Rsvg Handle",
"The RsvgHandle to display",
RSVG_TYPE_HANDLE,
@@ -216,6 +216,11 @@
cairo_t *cr,
gboolean is_pointer_event)
{
+ GooCanvasSvg *canvas_svg = (GooCanvasSvg*) simple;
+
+ if ((x > canvas_svg->width) || (y > canvas_svg->height))
+ return FALSE;
+
/* Don't do hit-detection for now. */
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]