[Gtk-sharp-list] combobox related problems
ksigne
ksigne.ru at gmail.com
Fri Jul 6 06:45:05 UTC 2012
Hi community, i'm newbie to mono/GTK# and having problems. I'm using
Monodevelop 3 running on Windows 7 x64.
I'm trying to fill Gtk.Combobox with data:
private Gtk.ListStore UserStore;
public LoginWindow(): base (Gtk.WindowType.TopLevel)
{
this.build();
Init();
}
private void Init () {
UserStore = new ListStore(typeof(string),typeof(int));
CellRendererText CellRender = new CellRendererText();
UserEntry.PackStart(CellRender, false);
UserEntry.AddAttribute(CellRender, "text", 0);
UserEntry.Model = UserStore;
UserStore.AppendValues("bydlo",1);
}
Unfortunately i got one empty element instead of text. The code working well
if i call .AppendValues from button click event or similar. Additionally, it
is shown as two-column, doubling text.
Does it my fault or GTK# bug?
--
View this message in context: http://mono.1490590.n4.nabble.com/combobox-related-problems-tp4650321.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list