Re: Changing [entire] background of a GtkTextView
- From: Olexiy Avramchenko <olexiy irtech cn ua>
- To: Vadim Berezniker <vadim berezniker com>
- Cc: gtk-list gnome org
- Subject: Re: Changing [entire] background of a GtkTextView
- Date: Sun, 31 Aug 2003 12:30:00 +0300
Vadim Berezniker wrote:
I want to change the entire background of a GtkTextView to the
background of its parent container. Using Tags, I can only change the
background of the parts of the view with text.
Changing the background using the widget style has no effect. (The
only thing that seems possible to change is the text color).
Consider gtk_widget_modify_base() function:
GdkColor color;
color.red = 0xffff;
color.blue = 0xeeee;
color.green = 0xcccc;
gtk_widget_modify_base(GTK_WIDGET(your_text_view), GTK_STATE_NORMAL,
&color);
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]