Re: GTK TreeView Column Header Colors



* Tim Evans (t evans aranz com) wrote:
> It is possible, just not particularly obvious.  What you need to do is 
> call gtk_tree_view_column_set_widget, passing in your own label that is 
> set to display the column title.  Once the label is shown and realized, 
> call gtk_widget_get_parent three times, which should move up through a 
> GtkAlignment and a GtkHBox to give you a GtkButton.  This button is the 
> column header.  Calling gtk_widget_modify_bg on it will change the 
> background colour of the column header.

"not particularly obvious" is a bit of an understatement, but THANK YOU
very much for the information. I didn't realize you could do it that
way, but it does make sense now that I look at it.

-- 
 .''`.      Carl B. Constantine
: :' :     duckwing duckwing ca
`. `'    GnuPG: 135F FC30 7A02 B0EB 61DB  34E3 3AF1 DC6C 9F7A 3FF8
  `-  Debian GNU/Linux -- The power of freedom
  "Claiming that your operating system is the best in the world because more
  people use it is like saying McDonalds makes the best food in the world."

Attachment: pgpeNyW9aZzDY.pgp
Description: PGP signature



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