[Glade-users] gtk_combo_box_append_text() problem
- From: captain.deadly at gmail.com (Arigead)
- Subject: [Glade-users] gtk_combo_box_append_text() problem
- Date: Mon, 20 Oct 2008 15:12:06 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quick question about the combo box. In Glade (3.4.5) I've created my
interface file and in it there's a GtkComboBox. I'm trying to add to
that ComboBox's list with the function gtk_combo_box_append_text().
Basically in my C code I get the comboBox with gtk_builder_get_object()
and then call gtk_combo_box_append_text() this gives me an error:
(gmpg:12154): Gtk-CRITICAL **: gtk_combo_box_append_text: assertion
`GTK_IS_LIST_STORE (combo_box->priv->model)' failed
I've searched for this error message and can't see anything very useful.
I've looked at the spec for the function call and there's no warnings
except:
Note that you can only use this function with combo boxes constructed
with gtk_combo_box_new_text().
I've no idea if glade uses gtk_combo_box_new_text() to construct the widget.
Yes I am a newbie and wish I didn't have to ask this question.
Apologies
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI/JG1XlbjSJ5n4BARAunxAKDAVsi0xNx4MNQcFF8sprI1dRAIlQCfflgF
Y/ptcpwFEn3u6YpD++7NnuM=
=YnXy
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]