[Gtk-sharp-list] Gtk.DrawingArea + ModifyFG causes crash
White Spirit
wspirit at homechoice.co.uk
Fri Nov 3 18:35:36 EST 2006
Adding the following event handler to a Gtk.DrawingArea causes mono to
exit inexplicably:
private static void ConfigureEvent (object obj, ConfigureEventArgs args)
{
Gdk.EventConfigure ev = args.Event;
window = ev.Window;
Gdk.Rectangle allocation = d.Allocation;
pixMap = new Gdk.Pixmap (window, allocation.Width, allocation.Height);
d.ModifyFg (StateType.Normal, new Gdk.Color (255,255,255));
pixMap.DrawPoint(d.Style.ForegroundGC(StateType.Normal), 50, 50);
args.RetVal = true;
}
What is the proper way to assign a foreground colour when using double
buffering?
More information about the Gtk-sharp-list
mailing list