Re: How to fill a GtkList object ?

From: Date: Sun, 28 Jan 2007 20:02:14 +0000
Subject: Re: How to fill a GtkList object ?
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7605@lists.php.net to get a copy of this message
This code does throw the error below public function sendSMS_clicked_cb() { $destAddresses = $this->glade->get_widget('destAddresses');// this is a GtkList object $hosts = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG); $hosts->insert(0, array('Fourat', 20203060)); $destAddresses->set_model($hosts); $destAddresses->set_text_column(0); } this is the error : Fatal error: Call to undefined method GtkList::set_model() in ...... localhost wrote: > > Hello all, > Am new to php-gtk, i need to to fill in some items in the GtkList object, > an example would be better than talking : > > public function sendSMS_clicked_cb() { > $destAddresses = $this->glade->get_widget('destAddresses');// this is > a GtkList object > > $model = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG); > $model->insert(0, array('Fourat', 20203060)); > > } > > and now, how can i add the inserted items in $model into $destAddresses ? > thanks > -- View this message in context: http://www.nabble.com/How-to-fill-a-GtkList-object---tf3132162.html#a8679406 Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#7605) next »