change cursor-color of GtkTextView



Hello,

just wanna now if it's possible another way to change the cursor-color of GtkTextView.

Have it this way:

//      coloring
gtk_widget_set_name ( GTK_WIDGET ( text_view ) , "code_view" );
gtk_rc_parse_string ( "style \"default-code_view\" { GtkTextView::cursor_color = \"red\"\n }\nwidget \"*.code_view\" style \"default-code_view\"" );


..as i see through this, the Properties seem to be accessible another way...

GParamSpec **par;
char string[256];
int y,z;

par = gtk_widget_class_list_style_properties ( GTK_WIDGET_GET_CLASS ( text_view ) , &z );

for ( y = 0 ; y < z ; y++ ) {
        strcpy ( string , par[y]->name );
        write ( 1 , string , strlen ( string ) );
        write ( 1 , "\n" , 1 ); }


...but how to change the GtkRcStyle-Properies??


Greets
chab





___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de



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