Re: [PHP-GTK] Touble clearing GtkComboBoxEntry text list, some Glade related problems

[email protected] (Bernard Fouché)
Newsgroups php.gtk.general
Organization Kuantic
Message-ID <[email protected]>
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:
> Oops, just realized that you're using GtkComboBoxEntry. 
>
> There're some slight differences. The approach is the same, though.
>
> Here's the corresponding examples using GtkComboBoxEntry instead of
> GtkComboBox:
>
> http://www.kksou.com/php-gtk2/articles/setup-and-process-GtkComboBoxEntry---Part-2---using-data-view-model.php
>
> http://www.kksou.com/php-gtk2/articles/change-options-of-pulldown-menu-on-the-fly-using-GtkComboBoxEntry.php
>
> Regards,
> /kksou
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.