"ghost" image on canvas
- From: Diego Zuccato <diego otello alma unibo it>
- To: gtk-list gnome org
- Subject: "ghost" image on canvas
- Date: Sat, 14 Dec 2002 13:38:28 +0000
I'm (still :-( ) having problems with gdk pixbuffs and canvas.
I've been able to put a jpg and a pnm on a canvas, but when I move the
png the first time, it leaves a ghost image. After that, I can move it
without problems (and without ghosts).
gnome_canvas_pixbuf_get_type(), "pixbuf", pb, "x", dx, "y", dy, NULL));
Here the pixbuf is placed correctly, centered at 0,0 - only the 4th
quadrant is visible. If now I do
gnome_canvas_item_move(GNOME_CANVAS_ITEM(o), x, y);
the pixbuff moves, but I still see the previous position too.
I'm sure I'm doing something stupid, but can't find WHAT.
I tried whithout dx and dy when creating the item, hiding and
redisplaying it before/after moving... And noticed that even if I don't
redisplay it the ghost is there, like it's been copied on the existing
I know, I'm a chicken, but I can't avoid it :-)
] [Thread Prev