Re: custom widget for tree-view column header



On Wed, 05 Jan 2005 17:34:14 +0100
Stefan Kost <kost imn htwk-leipzig de> wrote:
instead of passing a title I now use a onw label (because later this will be a
box with buttons and the label). I use the following code. The problem is that
the heading is blank. Any ideas.
label=gtk_label_new("abc");
gtk_widget_show(label);
gtk_tree_view_insert_column_with_attributes(
    self->priv->sequence_table,-1,NULL,renderer,
    "widget",label,
    NULL);

The attributes control what is displayed in the cells, not the header.
I think what you want is gtk_tree_view_column_set_widget.

JV
-- 
Windows 95 is crash compatible with Windows 1.0, 2.x, and 3.x.



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