GtkTextView background color when not focused



Hi,

When a GtkTextView widget does not have the keyboard focus I would like
it to be grayed out, so that the user knows his keystrokes are going
elsewhere.


GdkRGBA color = {0.5, 0.5, 0.5, 1.0};
gtk_widget_override_background_color (staff->currentverse->data, GTK_STATE_FOCUSED, &color);

and the like are not doing it, because presumably these would affect the
border of the text.
I would prefer not to have to insert and remove tags from the text on
the focus signal - is there any way to achieve this otherwise?

Richard Shann




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]