Re: how to programmatically set colors of a GtkTextView
- From: Martyn Russell <martyn russell bt com>
- To: gtk-app-devel-list gnome org
- Subject: Re: how to programmatically set colors of a GtkTextView
- Date: Thu, 10 Feb 2005 20:26:03 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]