Re: Gtk2::SimpleList



On Sun, 2004-05-16 at 21:15, Daniel Kasak wrote:
Chris Debenham wrote:

The width can be set on each column by using
$column->set_sizing('GTK_TREE_VIEW_COLUMN_FIXED');
$column->set_fixed_width($width);

Chris

Thanks for the response :)

Is there a way of getting hold of a column that's been created via:
Gtk2::SimpleList->new_from_treeview() ?

I can see how to create new columns:
$col = Gtk2::TreeViewColumn->new_with_attributes()

Maybe I could still use Gtk2::SimpleList->new_from_treeview() but not 
give it any columns right away, and then do:
$col = Gtk2::TreeViewColumn->new_with_attributes()
$simplelist->append_column($col)
afterwords.

Is that the best way of doing it?

at that point (no letting it create the columns and renderers for you,
you've basically gotten rid of half of the usefulness of SimpleList. 

you should be able to do anything to a simplelist you can with a
TreeView. so $slist->get_column should get you what you need.

-- 
-rm






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