Re: how to change the background color of a frame (or this is mission impossible on gtk)



On Sat, 2007-09-01 at 02:05 -0700, Ofer Oshri wrote:

(another busted email client that makes "reply" not quote the original
message)

several GTK widgets do not have their own window, but instead draw
themselves on the window of their parent (or grandparent etc). Frame is
one such widget. as a result, changing its background color has no
impact, because it has no bg - its draws only "itself", not the bg of
the parent window.

if you want a frame with a defined bg, put it inside a drawing area or
event box widget, and change the bg of that.

--p





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]