[Gtk-sharp-list] Gtk.Label.ModifyBg Problems

Todd Berman tberman@off.net
Sun, 03 Apr 2005 01:32:18 -0800


On Sat, 2005-04-02 at 15:20 -0500, Gregory Hayes wrote:
> If I am approching this wrong, let me know. I attempted to do this
> with a Gtk.Drawable, but I could never seem to render a Pango layout
> to it...

Gtk.Label is a NoWindow widget, so in order to do what you want you have
to create an EventBox, put the Label inside of it, and call
EventBox.ModifyBg

--Todd