RE: how to programmatically set colors of a GtkTextView
- From: "Boncek, John" <jboncek Hunter COM>
- To: <gtk-app-devel-list gnome org>
- Subject: RE: how to programmatically set colors of a GtkTextView
- Date: Thu, 10 Feb 2005 14:42:12 -0600
Thank you, but this was about Gtk *Text* View, not Gtk *Tree* View.
-----Original Message-----
From: gtk-app-devel-list-bounces gnome org
[mailto:gtk-app-devel-list-bounces gnome org]On 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]