Horizontal TreeView?

2011-02-08 Thread Gabriele Greco
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 :)

-- 
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0105761240  Fax: +39-0105760224
s-mail: Via G.T. Invrea 14 - 16129 GENOVA (ITALY)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Horizontal TreeView?

2011-02-08 Thread Tristan Van Berkom
On Tue, Feb 8, 2011 at 8:29 PM, Gabriele Greco gabriele.gr...@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
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Horizontal TreeView?

2011-02-08 Thread Costin Chirvasuta
Would GtkIconView be suitable?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Horizontal TreeView?

2011-02-08 Thread Gabriele Greco
On Tue, Feb 8, 2011 at 2:55 PM, Costin Chirvasuta cost...@gmail.com wrote:

 Would GtkIconView be suitable?


It seems that GtkIconView suffers from the same problems of GtkTreeView, it
grows only vertically, it has gtk_icon_view_set_columns(), but it doesn't
have gtk_icon_view_set_rows(), so when u add items they are arranged
vertically... also if u configure your scrolling window to resize only
horizontally...

-- 
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0105761240  Fax: +39-0105760224
s-mail: Via G.T. Invrea 14 - 16129 GENOVA (ITALY)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list