how to get entry from GtkComboBoxEntry?

2012-09-11 Thread Vlasov Vitaly
Hello list. 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 language code from keyboard. So, with tre

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

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 _

Re: glib array help

2012-09-11 Thread Rudra Banerjee
On Tue, 2012-09-11 at 12:16 +0700, Ardhan Madras wrote: > As I already told you, this is a basic programming error but you event > didn't notice it. So please find good C books and references out there > and start learn how to write C program. > Yes, I am also feeling that I need to learn C a fres