I hope somebody finds helpful this function. I use it to set my own rules hint colors:
tree_data_func (GtkTreeViewColumn *col,
GtkTreePath *path = gtk_tree_model_get_path (model, iter);
gint *ind = gtk_tree_path_get_indices (path);
if((*ind % 2) != 0)
g_object_set(renderer,"cell-background", "LightGreen", "cell-background-set", TRUE, NULL);
g_object_set(renderer, "cell-background-set", FALSE, NULL);
It's possible to enhance the function by receiving the color as a parameter.
I would appreciate if it is posted a better way to do this.