[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Colours and Text Box
- From: Andy <chandy indo net id>
- To: gtk-app-devel-list redhat com
- Subject: Re: Colours and Text Box
- Date: Thu, 17 Jun 1999 20:52:39 +0700
On Thu, Jun 17, 1999 at 09:03:20PM +1000, Aaron Kennedy wrote:
Aaron > I was just wondering if anyone knew whether or not it is possible to
Aaron > discover what colour a particular character in a GtkText box is?
Aaron > Also, is it possible to change the background of the box (not the text)
Aaron > from the default of white?
Aaron >
You can use either:
gtk_widget_set_style(textbox, sytle);
or simply define style for text box in ~/.gtkrc like this:
style "textbox" {
fg[NORMAL] = { 1.00, 1.00, 1.00 }
fg[PRELIGHT] = { 1.00, 1.00, 1.00 }
fg[ACTIVE] = { 1.00, 1.00, 1.00 }
fg[SELECTED] = { 1.00, 1.00, 1.00 }
fg[INSENSITIVE] = { 1.00, 1.00, 1.00 }
bg[NORMAL] = { 0.25, 0.27, 0.25 }
bg[PRELIGHT] = { 0.25, 0.27, 0.25 }
bg[ACTIVE] = { 0.25, 0.27, 0.25 }
bg[SELECTED] = { 0.35, 0.37, 0.39 }
bg[INSENSITIVE] = { 0.25, 0.27, 0.25 }
base[NORMAL] = { 0.25, 0.27, 0.25 }
}
class "GtkWidget" style "default"
Best regards,
Andy
--
// chandy a7 indo 607 net 607 id -------/
// Linux kernel 2.2.8 XFree86 3.3.2.3
// Glib/Gtk 1.2.2 Enlightenment 0.16
// Mozilla 4.51 -------/
Subscribe gmail Development Mailing List: gmaildev-subscribe@egroups.com
Official gmail Development Web Site : http://gmail.cakraweb.com
Personal Gnome, Enlightenment, Gtk Web Site:
http://www.linuxstart.com/~eluc1dat/eworld
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]