[gnome-db] GdauiDataStore gives incorrect values
Gergely Polonkai <[email protected]> Wed, 30 Jul 2014 08:37:11 +0200
| Newsgroups | gmane.comp.gnome.db |
|---|---|
| Message-ID | <CACczBULmECV0ERhgeQNP9MyttskYvg8bTAa2wrbwRdYvpMhwfw@mail.gmail.com> |
Hello, I have a GdaDataModel, from which I can easily fetch data, e.g. with gda_data_model_get_value_at(). As for an external function I need the returned data in a struct, I tried to use GdauiDataStore: store = gdaui_data_store_new(result); If I get an iter to the wirst row with gtk_tree_model_get_iter_first(store, &iter), it returns TRUE. I can query the row number with gdaui_data_store_get_row_from_iter(), which returns 0 as it should (I guess). Now, if I try to fetch the ID column (first column in result, type integer) with gtk_tree_model_get(store, &iter, 0, &test_int, -1), it puts some really weird value in test_int instead of what I expect. Do I miss something? According the docs that's all I should do, but it seems not enough. Thank you in advance! Best, Gergely _______________________________________________ gnome-db-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-db-list