Re: How to make a TreeView use markup?



On Di, 2006-08-22 at 00:24 +0300, Paul Pogonyshev wrote:
> Torsten Luettgert wrote:

> Snippet from my program:
> 
>   Gtk::CellRendererText&    name_renderer = *manage (new Gtk::CellRendererText ());
>   Gtk::TreeViewColumn&	    name_column   = *manage (new Gtk::TreeViewColumn ("", name_renderer));
> 
>   name_column.add_attribute (name_renderer.property_text (),   _category_columns._name);
>   name_column.add_attribute (name_renderer.property_weight (), _category_columns._name_weight);
> 
>   _categories_tree->append_column (name_column);
> 
> So I guess that `.property_markup ()' should do the trick, but I didn't
> try.

Works like a charm :-)

Thanks,
Torsten




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