Re: set_pixtext()

From: Date: Thu, 27 Aug 2009 17:00:43 +0000
Subject: Re: set_pixtext()
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-8428@lists.php.net to get a copy of this message
CList should be replaced with GtkTreeView. Attach a GtkCellRendererPixbuf to a given column in the view and use 'set_cell_data_func' to format the cell_renderer. At the callback for that, you can then isolate a given cell/row and use 'set_property("pixbuf", $image)' to load the pixmap. hth, Madeleine D. Der Starchaser wrote:
The following old piece of code should be adapted to PHP-GTK 2 : $this->clistProjects = new GtkCList(1, array($this->ListTitle));
                $node = $this->clistProjects->append(array($Config));
                $this->clistProjects->set_pixtext($node, 0, $Config, 5, 	
$this->iconpixmap, $this->iconmask); I found no method which supports the functionality of the old set_pixtext() in PHP-GTK 2. Does anybody know a workaround ? Thank you


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