Re: multiple tree views



2011/5/3 Pavol KlaÄanskà <pavol klacansky com>:
V NedeÄa, 1. mÃj 2011 o 15:59 +0200, Colomban Wendling napÃsal(a):
Hi,

Le 01/05/2011 15:03, Pavol KlaÄanskà a Ãcrit :
Hi, I need in my about 5 and more treeviews. I created one using glade,
but I don't know how can I use it multiple times, gtk says something
like this

(client:25913): Gtk-WARNING **: Attempting to add a widget with type
GtkTreeView to a container of type GtkHBox, but the widget is already
inside a container of type GtkHBox, the GTK+ FAQ at
Âhttp://library.gnome.org/devel/gtk-faq/stable/ explains how to reparent
a widget.

You cannot pack a widget at more that one place at a time, you'll need
to create 5 tree views.
Though, if you want to display the same content in more than one tree
view, you can share the TreeModel IIRC.

Regards,
Colomban
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Hi, and can I create tree in Glade and use it as template? or Do I have
to generate them in code?

I wanna separated trees with separated storage

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


just keep spawning treeviews from your gladefile. Think of it as a
building plan, not as an identifyable object. The result of building
according the glade file "plan" will be aunique object.

Hope that helps.

Regards

Bernhard



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