Re: GtkTreeView visible rows



On Wed, Nov 19, 2003 at 10:42:11AM +0100, stephan haller cadoritz de wrote:
Hey all out there.

Can anybode help to ensure that a GtkTreeView (used as a list) in a
GtkScrolledWindow shows exactly 3 rows even if there more than 3 rows in
the GtkTreeModel. In advance it should show only two rows if there are
only two model entries and so on. But no more than three tows.

Could you give a little more info about what you are trying to do?  

A treemodel has a fixed number of columns, so there will always be n entries
in each row, where n is the number of columns in the treemodel.  Some of
these entries, of course, may contain NULL, zero, or empty values.

When you set up your treeview, you need to specify which renderers are
associated with which columns of the treemodel.  To specify visibility on a
row-by-row basis, you could add a boolean column or columns to your
treemodel and associate this with the "visible" flag for the "data" column.
In your case, it sounds like you want a visibility column for each "data"
column (or perhaps only for each optional row if there is a fixed minimum
number of visible entries in a row.)

Dave Cook




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