I try to disable highlight on a row when it is selected for a GtkTreeView widget (default is blue background and white text color). I tried to change the STATE_SELECTED with
GtkWidget *treev_iew;
GdkColor black;
GdkColor white;
gdk_color_parse ("white", &white);
gdk_color_parse ("black", &black);
...
treeview = gtk_tree_view_new();
...
gtk_widget_modify_text(GTK_WIDGET(tree_view),GTK_STATE_SELECTED,&black);
gtk_widget_modify_bg(GTK_WIDGET(tree_view),GTK_STATE_SELECTED, &white);
...
but this doesn't seem to work. The background changes to white, but the font color stays white (not readable!). Any idea why?