[Gtk-sharp-list] ComboBox problem

doza doza at sztorm.net
Sun Sep 10 20:37:52 EDT 2006


One more issue - here is code in Boo that sets up a combo:

sourceComboBoxEntry.Clear()
sourceComboBoxEntry.Model = mw.AccountStore.ComboStore
renderer = CellRendererText()
sourceComboBoxEntry.PackStart(renderer, true)
sourceComboBoxEntry.AddAttribute(renderer, 'text', cast(int,
AcCol.Name))
sourceComboBoxEntry.TextColumn = cast(int, AcCol.Name)

Whole things works ok, but I always get on console:

Gtk-CRITICAL **: gtk_cell_layout_set_attributes: assertion
`GTK_IS_CELL_RENDERER (cell)' failed

I have absolutely no idea why this happens. Error disappears when I
comment out the last line, but I need it and it seems to work right.
Could it be some bug in GTK#?

-- 
Dominik Zablotny
xmpp:doza at sztorm.net



More information about the Gtk-sharp-list mailing list