[Gtk-sharp-list] ComboBoxEntry TextColumn

Jorge Cabello jorge at aspl.es
Tue May 9 04:43:17 EDT 2006


Seems to be a problem of Glade library. If I replace the Glade
ComboBoxEntry with a new one all works fine:

  Gtk.Container cont = Combo1.Parent as Gtk.Container;
  cont.Remove(Combo1);
  Combo1 = new Gtk.ComboBoxEntry();
  cont.Add (Combo1);
  combo.Show();



El lun, 08-05-2006 a las 19:55 +0200, Jorge Cabello escribió:
> Hello,
> 
> Im having a problem with ComboBoxEntry Class:
> I have a ComboBoxEntry created with LibGlade. Im trying to set a Model
> and the TextColumn from which it has to get the string to show. Heres
> the code:
> 
>     ListStore store = new ListStore (typeof(int), typeof(string));
>     store.AppendValues (1, "Test"); 
>     Combo1.Model = store;
>     Combo1.TextColumn = 1;
> 
> Combo1 is declared as: [Widget] Gtk.ComboBoxEntry Combo1;
> 
> When I run this code I get the following error:
> Gtk:proc 18803(critical): gtk_combo_box_entry_set_text_column: assertion
> `entry_box->priv->text_column == -1' failed
> 
> Can anyone help me?
> 
> I have tested to create the ComboBoxEntry without using the TextColumn
> attribute and it runs fine.
> 
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
> 



More information about the Gtk-sharp-list mailing list