[Glade-users] a problem about GtkComboBoxEntry



On Wed, 2005-05-11 at 14:42 +0800, gxw wrote:
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)

Yes, I think there may be a bit of inconsistency here. It shouldn't
output the "items" property or create the combo's model if no items are
specified.

Damon






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