Re: GtkTreeView::set_model(null) not working?

From: Date: Thu, 11 Jan 2007 20:02:43 +0000
Subject: Re: GtkTreeView::set_model(null) not working?
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3569@lists.php.net to get a copy of this message
i have an application that switches models on a treeview several times during operating and it works just fine. you just have to have multiple list stores for the different views you have - or you could call clear() on your current liststore and repopulate it. $view = new GtkTreeView; $list = new GtkListStore(Gtk::TYPE_STRING); $view->set_model($list); - bob. ecc wrote:
Hi, i´ve build a application with to view-modes in one gtkTreeView... a list-mode and a detail mode. If i want initialize the treeview, i cant do that with NULL (as described in the documentation). I need this, because i have a button to toggle between this two modes. Is there a way to full reset the treeview + model, so i can refill the empty treeview from the scratch. Now i have to restart my program. :-( Regards, Andreas


« previous php.gtk.dev (#3569) next »