Hey,
I'm trying this from a very long time and I seriously need help. 
I followed the procedure as you said but I'm still not able to change the
color of the treeview column header as it is declared in GtkTreeViewColumn.
It throws an error saying assertion failed.
Is there any other way to get the headers color changed? I really need this
to get working and seems like I tried almost every method possible and
nothing seems to be working.
GtkTreeViewColumn   *col;
col = gtk_tree_view_column_new_with_attributes("First_Column",
                                                   renderer,
                                                   "text", COL_ONE,
                                                   NULL);

GtkWidget *title1;
title1 = gtk_label_new(gtk_tree_view_column_get_title(col));
   gtk_widget_show(title1);
   gtk_tree_view_column_set_widget(col, title1);
GtkWidget *sample = gtk_tree_view_column_get_widget(col);
GtkWidget *just =
gtk_widget_get_parent(gtk_widget_get_parent(gtk_widget_get_parent(sample)));
   gtk_widget_modify_bg (just, GTK_STATE_NORMAL, &blue_button);
 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview),
                                col);



--
View this message in context: 
http://gtk.10911.n7.nabble.com/Change-GtkTreeViewColumn-header-background-color-tp6742p84191.html
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to