[Gtk-sharp-list] Bug in Gtk.ExposeEvent versus Gtk.Realized event
Anders Rune Jensen
anders at iola.dk
Tue Dec 11 10:28:31 EST 2007
Hi
I spend god knows how long tracking this strange bug down. It appears
that changing the cursor in an expose event on a widget fails randomly
while doing the exact same thing in a realized event works fine. Fails
as in crashing the program with X error. While I shouldn't have hooked
into the expose event, any idea what might have caused the problem
other that gtk gets overloaded and this triggers a rare race
condition?
from:
widget.Expose += delegate {
widget.GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.Hand2);
};
to:
widget.Realized += delegate {
widget.GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.Hand2);
};
Seems the web page is outdated also:
This page refers to 2.4 as latest:
http://www.mono-project.com/GtkSharp
While this mentions 2.8.4?
http://www.monodevelop.com/Download
And latest in ubuntu is 2.10.2?
There's also a link to
http://svn.myrealbox.com/source/trunk/gtk-sharp/ which doesn't work
anymore.
--
Anders Rune Jensen
http://people.iola.dk/anders/
More information about the Gtk-sharp-list
mailing list