Re: bg-color of an entry



with rc files an example would be:
------------------rc file----------
style "textentry"
{
bg[NORMAL]= {0,0,0}
base[NORMAL]= {0.5,0.5,0.5}
text[NORMAL]= {0,0,0}
fg[NORMAL]= {.....}
}
widget "*mytextentry" style "textentry"
-----------------------------------

then if this rc file is called myrc,
and the program will have to parse the rc file with:

gtk_rc_parse ("./myrc")

and whenever it creates the entry with the call:

gtk_entry_new(..)
after that it will have to give a name "mytextentry"
to that widget pointer(say "entry") returned by the
gtk_entry_new call:

gtk_widget_set_name(entry, "mytextentry")

(this solved a similar problem for me)
regards
anuradha.
--- Oliver Buecker <o buecker fz-juelich de> wrote:
Hello,

I want to change the background color of an entry
into gray or into
white.

Can someone tell me how to do this???

Thanks a lot!

--
Mit freundlichen Grüßen
Oliver Bücker

 Forschungszentrum Juelich
      52425 Juelich

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



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