Re: Editable lists and trees

From: Date: Tue, 20 Dec 2005 20:44:58 +0000
Subject: Re: Editable lists and trees
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6457@lists.php.net to get a copy of this message
Christian Weiske wrote:
Also I tried to make a column in a ListView editable like this $column = new GtkTreeViewColumn("Description", $cell_renderer2, "text", 1, "editable", TRUE); but it doesn't work also.
I don't think it works that way - but I don't know how to do it either. I'm currently busy with the docs and might have some time later on to look at this, sorry.
I haven't created a test script for this or anything but have you tried something like: $cellRenderer = new GtkCellRenderer(); $cellRenderer->set_property('mode', Gtk::CELL_RENDERER_MODE_EDITABLE); $column = new GtkTreeViewColumn("Description", $cell_renderer2, "text", 1); If my understanding of the gtk.org docs is right, that should do the trick. Scott

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