Re: Making Glade created ComboBox behave like Gtk2::ComboBox-new_text?

2005-08-23 Thread Martin Junius
muppet wrote: This works mostly by accident, because you set up your model the same way that new_text() does. append_text() merely does this (in C rather than perl, but): sub append_text { my ($combobox, $text) = @_; my $model = $combobox-get_model; $model-set

Re: Making Glade created ComboBox behave like Gtk2::ComboBox-new_text?

2005-08-22 Thread Daniel Kasak
Martin Junius wrote: Dear list, in my application I'm using empty ComboBox'es created in Glade, which are later filled with option values from a database. If the Glade file contains an empty property name=items translatable=yes /property (this happens if you type a space into the Items field

Re: Making Glade created ComboBox behave like Gtk2::ComboBox-new_text?

2005-08-22 Thread muppet
Martin Junius said: Daniel Kasak wrote: You mean the 'ComboBox' from Gtk-2.2? If so, that's been depreciated for quite a while. What version of Gtk to do have? If you've got Gtk-2.4 or higher, you should use a 'ComboBoxEntry'. It allows you to use a Gtk2::ListStore ( as you're trying to do

Re: Making Glade created ComboBox behave like Gtk2::ComboBox-new_text?

2005-08-22 Thread Daniel Kasak
muppet wrote: Martin Junius said: Daniel Kasak wrote: You mean the 'ComboBox' from Gtk-2.2? If so, that's been depreciated for quite a while. What version of Gtk to do have? If you've got Gtk-2.4 or higher, you should use a 'ComboBoxEntry'. It allows you to use a Gtk2::ListStore ( as