Re: Gtk2::SimpleList column sizing question



On Sun, 2003-09-28 at 01:49, glen_gibson maxnet co nz wrote:
Hi all,
Hope this isn't too much of a dumb, or even picky question, but...

Is there any way to alter the width of a column in a Gtk2::SimpleList?

Gtk2::SimpleList is a conveience wrapper around Gtk2::TreeView, so once
you have created a SimpleList you can do anything on it that you can
with a TreeView. 
        $simplelist->some_tree_view_method (foo);
so basically the answer is the same what you would with a TreeView.

beyond that you'd most likely be interested in gtk_tree_view_get_column,
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeView.html#gtk-tree-view-get-column, and then take a look at 
gtk_tree_view_column_set_fixed_width, 
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeViewColumn.html#gtk-tree-view-column-set-fixed-width

those are my guesses at how to go about it.

-rm




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