Re: How to change GtkEntry background



On Tue, 05 Mar 2002 04:23:28 -0500, Paul Davis wrote:

>> I want to display some data in an array of Entry widgets, and I'd like
>> to change the text background on a per-widget basis to represent a few
>> bits of other data associated with each entry.  Is it possible?  I can
>> only get a single-pixel-width line around the border to change colour,
>> which is not very helpful.
[...]
> so, in your case, you need a RC file like

>     style "foo" {
>        ... style definition ..
>     }
    
>     widget "*Foo" style "foo"

> and then in your code:

>     gtk_widget_set_name (widget, "Foo");

Thanks, but I already tried that -- that gets me a single pixel wide
line around the border, but it doesn't affect the text background.

-- 
Don't worry about people stealing your ideas. If your ideas are any good,
you'll have to ram them down people's throats.
                                                          -- Howard Aiken
(setq reply-to
  (concatenate 'string "Paul Foley " "<mycroft" '(#\@) "actrix.gen.nz>"))



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