[Glade-users] problems with treeview

Alexey Kurochkin alexey.kurochkin at pathfinderlwd.com
Tue Mar 18 08:42:14 EDT 2008


On Tue, 2008-03-18 at 05:20 -0700, Atmadarshini devi dasi wrote:
> hi there
> 
> thanks for the reply...how do i go about doing what u asked me to do
> in both cases? how do i create a window to hold the treeview?
/* Goes after you called your create_view_address_window()
no glade needed then */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_container_add (GTK_CONTAINER (window), treeview);
gtk_widget_show_all (window);

> 
> which gtk_treeview_new do i remove and how do i get the widget from
> the glade file instead? sorry im a bit confused. am new to glade.
to get widget from file use glade_xml_new to read glade file and
glade_xml_get_widget to find your widget. See libglade reference manual
at http://library.gnome.org/devel/libglade/stable/ for more details and
examples and get nice gtk book http://gtkbook.com/



More information about the Glade-users mailing list