switch cursor color in libsourceview



Hello,

i want to have a red cursor-color on black background in a GtkTextView ( which is a Widget of GtkSourceView ).

Therefore i found this:

.
.
gtk_widget_set_name ( GTK_WIDGET ( data->view ) , "codeview" );
gtk_rc_parse_string ( "style \"default-codeview\" { GtkTextView::cursor_color = \"red\" }\nwidget \"*.codeview\" style \"default-codeview\"\n" );
.
.

and it works, but worst, because its like that:

The color is original as i open the TextView, if i had a GtkDialog open,
then the color affectively switches as described trough gtk_rc_parse_string .
That fails my effort.

Some help??

thx
chab





___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



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