[Gtk-sharp-list] Problem with Gnome.Canvas

Sergio Paracuellos par@dragon-lance.net
Wed, 27 Oct 2004 17:30:54 +0200


--=-XDH2X8TT0LeY4zQE57ea
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi!

I have a Canvas with a CanvasGroup with a PixBufImage like a timetable
and in each rectangle of the Canvas a CanvasRect with a label (for
example).=20
If I get the CanvasItem with GetItemAt(x,y) where x e y is the position
of each of my CanvasRect that I want to delete. I do this:

CanvasWidget item =3D (CanvasWidget) canvas.GetItemAt(c.getWidget.X,
c.getWidget.Y);

/* clean a empty rectangle */
item.Widget.Visible =3D false;

c is a class with info of all of the positions in the timetable.

And the label dissapear. That's correct, but when I push again AddButton
for adding other CanvasRect:

private void OnAddSubject (object o, EventArgs args) {
addSubj =3D new AddSubjectWindow(mySubjectList,canvas.Root(), itemList);
addSubj.Show();
}

Where canvas.Root() is the main CanvasGroup Widget, the application
crash with the following error message:

(<unknown>:9487): GnomeCanvas-CRITICAL **: file gnome-canvas.c: line
3723 (gnome_canvas_request_redraw): assertion `GNOME_IS_CANVAS (canvas)'
failed


It is a bug of Gnome.Canvas? Am I doing something wrong?

Thank to all!

Regards,
	Sergio



--=-XDH2X8TT0LeY4zQE57ea
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBf78ui0GPOekbrtERAmIWAKCZM4RjUJcDaiQq+G+bL4pKfOsxWgCgkd7E
uChGIEflR2CYL3O4ioTyNZA=
=8I/w
-----END PGP SIGNATURE-----

--=-XDH2X8TT0LeY4zQE57ea--