Re: GtkTreeView : Create a child row with different model than it's parent row?



Hi,

On Thu, Sep 17, 2009 at 10:49 PM, Paul Stuart <Paul_Stuart seektech com> wrote:
> Hi,
>   I have a treeview interface with five or so columns of  "stuff" (text) that spans the screen -easy- but I'd like to have the child of that row be a single progress bar that also spans the length of the screen.
>
> If I just create a column for the progress bar, when the row is expanded, the columns of the parent are pushed out of the window to make room for the progress bar.
>
>  I'd really like for all the parent columns to stay fixed in place and show the progress bar below them. Is there any way to accomplish this? It sounds like I need one treeview model for the parent row with a different model for the child nested within it.

What you would want is the column containing the progress bar cell
renderer to span all of the other columns.  A kind of column spanning
as you can also find in HTML tables.  Unfortunately this is not
possible with GtkTreeView at this moment.  It has been requested
before and is filed as enhancement in GNOME Bugzilla (see
https://bugzilla.gnome.org/show_bug.cgi?id=309474 for example).


regards,

-kris.


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