Re: Glade XML and TreeView



> I cannot seem to figure out how to get anything to be filled into the
> TreeView widget.
>
Your problem is quite simple. Gtk::Main::run returns from the main loop
when the window is closed. So, your row will be added to the tree model
after you close the window - too late to see the row on the screen.
Fill your tree before calling run, or fill it inside a method that handles a signal
( for example, when a button is clicked ).



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