This code works for me for GTK 2.x: static const char color_rc[] = "style \"aaa\"\n" "{\n" "GtkTreeView::odd-row-color=\"#%04x%04x%04x\"\n" "GtkTreeView::even-row-color =\"#%04x%04x%04x\"\n" "}\n" "widget \"*.aaa\" style \"aaa\""; // removed "class \"GtkTreeView\"" because it would change all trees gchar *rc_temp = g_strdup_printf(color_rc, color.red, color.green, color.blue, color.red, color.green, color.blue); gtk_rc_parse_string(rc_temp); gtk_widget_set_name(widget, "aaa"); gtk_widget_reset_rc_styles(widget); g_free(rc_temp); I hope it helps. Regards, Miroslav On 30.9.2015. 8:51, Juan L. Freniche
wrote:
Hello, I would appreciate help in this topic: |
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list