Re: how to get entry from GtkComboBoxEntry?

2012-09-11 Thread David Nečas
On Tue, Sep 11, 2012 at 03:29:10PM +0400, Vlasov Vitaly wrote: I wanna use some ComboBox/Entry widget: It should contain tree model with language names and hidden ISO 639-1 codes, for example English(en) German(de) Russian(ru) or other. And, in addition, it should allow to user write ISO 639-1

Re: how to get entry from GtkComboBoxEntry?

2012-09-11 Thread Vlasov Vitaly
Thank you! I don't quite get the difference between empty entry and user-typed text (she could type something and then delete it, for instance). Simple pseudo-code: button_callback(save_lang_button, ComboBoxEntry) if(combobox selected) do_work else { if(entry is empty) this_is_error()

Re: how to get entry from GtkComboBoxEntry?

2012-09-11 Thread David Nečas
On Tue, Sep 11, 2012 at 04:14:52PM +0400, Vlasov Vitaly wrote: Is gtk_bin_get_child() always return GtkEntry widget? For a GtkComboBoxEntry? Yes. But in general, it returns the only child of a GtkBin container, whatever it is for that container. Yeti