Re: [Vala] Interfaces and Mixins

2010-06-19 Thread Jan Hudec
On Tue, Jun 15, 2010 at 16:09:06 -0700, Robert Powell wrote: On Tue, Jun 15, 2010 at 4:00 PM, tecywiz121 tecywiz...@hotmail.com wrote: Actually in my other interfaces, it works fine. I'm just not sure if I'm allowed to override a method declared in Flushable in Entity. Do your other

Re: [Vala] How to make brownian tree in vala?

2010-06-19 Thread Frederik
Am 12.06.2010 04:26, san hoi wrote: http://rosettacode.org/wiki/Brownian_tree I look for graphic library like javascript+canvas. A simple Cairo context should be sufficient for this task: -- /* Compile with: valac

Re: [Vala] support for Python C API

2010-06-19 Thread pancake
You can use valaswig. On Jun 19, 2010, at 5:57 AM, Celil celil...@gmail.com wrote: I am writing Python bindings to a library that is written in Vala. Currently, I need to output the header files, and write the bindings in C. However, tt would be very nice if it was possible to write then

Re: [Vala] support for Python C API

2010-06-19 Thread Arc Riley
SWIG is not writing your own bindings and, in my experience, does not result in a very Pythonic API. Unless SWIG has substantially matured, to the extent of being able to specify functions to support sequence, mapping, iteration, etc in the PyType definition, its an inadequate solution. On Sat,

Re: [Vala] support for Python C API

2010-06-19 Thread pancake
Valswig != swig Hg.youterm.com/valaswig Check radare2/swig directory of the radare2 sources On Jun 19, 2010, at 1:03 PM, Arc Riley arcri...@gmail.com wrote: SWIG is not writing your own bindings and, in my experience, does not result in a very Pythonic API. Unless SWIG has substantially

Re: [Vala] support for Python C API

2010-06-19 Thread Arc Riley
What does it not support, then, out of the PyType slots: - tp_name - can the name be set manually, or must it mimic the Vala name - tp_print - tp_repr - this is extremely important for frameworks - tp_as_number - tp_as_sequence - tp_as_mapping - tp_hash - tp_call -

Re: [Vala] support for Python C API

2010-06-19 Thread pancake
Valaswig is under development. It works for simple stuff like iterators, generics, classes, structs and other stuff. It parses a vapi file and generates a swig interface file. There's valaswig-cc command to directly compile the .so for ruby, python, python, perl and lua. - Original

[Vala] [Announce] xnoise - a media player written in vala

2010-06-19 Thread JM
I'm pleased to announce a first release of xnoise, the media player for your video and music. xnoise uses gtk+/gstreamer and comes with some nice features among these are: * Superfast startup, low memory * Can play all kind of audio/video data that gstreamer can handle. * Uses a sqlite db for

Re: [Vala] [Announce] xnoise - a media player written in vala

2010-06-19 Thread Julian Andres Klode
On Sa, 2010-06-19 at 18:45 +0200, JM wrote: I'm pleased to announce a first release of xnoise, the media player for your video and music. xnoise uses gtk+/gstreamer and comes with some nice features among these are: * Superfast startup, low memory * Can play all kind of audio/video data

Re: [Vala] [Announce] xnoise - a media player written in vala

2010-06-19 Thread andi
From looking at the website, it seems to be a no-go: It misses the menu bar. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. I think the courage to introduce new interface designs that live up to the

[Vala] augeas bindings.

2010-06-19 Thread Fabian Deutsch
Hello, attached are two patches adding bindings for augeas [1]. Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files. A

Re: [Vala] [Announce] xnoise - a media player written in vala

2010-06-19 Thread lostson
On Sat, 19 Jun 2010 18:45:59 +0200 JM interfl...@gmx.net wrote: I'm pleased to announce a first release of xnoise, the media player for your video and music. xnoise uses gtk+/gstreamer and comes with some nice features among these are: * Superfast startup, low memory * Can play all

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

2010-06-19 Thread Arkadi Viner
Hi, In my program I have declared a list of object of type PdfDocument. (PdfDocument is an object which handles one open pdf file, and provides some function like displaying it, show number of pages...) *so, the declaration look like this:* private Gee.List pdfDocuments = new

Re: [Vala] comparison of arrays in Vala

2010-06-19 Thread pancake
Struct comparison was added few time ago.. Maybe we should add the same for arrays. On Jun 20, 2010, at 1:27 AM, Celil celil...@gmail.com wrote: Hello, I just tried the following, and the assertion fails. int[] x = {1,2}; int[] y = {1,2}; assert( x == y); I suppose Vala compares

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