How to remove bg_pixmap from the widget style



Hi all

I am not really sure whether this is the correct list to ask this
question but...

What I want is to substitute the background on some widget. I use the
good old

 gtk_widget_modify_bg( widget, GTK_STATE_NORMAL, &bgColor );

But this does not work for gtk themes which use bg_pixmap (for example,
Glacier). So my question is what would be the correct way to deal with
it? Would it be correct to do gtk_widget_get_style, set bg_pixmap to
NULL (if it is not NULL) and then do gtk_widget_set_style? Or is there
more kosher way?
                                                                       
TIA,

-- 
Sergey

Attachment: signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=



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