Re: Changing [entire] background of a GtkTextView



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]