Re: [Vala] Crash in "ListStore.set_sort_func" callback

2011-03-21 Thread Nor Jaidi Tuah
My earlier diagnosis (vapi bug) was probably wrong. I think the culprit is the inappropriate casting here: model.set_sort_func(2, (Gtk.TreeIterCompareFunc) sort_percent2); sort_percent2 is simply not compatible with TreeIterCompareFunc hand Nor Jaidi Tuah

Re: [Vala] Crash in "ListStore.set_sort_func" callback

2011-03-21 Thread Nor Jaidi Tuah
The sort function is compiled as static gint my_app_sort_percent2 (MyApp* self, GtkTreeModel* model2, GtkTreeIter* iter1, GtkTreeIter* iter2) { According to the gtk doc, GtkTreeIterCompareFunc has this signature: gint (*GtkTreeIterCompareFunc) (GtkTreeModel *model,

[Vala] [ANNOUNCE] Gtkaml 0.4.3 - Markup language for Vala

2011-03-21 Thread Vlad Grecescu
Hello, We are proud to announce the 0.4.3 version of Gtkaml with the new Gtkon syntax. Changes in 0.4.3: - #! shebang support for Gtkon files to be used with the `gtkaml' executable - vim syntax files for gtkon and gtkaml files. (thanks panc...@nopcode.org). CDATA will never be the same. See edito

[Vala] Crash in "ListStore.set_sort_func" callback

2011-03-21 Thread Iñigo Serna
Hi, I'm having continuous crashes in "ListStore.set_sort_func" callback. I've attached a sample code to show what happens. I explain the program: a flat treeview with 3 columns: numbers, strings, and percent-strings. Ex. 17, "17", and "17%". I want a custom function to sort the percent column, so

[Vala] error with arraylist and class

2011-03-21 Thread Pavol Klačanský
Hi, this line reports me error "Feed" is class "public Gee.ArrayList get_all_feeds() {" this error server.vala:44.9-44.28: error: GVariant serialization of type `Gee.ArrayList' is not supported public Gee.ArrayList get_all_feeds() { Thanks for reply signature.asc Description: This