[Vala] cleaning and refreshing vbox

2011-08-09 Thread Pavol Klačanský
In attachment is source I have problem that, after calling fetch() feed list is not updated and I don't know why, printf() reports there are new entries, but they are not displayed class Feed : Gtk.EventBox { public string _id; public string _title; public string _link; public

[Vala] sorting arraylist

2011-08-04 Thread Pavol Klačanský
Hi, is this deprecated? if so, what should I use, or shoudl I write sort of my own sort_with_data((CompareDataFunc) sort_func_items); and why this cannot be in object as method? int sort_func_items(Item item1, Item item2) { if (item1._date item2._date) { return 1;

[Vala] this in objects

2011-08-03 Thread Pavol Klačanský
Hi, why somebody uses this. prefix and somebody doesn't, I have tried and it worked with or without it ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] converting int to string

2011-08-02 Thread Pavol Klačanský
Hi, why this not work? root_object.has_member((string)feed_index) and I have to use this? root_object.has_member(feed_index.to_string()) thx ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] error with arraylist and class

2011-03-23 Thread Pavol Klačanský
(a): Il giorno lun, 21/03/2011 alle 21.10 +0100, Pavol Klačanský ha scritto: Hi, this line reports me error Feed is class public Gee.ArrayListFeed? get_all_feeds() { this error server.vala:44.9-44.28: error: GVariant serialization of type `Gee.ArrayListFeed?' is not supported

[Vala] vala compiler crash at GEE lists

2011-03-22 Thread Pavol Klačanský
Hi, why this not works? I looked at shotwell code, and it is written same way in it ** (valac:4554): CRITICAL **: vala_gvariant_module_get_basic_type_info: assertion `signature != NULL' failed server.vala:44.9-44.28: error: GVariant serialization of type `Gee.ArrayListFeed?' is not supported

[Vala] error with arraylist and class

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

[Vala] two dimensional arrays

2011-03-20 Thread Pavol Klačanský
Why this doesn't work? I need some help with two dimensonal arrays class test : GLib.Object { struct Field { string name; string val; } public static int main(string[] args) { int row = 0, col, cols = 5;

[Vala] as word

2011-03-18 Thread Pavol Klačanský
var window = builder.get_object(window) as Gtk.Window; what means this word in this string? signature.asc Description: This is a digitally signed message part ___ vala-list mailing list vala-list@gnome.org

[Vala] subclasses in vapi

2011-03-16 Thread Pavol Klačanský
Hi, is there way to define them? signature.asc Description: This is a digitally signed message part ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] couchdb creating design doc

2011-02-02 Thread Pavol Klačanský
Hi, I don't know why it doesn't create views in couchdb :/ could you help me? I am new in vala public class Database { public DesktopCouch.Session session; public CouchDB.Database db; private string db_name = speedyrss; public struct Field { string name; string val; } // constructor

[Vala] functions and null

2011-01-19 Thread Pavol Klačanský
Hi, why this code doesn't work Item item = null; parse_content(item); parse_content(Item item) { stderr.printf(argh); } reports ** (process:674): CRITICAL **: xml_parser_parse_content: assertion `item != NULL' failed signature.asc Description: This is a digitally signed message part

[Vala] mandatory this. in classes?

2011-01-17 Thread Pavol Klačanský
Hi, why works this? public class Test { public int test; public Test() { stderr.printf(%d, test); } } why is not this. preffix mandatory? signature.asc Description: This is a digitally signed message part

[Vala] uuid binding

2011-01-04 Thread Pavol Klačanský
Hi, is there working uuid bindings? thanks signature.asc Description: This is a digitally signed message part ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] contructor

2011-01-04 Thread Pavol Klačanský
class xml_parser { private database db; public void construct (database db) { this.db = db; } /home/pk/Programming/speedyrss/src/xml_parser.vala.c:155:13: error: conflicting types for ‘xml_parser_construct’

Re: [Vala] contructor

2011-01-04 Thread Pavol Klačanský
but this works, I think it has something to do with construct class xml_parser { private database db; public void xml_parser (database db) { this.db = db; } V Utorok, 4. január 2011 o 16:17 +0100, Dr. Michael Lauer napísal(a): Welcome to the wonderful

[Vala] parsing RSS file in Vala

2010-12-12 Thread Pavol Klačanský
Hi, I have written just simple Vala program, which should print out name of root element Without this line it works ?xml version=1.0 encoding=windows-1250? (first line in RSS xml files) OUTPUT $ ./xml_parser rss.xml encoding error : input conversion failed due to input error, bytes 0x88 0x6F