Re: [PHP-GTK] set_pixtext()
[email protected] ("Madeleine D.") Thu, 27 Aug 2009 10:00:43 -0700
| Newsgroups | php.gtk.general |
|---|---|
| Message-ID | <[email protected]> |
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
>
>