Re: [Vala] Why no functions returning lists in libgee?

2010-07-12 Thread Didier 'Ptitjes'
Hi Martin, On 12/07/10 13:26, Martin DeMello wrote: How come libgee doesn't have any functions that return new lists (in particular list.map() and list.filter())? Is it to avoid allocation? I've been looking at porting ruby's Enumerable module to vala, but I thought I'd check first as to why

Re: [Vala] How to abort sorting in Gee.ArrayList?

2010-07-05 Thread Didier 'Ptitjes'
will try it and see what kind of results I get. Right now Im just throwing the list away in the middle of the sorting when a user moves to a new directory. It works, but its not very elegant. :) Kind regards, Christer, Sweden 2010/6/28 Didier 'Ptitjes' ptit...@free.fr mailto:ptit

Re: [Vala] Graphic toolkits for Vala?

2010-07-01 Thread Didier 'Ptitjes'
On 07/02/10 01:05, CaStarCo wrote: At the end i thought may be i could make a program to help me to create beautiful diagrams.. but never i made a program that works with editable graphic elements. ¿Whic libraries should i use? (Probably i'll program it with Vala) Maybe a vala binding for

Re: [Vala] Adding my custom object to libGee.List...

2010-06-21 Thread Didier 'Ptitjes'
On 06/21/10 11:20, Xavier Bestel wrote: On Sun, 2010-06-20 at 21:28 +0300, Arkadi Viner wrote: Thanks, that did the trick. On Sun, Jun 20, 2010 at 5:02 AM, Didier 'Ptitjes' ptit...@free.fr wrote: Hi, On 06/19/10 23:48, Arkadi Viner wrote: *so, the declaration look like this:* private

Re: [Vala] Adding my custom object to libGee.List...

2010-06-19 Thread Didier 'Ptitjes'
Hi, On 06/19/10 23:48, Arkadi Viner wrote: *so, the declaration look like this:* private Gee.List pdfDocuments = new Gee.ArrayListPdfDocument (); *and when I try to add some thing to it:* pdfDocuments.add(new PdfDocument(file_chooser.get_filename ()); *I get compilation

Re: [Vala] Strangeness with sorting using Gee ArrayList

2010-06-15 Thread Didier 'Ptitjes'
Hi folks, On 06/15/10 18:47, Dr. Michael Lauer wrote: Am 15.06.2010 um 17:52 schrieb Abderrahim Kitouni: Yes, it is. It's however fixed in git http://git.gnome.org/browse/libgee/commit/?id=06ec26321cd3a475ac10ca3d47a4e4dbb4e44e00 I wonder why this didn't result in a bug fix release. The

Re: [Vala] Gee.ReadOnlyMap could not be found?

2009-12-24 Thread Didier 'Ptitjes'
; } } 2009/12/23, Didier 'Ptitjes' ptit...@free.fr: Didier 'Ptitjes' wrote: Hi, [Cross-posting on gee-l...@gnome.org] san hoi wrote: wizbit/commit.vala:63.10-63.41: error: The type name `Gee.ReadOnlyMap' could not be found public Gee.ReadOnlyMapstring,Wiz.File streams { [...] umm

Re: [Vala] Gee.ReadOnlyMap could not be found?

2009-12-23 Thread Didier 'Ptitjes'
Hi, [Cross-posting on gee-l...@gnome.org] san hoi wrote: wizbit/commit.vala:63.10-63.41: error: The type name `Gee.ReadOnlyMap' could not be found public Gee.ReadOnlyMapstring,Wiz.File streams { [...] umm... Gee.HashMap is ok, but Gee.ReadOnlyMap is error. ReadOnlyMap is

Re: [Vala] Compile failed because of libgee.

2009-11-18 Thread Didier 'Ptitjes'
bharani deepan wrote: On 11/17/2009 06:02 PM, G.S.Alex wrote: It seems that I've meet some problems with libgee. The sample code works fine. But when I try to compile Vala toy for gedit and Vala plugin for anjuta, it syas: symbol.vala:23.7-23.9: error: The namespace name `Gee' could not be

Re: [Vala] Who updates references.valadoc.org?

2009-10-18 Thread Didier 'Ptitjes'
Hi Magnus, Magnus Therning wrote: On 16/10/09 08:29, Didier 'Ptitjes' wrote: Florian told me he would update it this WE. Excellent. I have no problems making do with the .vapi file in the meantime ;) This may finally take a little more time. So as an interim, I published the generated

Re: [Vala] Who updates references.valadoc.org?

2009-10-16 Thread Didier 'Ptitjes'
Hi Magnus, Magnus Therning wrote: I just got around to upgrading to Gee 0.5.0, but references.valadoc.org doesn't seem to have been updated yet so it's all turning out to be a bit more work than I had hoped. Who should I poke to get the Gee reference docs updated? Florian told me he would

Re: [Vala] [ANNOUNCE] Libgee 0.5.0 - GObject collection library

2009-09-29 Thread Didier 'Ptitjes'
Ildar Mulyukov wrote: Ok. But IMHO you should at least note this somewhere. And, better, put a check in configure.in I only changed it on http://live.gnome.org/Libgee. I'm sorry I should have put it in the release notes. My bad. Best regards, Didier.

Re: [Vala] Final / Sealed classes in Vala

2009-09-28 Thread Didier 'Ptitjes'
Arto Karppinen wrote: I still think that these kind of problems can be avoided in Vala code by carefully selecting what and when to virtualize. Once again to take the example of Gee. We needed to provide default behaviour for add_all, remove_all, retain_all, ... methods, but wanted concrete

Re: [Vala] Final / Sealed classes in Vala

2009-09-27 Thread Didier 'Ptitjes'
Arto Karppinen wrote: For those examples to apply to Vala, you would first have to explicitly allow something to be virtualized, and then explicitly forbid that virtualization, which would to me sound more like a design failure in the framework rather something that Vala should support. Then

Re: [Vala] Sorting a GLib.Liststring

2009-09-26 Thread Didier 'Ptitjes'
Hi Magnus, Magnus Therning wrote: What function should I use to sort a list of strings to avoid the compiler warning I get with strcmp: ... my_list.sort( strcmp ); ... Test.vala:60: warning: passing argument 2 of ‘g_list_sort’ from incompatible pointer type

Re: [Vala] Strange Map behaviour in Gee

2009-09-24 Thread Didier 'Ptitjes'
Magnus Therning wrote: 2009/9/23 Matías De la Puente mfpuente...@gmail.com: Take a look here http://live.gnome.org/Vala/Tutorial#head-7b3930bf3573a66028940bf6123b19e19a33f9a5 should be: var map = new HashMapstring, string (str_hash, str_equal); Bugger, yes you are right. I'm such an idiot

Re: [Vala] [Async] why use .begin ?

2009-09-19 Thread Didier Ptitjes
Jan Hudec wrote: I didn't notice that thing -- it's indeed good tool for the job. I would still prefer something to mark in the source that we are synchronizing an async function. Maybe a .sync() submethod to match .begin() and .end() and state clearly what is happening: .sync() is exactly

Re: [Vala] libgee on Windows

2009-09-07 Thread Didier Ptitjes
Hi Mr. Maxwell, Mr. Maxwell . wrote: I tried putting all the files in a Dev-C++ project and setting these command line options compiler-mms-bitfields -ID:/vala-0.7.4/include/glib-2.0 -ID:/vala-0.7.4/lib/glib-2.0/include linkerD:/vala-0.7.4/lib/glib-2.0.lib When I compiled the project I

Re: [Vala] [LigGee] remove_all behavior at removing same items

2009-08-02 Thread Didier Ptitjes
Hi Tomaž! Quikee wrote: In what way should remove_all work in case of removing the same items. Currently there is an inconsistency in this behavior from remove_all on AbstractCollection and the implementation in ArrayList. The AbstractCollection implementation will call remove for every

Re: [Vala] Libgee's Roadmap proposal

2009-07-23 Thread Didier Ptitjes
Re Tomaž, Quikee wrote: Anyway I have partially done this. Now I have added to collection interface methods: - is_empty() Do we make this a property or a method ? - add_all(CollectionG collection) - contains_all(CollectionG collection) - remove_all(CollectionG collection) -

[Vala] [Libgee][RFC] Making MapK, V a CollectionMap.EntryK, V - Was: Libgee's Roadmap proposal

2009-07-23 Thread Didier Ptitjes
Hi list, I thought a lot about that and I'd like to make the following proposal. Levi Bard wrote: Why not rename some of the Map methods (contains = contains_key, remove = remove_key) and then map the Collection methods as-is with G == PairK,V? First my proposal will break the API. Libgee

Re: [Vala] [Libgee][RFC] Making MapK, V a CollectionMap.EntryK, V - Was: Libgee's Roadmap proposal

2009-07-23 Thread Didier Ptitjes
Quikee wrote: I agree with the proposal but I have already tried to implement a similar thing like this and every time I tried I had a problem with iterators get method (I think I have reported this issue in bugzilla but this might be some time ago). The first thing I would do is to implement

Re: [Vala] [Libgee][RFC] Making MapK, V a CollectionMap.EntryK, V - Was: Libgee's Roadmap proposal

2009-07-23 Thread Didier Ptitjes
Levi Bard wrote: - Renaming Map.remove(K key) in Map.unset(K key) - Renaming Map.contains(K key) in Map.has(K key) - Make MapK, V inherit from CollectionMap.EntryK, V I like unset. has is not different enough from contains for my liking - I can see it being a source of future confusion

Re: [Vala] Libgee's Roadmap proposal

2009-07-22 Thread Didier Ptitjes
Hi list, I tweaked the road map to include more of the things proposed here. I did not include the little stuff, but I'll create tickets for them. The road map is published here: http://live.gnome.org/Libgee/Roadmap Thanks to Julien for its Wiki integration :) As you might note I post-dated the

Re: [Vala] Libgee's Roadmap proposal

2009-07-21 Thread Didier Ptitjes
Hi Julien, Julien Fontanet wrote: Didier Ptitjes ptit...@... writes: Yeah. I agree on that, hence my question in the first mail about exposing an interface for map entries (that key/value pairs). How is that possible, the methods' signatures do not match: - Collection.add (G item) vs

Re: [Vala] Libgee's Roadmap proposal

2009-07-21 Thread Didier Ptitjes
Hi list, Didier Ptitjes wrote: Open questions: I'd like to add some more ideas: - Support for disengageable collection change events - Support for collection updatable views (aka wrappers) - With events and views, we gain a clean implementation way for sorted list views - Collection

Re: [Vala] Libgee's Roadmap proposal

2009-07-21 Thread Didier Ptitjes
Hi, Jiří Zárevúcky wrote: 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. Often one needs to describe

[Vala] Libgee 0.1.6 - GObject collection library

2009-07-20 Thread Didier Ptitjes
I am pleased to announce version 0.1.6 of libgee, a GObject collection library. Libgee 0.1.6 is now available for download at: http://ftp.gnome.org/pub/GNOME/sources/libgee/0.1/ Changes since 0.1.5 * Fix build for Vala 0.7. * Bug fixes. libgee is a collection library providing

Re: [Vala] Libgee's Roadmap proposal

2009-07-20 Thread Didier Ptitjes
Jiří Zárevúcky wrote: 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. :) Yeah. I agree

Re: [Vala] libgee release plan?

2009-06-18 Thread Didier Ptitjes
Hello Heiko, Heiko Stuebner wrote: are informations about the release plan for libgee 0.1.6 available somewhere? It is needed for newer freesmartphone.org components, so I would be glad to know when it will be released. FIY, note that we use a git recipe on shr/import branch of OE.

Re: [Vala] Vala 0.7.3 glib 2.14

2009-05-28 Thread Didier Ptitjes
Andrew Flegg wrote: On Thu, May 28, 2009 at 05:29, Didier Ptitjes ptit...@free.fr wrote: [...] No, but the reasoning is as follows: * the build environment runs the same libraries as run on the Internet Tablet [...] I'm sorry but I still don't get the rational for that... it seems like

Re: [Vala] Extension Methods

2009-03-20 Thread Didier Ptitjes
Hi, Frederik wrote: These 'categories' are even named, so you can group these additional methods thematically. If Vala considers such a feature I would propose the following syntax: public class string category SpellChecking { // ... } public class Gtk.Widget category GLFunctionality