[Gtk-sharp-list] color in widgets

Miguel de Icaza miguel@ximian.com
24 Sep 2003 19:53:52 -0400


> > The color is not allocated.  See the documnetation for T:Gdk.Colormap in
> > Monodoc for examples.
> I was myself bitten by this just the other day.
> Is there any reason for why a developer should use AllocColor or
> AllocColors directly? Isn't this something that really should be hidden
> from a developer, and automatically performed in the background by the
> framework, i.e. Gdk#.

Gdk is a low-level API.  What we should do is integrate System.Drawing
or Cairo into the equation, and just use that, and not promote the use
of the low-level one.