Thank you, but this was about Gtk *Text* View, not Gtk *Tree* View. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martyn Russell Sent: Thursday, February 10, 2005 2:26 PM To: gtk-app-devel-list@gnome.org Subject: Re: how to programmatically set colors of a GtkTextView
On Thu, 2005-02-10 at 11:36 -0600, Boncek, John wrote: > I'm trying to set the text color and background color of a GtkTextView. > I've read Havoc Pennington's mini-FAQ. He gives the following example of > how to set a color in GTK 2.0: You can do this very easily by utilising the "foreground", "foreground- gdk", "background" and "background-gdk" attributes of the GtkCellRendererText. Note: the "-gdk" attributes use a GdkColor and the others should be ok with just "blue" I would have thought. For a list of available colours, you will need to look up what Pango supports. -- Regards, Martyn _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list