Re: Horizontal TreeView?



On Tue, Feb 8, 2011 at 8:29 PM, Gabriele Greco <gabriele greco darts it> wrote:
There is a way to populate a GtkTreeView so that it grows horizontally?

I want to setup cell columns so that physically they are ROWS of the
GtkTreeView and obviously in a fixed number and to make the list grow
horizontally as long as I add elements to my GtkListStore.

I've looked in the GtkTreeView documentation but I didn't find anything that
"hints" that this is possible (something like
gtk_tree_view_set_orientation(widget, GtkOrientation) would be optimal :) ),
but I wonder if it's possible at "rc/style" level since GTK already support
right/left or top/bottom writing styles maybe it also can support
left->right lists :)

Otherwise I fear I'll have to build a custom widget, or try to see if adding
widgets that rapresent my elements inside a GtkHBox within a
GtkScrollingWindow is "good looking" enough :)

Currently treeview code does not allow this, however it's not a very difficult
feature to add in GTK+ 3.x... (so it may be a feature on the horizon, somebody
might contribute a patch that does this...).

Cheers,
             -Tristan



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