help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] GtkComboBox doesn't understand me...


From: Joachim Jaeckel
Subject: [Help-smalltalk] GtkComboBox doesn't understand me...
Date: Fri, 29 May 2009 10:29:17 +0200
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Hello again,

I'm currently facing a problem (or maybe I'm to blind to see my error).

I try to fill a GtkComboBox (with the "Text" Version, everything works, but I'd like to use the part with the seperate model) with the following code:

---snipp--

listModel := GTK.GtkListStore new: 1 varargs: {GTK.GValue gTypeString}.

iterator := GTK.GtkTreeIter new.
listModel append: iterator;
          setOop: iterator column: 0 value: 'One'.

iterator := GTK.GtkTreeIter new.
listModel append: iterator;
          setOop: iterator column: 0 value: 'Two'.

iterator := GTK.GtkTreeIter new.
listModel append: iterator;
          setOop: iterator column: 0 value: 'Three'.

combobox := GTK.GtkComboBoxEntry new.
combobox setModel: listModel;
         setActive: 1.

---snipp---

And I see, that the ComboBox contains 3 entries (through the space, which is used if the ComboBox is opened) But all entries are empty.

Maybe you can point me to my mistake?

Thanks in advance,
Joachim.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]