GdkGC::background
Access: Read Write
Type: GdkColor
It is not possible to apply a new or existing
GdkColor to a GdkGC,
because there is no colormap there for the color to reference.
You will need to take an existing GdkColormap,
either by using gdk::colormap_get_system() or by
accessing the colormap property in the existing
GdkWindow that most widgets have, and give it
a handle. Then you do something like:
$gc->background = $colormap->alloc('lime green');
and the color is allocated intelligently.
The background color fills the areas not taken up by the foreground
color, e.g. the gaps in a dashed line will take the background color.
If you don't want this, just don't set this property.