[Glade-users] a problem about GtkComboBoxEntry
- From: lnxpgn gmail com (gxw)
- Subject: [Glade-users] a problem about GtkComboBoxEntry
- Date: Wed, 11 May 2005 14:42:58 +0800
I added a GtkComboBoxEntry "mobile_cbe" to my application with glade and
then used gtk_combo_box_append_text to append string to list,but when i
run application in console,have this message:
(test:7866): Gtk-CRITICAL **: gtk_combo_box_append_text: assertion
`GTK_IS_LIST_STORE (combo_box->priv->model)' failed
in glade produced .glade file:
<widget class="GtkComboBoxEntry" id="mobile_cbe">
<property name="visible">True</property>
<property name="items" translatable="yes"></property>
</widget>
I think that gtkcomboboxentry may use gtk_combo_box_entry_New()
produce.but produced the source code with glade,in interface.c have
following lines:
mobile_cbe = gtk_combo_box_entry_new_text();
gtk_widget_show (mobile_cbe);
gtk_table_attach (GTK_TABLE (table3), mobile_cbe, 1, 2, 4, 5,
(GtkAttachOptions) (GTK_FILL),
(GtkAttachOptions) (GTK_FILL), 0, 0);
in mobile_cbe's property window of glade,input any keys to "items" then
delete,run my application again,now no problem
perhaps this is a bug
glade version:glade-gnome-2_2.6.8-2(debian sarge)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]