Problem with GtkFixed and expose events
- From: "Rene' Seindal" <rene seindal dk>
- To: gtk-list redhat com
- Subject: Problem with GtkFixed and expose events
- Date: Tue, 5 Oct 1999 13:11:43 +0200
I have an application with a bunch of GtkFixed containers I use to
display GtkPixmaps of playing cards. I often move the cards/Pixmaps from
one GtkFixed to another, but sometimes the area exposed by a removed
pixmap isn't cleared properly. It is not deterministic, so I suspect it
to depend on the order of the expose events sent from the X-server.
I move the pixmaps from one GtkFixed to another with a piece of code
like this:
gtk_widget_hide(pixmap);
gtk_container_remove(GTK_CONTAINER(fixed1), pixmap);
gtk_fixed_put(fixed2, pixmap, 0, new_pos);
If I don't hide the pixmap first, the exposed area is left with the
image of the pixmap much more often.
I use gtk 1.2.5 and XFree86 3.5
Does anyone else have similar problems?
--
René Seindal (rene@seindal.dk) http://www.seindal.dk/rene/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]