- 論壇徽章:
- 0
|
我用gtk_list_store_remove(GTK_LIST_STORE(model), &iter);刪除一行,出錯(cuò),不能刪除行。報(bào)錯(cuò)如下:
(intellimonitor:5320): Gtk-CRITICAL **: gtk_list_store_get_value: assertion `VALID_ITER (iter, list_store)' failed
(intellimonitor:5320): GLib-GObject-WARNING **: gtype.c:4177: type id `0' is invalid
(intellimonitor:5320): GLib-GObject-WARNING **: can't peek value table for type `<invalid>' which is not currently referenced
我認(rèn)為這個(gè)iter是正確的,因?yàn)槲以趧h除的前面能得到其中的列數(shù)據(jù)。
還有,liststore中列的數(shù)據(jù)是從postgresql數(shù)據(jù)庫(kù)中取出來(lái)的。
還有,gtk_list_store_clear()也不行,同樣的錯(cuò)誤。 |
|