Thanks kksou for your feedback.
Unfortunately, since my layout is done with Glade-2, such examples do
not help me much.
I've been told (by FGM, thanks to him/her ? : -) ) that Glade-3 is
available but did not install it yet. I don't want to manually make the
layout from PHP since it will take too much time as I'm still moving
widgets around.
For those using Glade-2, I found that problems that may seem related to
PHP-GTK2 are also related to the xml file generated by Glade.
For instance if one defines a GtkComboBoxEntry in Glade-2 and never
enter anything in the 'item' field, then the XML <property
name="items"></property> line is not generated by Glade and then when
loading it with new GladeXML() won't allow to you call later
GtkComboBoxEntry->insert_text() ! Is it a problem with PHP-GTK2 or with
Glade (or both!) , I can't say, I don't know enough about both of them.
So you have to enter stuff in the item field in Glade-2 for your
GtkComboBoxEntry, remove it, save the glade file that this time will
have the needed property and then ->insert_text () works from PHP :-(
As long as workarounds are available I can go on so I won't complain
much ;-)
Bernard
kksou wrote:
--
PHP-GTK General Mailing List (
http://gtk.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php