Re: How to change GtkEntry background



On Tue, 05 Mar 2002 15:12:51 -0500, Paul Davis wrote:

>> 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.

> did you set the 

>     base[ACTIVE] = {  }
>     base[NORMAL] = {  }
>     base[SELECTED] = {  }
>     base[INSENSITIVE] = {  }

> components to the style?

> in GTK, when text is drawn in widgets like a GtkEntry, the background
> uses the style's "base" color, not the "bg" color. this is documented
> in the reference docs, in the section on RC files.

Ah!  No, that was the problem; I've been banging my head against the
wall over this for so long -- I knew there must be a simple solution,
but damned if I could discover it.  Problem solved!  Thanks a lot.

-- 
When C++ is your hammer, everything looks like a thumb.
                                                     -- Steven M. Haflich
(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]