GtkTextView insensitive color?



Hi,

I've got a GtkTextView widget (made insensitive under various
conditions), however the text is always rendered black. All other
widgets grey out text when made insensitive.

This is with the Clearlooks theme, however it happens the same for all
themes I have installed.

I've tried:

    GdkColor color;
    gdk_color_parse ("red", &color);
    gtk_widget_modify_text( textview, GTK_STATE_NORMAL, &color );
    gdk_color_parse ("green", &color);
    gtk_widget_modify_text( textview, GTK_STATE_INSENSITIVE, &color );

which correctly changes the normal text color, however when the widget
is made insensitive, it stays red.

Is this behaviour intentional? If so, what is the cleanest way to
override it and get a "standard" (theme dependent) insensitive color.
-- 

Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)




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