Re: [Vala] Libgee's Roadmap proposal

2009-07-21 Thread Jiří Zárevúcky
Dne 21. červenec 2009 17:06 Jiří Zárevúcky zarevucky.j...@gmail.com napsal(a): 2009/7/21 Julien Fontanet julien.fonta...@isonoe.net: Didier Ptitjes ptit...@... writes: Jiří Zárevúcky wrote: 2009/7/20 Didier Ptitjes ptitjes at free.fr: - Are there some things missing ? Could you fit

Re: [Vala] Libgee's Roadmap proposal

2009-07-21 Thread Jiří Zárevúcky
2009/7/21 Didier Ptitjes ptit...@free.fr: Hi list, Didier Ptitjes wrote: Open questions: I'd like to add some more ideas:  - Support for disengageable collection change events Sounds interesting, but I'm not sure about a real value.  - Support for collection updatable views (aka

Re: [Vala] Libgee's Roadmap proposal

2009-07-21 Thread Jiří Zárevúcky
Dne 21. červenec 2009 19:02 Didier Ptitjes ptit...@free.fr napsal(a): In fact, as shown in C5 documentation, union, intersection, ... set-based operations are implementable with by one call of add_all, remove_all, or retain_all on a Set object. Please look at the C5 documentation for more

Re: [Vala] Libgee's Roadmap proposal

2009-07-20 Thread Jiří Zárevúcky
2009/7/20 Didier Ptitjes ptit...@free.fr: - Are there some things missing ? Could you fit in making Map interface a Collection? It is technically a collection of key-value pairs, and I see no reason why the interface shouldn't reflect it. :) ___

Re: [Vala] ownership passing problem...

2009-07-13 Thread Jiří Zárevúcky
2009/7/13 Fredderic magen...@gmail.com: To the wonderful wizards of Vala...  I need some help...  I have an object that presents certain information in a dialog.  Other instances of that object also share the same dialog.  Nothing else in the program needs to know that the Dialog even exists,

Re: [Vala] Understanding compiler... where to start?

2009-07-13 Thread Jiří Zárevúcky
) Here you have an overview of all used classes in vala-compiler. I think you can start reading at valaparser.vala (vala-version/vala/valaparser.vala) Regards Uwe 2009/7/13 Jiří Zárevúcky zarevucky.j...@gmail.com Hello everyone. It's been some time since I started learning Vala. Now that I

Re: [Vala] inherited constructors

2009-07-10 Thread Jiří Zárevúcky
As in Java, except it's base, not super. :) 2009/7/10 pancake panc...@youterm.com: I was trying to write some classes in Vala using basic inheritance but looks like the compiler does not inherits the class constructors that takes at least 1 argument. If the constructor gets no parameters it is

Re: [Vala] GLib.SList as a property

2009-07-04 Thread Jiří Zárevúcky
2009/7/5 Lucas Hermann Negri kknd...@gmail.com: Hello, I have a property of GLib.SList type, defined this way: public SListstring labels { get{return h_labels;} set{h_labels = value;} } But this leaks memory. What's the correct way of doing this? I'd generally avoid using GLib's List

Re: [Vala] Port Tomboy?

2009-07-02 Thread Jiří Zárevúcky
2009/7/2 Michael Torrie torr...@gmail.com: Jiří Zárevúcky wrote: Regardless the potential advantages of two directly comparable project, imagine what would it cause in a larger scale. gnote is already seen as a good counterpart to an evil project in the eyes of almost religionistic mono

Re: [Vala] Port Tomboy?

2009-07-01 Thread Jiří Zárevúcky
2009/7/1 Sam Liddicott s...@liddicott.com: I think you are right, and that the Vala project must be kept unconnected from the politics this struggle; but when the women get the bandages and basins of water ready, it is not to join in the fight, but to be prepared for the inevitable outcome.

[Vala] Interface distinction in class definition?

2009-07-01 Thread Jiří Zárevúcky
Hello. In Vala, derived class and implemented interfaces are defined the same say, like in C#. As this way there is no syntactical difference, C# convention states that interface names always start with I. For example, interface Foo would have name IFoo in C#. However, there is no such convention

Re: [Vala] Emitting type symbols, identifiers and type-less parameters. bugzilla 558106

2009-06-30 Thread Jiří Zárevúcky
2009/6/30 Sam Liddicott s...@liddicott.com: The question is: How shall vapi files specify: that an argument may be any type that an argument may be a non-type type, e.g. a type symbol or identifier Jürg has suggested CCode attributes; so we could try to wrap these examples like this: I

Re: [Vala] Port Tomboy?

2009-06-29 Thread Jiří Zárevúcky
Dne 29. červen 2009 16:09 Levi Bard taktaktaktaktaktaktaktaktak...@gmail.com napsal(a): Many applications that run on Mono already use managed wrappers on native gobject libraries, a prime example being gtk+. Debian users, `apt-cache rdepends libgtk2.0-cil` to see a few. The gobject api

Re: [Vala] Removal of Mono

2009-06-29 Thread Jiří Zárevúcky
2009/6/29 Levi Bard taktaktaktaktaktaktaktaktak...@gmail.com: The on topic results of the thread so far are: ...pretty worthless. Actually, there are some valuable opinions in this thread. Can we please stop the ridiculousness now? Please? There is nothing ridiculous about (most of) this

Re: [Vala] Signal connection confusion

2009-06-29 Thread Jiří Zárevúcky
Seems like a bug to me. 2009/6/29 Frederik scumm_fr...@gmx.net: Hi, why do callbacks A, C and D connect to the signal but B doesn't? What are the rules? Best Regards, Frederik ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] Port Tomboy?

2009-06-27 Thread Jiří Zárevúcky
2009/6/27 Yu Feng rainwood...@gmail.com: On Sat, 2009-06-27 at 08:03 +0100, Sam Liddicott wrote:      4. Port Tomboy as a show-case project port 4 seems to be very fun; how large is the codebase of tomboy? BTW: What is the largest show-case project driven by VALA, excluding vala itself?

Re: [Vala] Port Tomboy?

2009-06-27 Thread Jiří Zárevúcky
Dne 27. červen 2009 14:32 Raphael Bosshard raphael.bossh...@gmail.com napsal(a): Hello there, just to make think clear; I don't 'hate' Mono or despise its usage in any way. I just think that it would make sense to have some Mono-only libraries available for the whole Gnome-stack. Cheers,

Re: [Vala] Port Tomboy?

2009-06-27 Thread Jiří Zárevúcky
2009/6/27 Andrea Bolognani e...@kiyuko.org: What is the current state of interaction between Vala and Mono? I mean, would it be possible to take a useful Mono library, rewrite it in Vala, and make the Mono programs pretty much transparently use the rewrite instead of the original library?

Re: [Vala] Removal of Mono

2009-06-26 Thread Jiří Zárevúcky
Ah, another one of the anti-mono guys. Sigh... Let me tell you, that from the sole principle of how Vala works, it will never be possible to convert C# code in a mechanistic fashion. You could maybe try creating some sort of automatic converter, which wouldn't work anyway, as it would result in a

Re: [Vala] Removal of Mono

2009-06-26 Thread Jiří Zárevúcky
2009 13:48 Sam Liddicott s...@liddicott.com napsal(a): * Jiří Zárevúcky wrote, On 26/06/09 12:28: Ah, another one of the anti-mono guys. Sigh... Ah, another one of those guys who sees anti-mono guys everywhere. Let me tell you, that from the sole principle of how Vala works, it will never

Re: [Vala] Removal of Mono

2009-06-26 Thread Jiří Zárevúcky
Dne 26. červen 2009 14:41 Sam Liddicott s...@liddicott.com napsal(a): I'm not advocating the vala be able to compile C# code -- You're suggesting it. Otherwise you would mention that possibility at all. I mentioned it in order to avoid that discussion (fail fail!). I wanted to avoid the

Re: [Vala] Removal of Mono

2009-06-26 Thread Jiří Zárevúcky
2009/6/26 Michael Torrie torr...@gmail.com: Levi Bard wrote: Actually, the person in question is a fervent c++ proponent who has stated that vala is a gimmick. Perhaps someone should port tomboy to Vala just to illustrate what the language is capable, compared to both Mono and C++. I think

Re: [Vala] [Genie] Need help with for statement

2009-06-20 Thread Jiří Zárevúcky
2009/6/20 Nicolas c.r@wanadoo.fr: Hi, Someone know how can i convert this from c# to vala or genie: for (int i=0; i linesPerPage line numLines; i++) Thanks in advance for your response, Nicolas. Hello. In Vala it's exactly the same. For possibilities in Genie, take a look here:

Re: [Vala] Creating bindings for Oracle OCI

2009-06-17 Thread Jiří Zárevúcky
-06-17 at 13:24 +0200, Jiří Zárevúcky wrote: You have problem with pointers, again. ;) Once you add out, it's not a pointer anymore as far as Vala is concerned, so you have to omit the asterisk. You are essentially replacing it. 2009/6/17 Shawn Ferris shawn.fer...@gmail.com: Ooops.. Resending

Re: [Vala] libidn bindings?

2009-06-16 Thread Jiří Zárevúcky
-Functions Thanks in advance for any pointers. Dne 13. červen 2009 20:55 Jiří Zárevúcky zarevucky.j...@gmail.com napsal(a): Hello. Is there anyone working on those? There is no mention on this list or bugzilla, so I suppose there isn't. I've already started frying my brain with it. :) // Copyright

Re: [Vala] Creating bindings for Oracle OCI

2009-06-15 Thread Jiří Zárevúcky
Hello. Delegates in VAPI are, in fact, bindings to function pointer (which delegates translate to). So in order to be able to do that, there have to be those pointers defined in the C header (otherwise it won't compile with GCC). If they aren't, you can still define them, but have to use a

Re: [Vala] byte array - string

2009-06-15 Thread Jiří Zárevúcky
: uchar[] string_to_array (string input, string output_charset = utf-8); string array_to_string (uchar[] input, string input_charset = utf-8); which would solve both problems in one go. Dne 15. červen 2009 17:22 Jiří Zárevúcky zarevucky.j...@gmail.com napsal(a): Hello. It seems to me

Re: [Vala] [Genie] Help me please !

2009-06-15 Thread Jiří Zárevúcky
Your problem is that colorsel property has type Widget. You have to cast it to ColorSelection. Just two general notes about your question: - keep your questions in one thread - don't name the thread help me please. use something informative, for god's sake... 2009/6/15 Nicolas

Re: [Vala] [Patch] GCC error with markup parser

2009-06-07 Thread Jiří Zárevúcky
Dne 7. červen 2009 19:43 Yu Feng rainwood...@gmail.com napsal(a): Hi Jiri, I think it is a bug in glib-2.0.vapi. Although it looks irrelevant, this patch solves your problem. Thank you. It works, but it actually doesn't fix it completely. When I include a variable of that delegate, it won't

[Vala] GCC error with markup parser

2009-06-06 Thread Jiří Zárevúcky
Hi, I'm trying to use GLib's markup parser, but I'm getting the following error. Is that a bug or some mistake on my side? j...@jury-ubuntu:path$ valac Parser.vala -o Parser path/Parser.vala.c: In function ‘test_parser_constructor’: path/Parser.vala.c:168: error: ‘GMarkupParserStartElementFunc’

Re: [Vala] Problems with virtual extern methods.

2009-06-01 Thread Jiří Zárevúcky
I don't really think virtual and extern should be possible to combine. It doesn't make much sense IMHO. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Ownership and strings

2009-05-29 Thread Jiří Zárevúcky
Hello. I'm new to Vala and I don't really understand the ownership concept and especially in relation to string handling. There are some texts I found about it, but it all seems out of date or unfinished. Is there some tutorial that can help me understand how to work with strings? (I'm currently

<    1   2