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

From: Date: Thu, 11 Jan 2007 22:54:59 +0000
Subject: Re: GtkTreeView::set_model(null) not working?
References: 1 2  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3570@lists.php.net to get a copy of this message
Hi, i´ve used this too. But my problem is.... Im using glade. The TreeView is in the glade file. I connect all signals to this Treeview. If i then unset the old treeview (from glade), i have lost all signal connections! I need to initialize the treeview/model complete, but need the allready connected signals. Have you an idea. Btw.. is this a bug or not? bob majdak jr wrote: > > 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 >> > > -- > PHP-GTK Development Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://www.nabble.com/GtkTreeView%3A%3Aset_model%28null%29-not-working--tf2960076.html#a8288348 Sent from the Php - GTK - Dev mailing list archive at Nabble.com.

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