Re: [Vala] c and c++

2008-05-17 Thread Matías De la Puente
2008/5/17 Martin (OpenGeoMap) [EMAIL PROTECTED]: Hello martin, i was trying to make a binding for GSL but the problem I had was that I could not give a structure as a parameter to a function. For example with the gsl_complex_arg you need a structure gsl_complex; VALA only deliver

Re: [Vala] wiki and bindings added

2008-05-17 Thread Matías De la Puente
hola, Cual es la dirección de la wiki para subir los bindings? Matias ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] wiki and bindings added

2008-05-17 Thread Matías De la Puente
i don't have an account so i will post the binding here.. Matias ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Partial GSL Binding (Complex and statistics)

2008-05-17 Thread Matías De la Puente
hello to everyone, here is a partial binding of GSL. I will add the rest as soon as I write it. attachments should be copied to the vala/vapi folder Here's an example: // test.vala // compile with: valac test.vala --pkg gsl using GLib; using Gsl; public class Test : GLib.Object { public

Re: [Vala] wiki and bindings added

2008-05-17 Thread Matías De la Puente
ok, i created and added the partial binding in the vala page. Matias ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] GSL Binding updated!!!

2008-06-13 Thread Matías De la Puente
Hello everyone, I updated the GSL binding for vala, the modifications are: + use of 'namespace' insted of 'public static class' for general functions + implementation of the 'new' operator in all the objects (see samples: http://live.gnome.org/Vala/GSLSample) + use of [Compact] attibute in all

Re: [Vala] GSL Binding updated!!!

2008-06-13 Thread Matías De la Puente
2008/6/13 Martin (OPENGeoMap) [EMAIL PROTECTED]: hello matias: + implementation of the 'new' operator in all the objects (see samples: http://live.gnome.org/Vala/GSLSample) great. We don´t need free pointers now hehe. + use of [Compact] attibute in all the objects ??? I am not sure

[Vala] GSL and OpenGL Binding

2008-06-18 Thread Matías De la Puente
Hello everyone, I update again the GSL binding, the only change was the replacement of 'setv', 'getv' and other methods of some object with @set and @get. See samples (http://live.gnome.org/Vala/GSLSample) About the OpenGL binding, I need to know the header files used by OpenGL. So far I have

[Vala] OpenGL and gtkglext Bindings!!!

2008-06-21 Thread Matías De la Puente
Hello everyone, I add the OpenGL (gl.vapi and glu.vapi) and gtkglext (gtkglext-1.0.vapi) bindings!!! There are all the consts, functions, enums, objects, etc.. But I need testers for this bindings because maybe there is typing errors. Compile the sample code in this mail with: valac prueba.vala

Re: [Vala] Using Vala under syscall

2008-07-08 Thread Matías De la Puente
Kamel: You can write vapi files with the structures, functions and constants of every header file. Here is a little example: io.vapi: [[CCode (lower_case_cprefix =, cheader_filename=sys/io.h) namespace Io { public static int ioperm (ulong from, ulong num, bool turn_on); public static

[Vala] Problem with get_table and free_table in sqlite binding

2008-07-09 Thread Matías De la Puente
Hi all, Someone was able to use the get_table and free_table functions in the sqlite binding? See this bug for more information: http://bugzilla.gnome.org/show_bug.cgi?id=542235 Matias ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] Problem with get_table and free_table in sqlite binding

2008-07-15 Thread Matías De la Puente
Ok, I Fix the bug!! Change get_table and free_table of sqlite3.vapi with this: [NoArrayLength] public int get_table (string sql, out weak string[] resultp, out int nrow, out int ncolumn, out weak string errmsg); [NoArrayLength] public static void free_table (string[] result); Remember to use

Re: [Vala] GObject Extensions

2008-07-18 Thread Matías De la Puente
2008/7/17 Yu Feng [EMAIL PROTECTED]: Hi Matias, 1. Gdk.Window isn't a GObject. Gdk.Window IS a GObject, you can see this in http://library.gnome.org/devel/gdk/stable/gdk-Windows.html#GdkWindow Object Hierarchy GObject +GdkDrawable

Re: [Vala] GObject Extensions

2008-07-18 Thread Matías De la Puente
2. I think once the class definition is closed, you can't extend it, but I agree with you that once the class definition is closed we can't extend it. But in this case the gtkglext functions extend the GdkWindow object to bring OpenGL capabilities to some GObjects.

Re: [Vala] OpenGL and gtkglext Bindings!!!

2008-08-06 Thread Matías De la Puente
Hi Everyone: I updated the opengl vapi files, they have some writing errors but they work fine... I made a glx binding but still testing ... Zeeshan: I make the parameter nullable but the other think I can't make it work. I think it is a vala bug... here is an example to test: using GLib;

[Vala] OpenGL Binding: Grouping the constants in gl.vapi and glu.vapi

2008-08-09 Thread Matías De la Puente
Hello all, There's someone with experience in opengl?. Because I'd like to modify gl.vapi and glu.vapi files for grouping, in the best way, the constants... For now i can group the data types but for the rest is dificult because I can't find a proper documentation that explain some kind of

[Vala] OpenGL definitive binding and samples

2008-08-09 Thread Matías De la Puente
Hi, all I finally update the OpenGL bindings (gl.vapi and glu.vapi). The bindings were made in a traditional way (glBegin(GL_TRIANGLES)) because the all the avaible documentation describes the functions like this.. And will be more easy to port opengl source code to vala. Samples can be found

[Vala] GLX (OpenGL Extension to the X Window System) binding!!

2008-08-13 Thread Matías De la Puente
Hello all, I made a glx binding for vala (glx.vapi). An example is also attach to this mail. For compile the example you need also the gl.vapi file ( http://live.gnome.org/Vala/ExternalBindings). Compile the example with: valac glxtest.vala --pkg gtk+-2.0 --pkg glx --pkg gl --pkg gdk-x11-2.0

Re: [Vala] array of function pointer

2008-08-14 Thread Matías De la Puente
2008/8/14 picca [EMAIL PROTECTED] Hello I am playing with the Gsl.vapi file. Great!! I think i was the only one.. here the definition of a delegate type in this vapi file (no CCode for now) static delegate int MultirootF (Vector x, void* params, Vector f); PS: The real c type of the

Re: [Vala] RE : array of function pointer

2008-08-14 Thread Matías De la Puente
2008/8/14 PICCA Frédéric-Emmanuel [EMAIL PROTECTED] Great!! I think i was the only one.. Thanks for the work you have done with GSL. I found 2 errors in the current .vapi. I will send you a patch in a next email, Great, I will update! don't you think that this vapi file can be part

Re: [Vala] RE : RE : array of function pointer

2008-08-14 Thread Matías De la Puente
2008/8/14 PICCA Frédéric-Emmanuel [EMAIL PROTECTED] Yes, could be. We need to test it more. I see the link to the external vapi bindings in http://www.gnu.org/software/gsl/ (section extensions/applications). For me it's just fine... Yes but do you have a repository for the gsl.vapi ?

[Vala] Posix binding!!

2008-08-18 Thread Matías De la Puente
Hello all, Lastnight I made the first Posix binding!! The vapi file have implementation of: * fcntl.h * unistd.h * errno.h * termios.h * signal.h * and some others There's a lot of function, constants and structures in the vapi file but maybe are missing, Please feel free to post patches,

Re: [Vala] Posix binding!!

2008-08-19 Thread Matías De la Puente
2008/8/19 Luca Dionisi [EMAIL PROTECTED] Is this one a mispelling? :) public static void assert (string expresion); je je :-) In English, yes. In Spanish (my native language), no. I will correct this for english ___ Vala-list mailing list

Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-22 Thread Matías De la Puente
Hi Yu I patch the glib.vapi changing Markup delegates http://bugzilla.gnome.org/show_bug.cgi?id=553282 I done that to use this inside the method of the class. With this you can access the members and function of the class that aren't static. here is a working example compiled with vala 0.4.0

Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-22 Thread Matías De la Puente
Thanks for the clarifying! But I am still curious why my code didn't work. class MyClass { public static MarkupParser p; void somefunction() { p.start_element = start_element; } void start_element(MarkupParseContext context, string element_name, string[]

Re: [Vala] Vala on Windows

2008-11-07 Thread Matías De la Puente
2008/11/6 Alexei Vinidiktov [EMAIL PROTECTED] 2008/11/6 Matías De la Puente [EMAIL PROTECTED]: Hi I have try this and it work without problems. Another think to add to valac is -X -mwindows because when i use gtk and execute my app opens a terminal and a window. I've tried adding -X

Re: [Vala] Vala on Windows

2008-11-07 Thread Matías De la Puente
2008/11/6 gege2061 [EMAIL PROTECTED] 2008/11/6 Matías De la Puente [EMAIL PROTECTED] Could be great to have this packege only with vala in a zip file, because mingw32, gtk for windows and others came in separate zip file. so when i have to update a version just download the zip file

[Vala] xpm file in vala

2008-12-13 Thread Matías De la Puente
Hello all!! I want to access a xpm file from vala, i created this vapi file: namespace MyXpms { [CCode (cname=my_xpm, cheader_filename=my.xpm)] public string[] my_xpm; } vala generates this #include my.xpm but i want this #include my.xpm Is there a way to specify a local header file? My

Re: [Vala] [ANNOUNCE] Vala Toys for gEdit 0.1.0

2008-12-17 Thread Matías De la Puente
2008/12/16 Andrea Del Signore seje...@tin.it I'm proud to announce the first release of Vala Toys for gEdit a.k.a. Who is Valdo? Congratulations!! I just installed in my system and it's working ok. I just submitted the PKGBUILD for building your packeg in the AUR repository of

Re: [Vala] [ANNOUNCE] Vala Toys for gEdit 0.3.0

2009-01-08 Thread Matías De la Puente
Hi Andreas, 2009/1/8 Andrea Del Signore seje...@tin.it Another stable vala release and a new vtg 0.3.0 release: Vala Toys for gEdit - Where is the snow? Great!! Congratulations, great job. * New simple and version control system based ChangeLog support. Just press CTRL+SHIT+C

Re: [Vala] just a suggestion

2009-01-21 Thread Matías De la Puente
2009/1/21 Luca Dionisi luca.dion...@gmail.com On Wed, Jan 21, 2009 at 10:28 AM, Karl Lattimer k...@qdh.org.uk wrote: On Wed, 2009-01-21 at 10:24 +0100, Luca Dionisi wrote: I suggest that, prior to copy-paste existing sources or however inserting content, we decide on a summary. Subject to

Re: [Vala] How to wrap select(2)'s fd_set?

2009-01-29 Thread Matías De la Puente
Hello Michael, Please refer to this bug http://bugzilla.gnome.org/show_bug.cgi?id=555250#c6 Juerg doesn't want to wrap into an object the posix functions... Yesterday I updated the posix.vapi with more constants, functions and structs... Matias ___

[Vala] Type of data in TreeView

2009-01-31 Thread Matías De la Puente
Hello all, I want to add any type of data to a TreeView. What is the best option to do this ? a) a void* type: var tree_store = new TreeStore (2, typeof (string), typeof (void*)); b) a generics type: public class Gen G : GLib.Object { private G _data; public void set_data (G data) { _data =

[Vala] [Having fun with Vala] Multiboot kernel using Vala!

2009-02-09 Thread Matías De la Puente
Hello all!, I was playing with vala to see if it's posible to write a minimal kernel using vala. Based in the multiboot sample ( http://www.gnu.org/software/grub/manual/multiboot/html_node/Example-OS-code.html), I was able to wrote a minimal multiboot kernel in vala. ;) I wrote a multiboot

Re: [Vala] GSL binding problem: OdeivEvolve::apply

2009-03-09 Thread Matías De la Puente
Hi, Yu I'm on it :) Matias ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Creating executables without glib/gobject

2009-03-11 Thread Matías De la Puente
Hi Barry: 2009/3/11 Barry Kauler bkau...@gmail.com Matías De la Puente, I am very interested in what you have done, with your Multiboot code. I'm wondering how far this can be pushed. Is it feasible to code in a subset of Vala/Genie such that Glib/Gobject is not required, only the C library

Re: [Vala] Q: release precompiled sources?

2009-04-14 Thread Matías De la Puente
Hi lode, 2009/4/14 lode leroy lode.le...@gmail.com I wonder if it's possible to pre-compile vala code to C and make a release of the pre-compiled code, so that it can be compiled on the target platform without vala installed? a bit like autotools that generates a configure file that works

Re: [Vala] Problem converting library

2009-05-15 Thread Matías De la Puente
2009/5/15 Nicolas c.r@wanadoo.fr Hi, I'm trying to port a non Glib library, and i have some problems. For example, when vala-gen-introspect try to convert this: You have to use vala-gen-introspect only for Glib/GObject based libs. For non-Glib libraries you have to write the vapi file

Re: [Vala] Inheritance and construct

2009-05-25 Thread Matías De la Puente
Hi Arley, 2009/5/25 Arley Consuegra Rosello aconsue...@estudiantes.uci.cu I'm have a problem with de inheritance and the constructors. In c++ the inheritance loosks like class padre{ protected: int a,b,c; public: padre(int pa,int pb,int pc){ a=pa; b=pb; c=pc;

Re: [Vala] [Genie] Print Function

2009-06-22 Thread Matías De la Puente
Nicolas: That's great!! thanks i filed a bug with a patch (some days ago) that fix the cheader_filename of SourcePrintCompositor. http://bugzilla.gnome.org/show_bug.cgi?id=585894 Matias ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] [Patch] Small improvements on gsl bindings

2009-06-25 Thread Matías De la Puente
2009/6/25 Yu Feng rainwood...@gmail.com Dear list, Here are a few small improvements on gsl bindings. Several places the pointers are properly replaced by arrays, and several delegates are handled the native vala way. Thanks for the patch, hope juergbi can apply it Matias

[Vala] [Patch] Fix gtk_source_language_manager

2009-06-26 Thread Matías De la Puente
Patch that fix gtk_source_language_manager 0001-gtksourceview-2.0-Fix-gtk_source_language_manager-bi.patch Description: Binary data ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Multidimensional arrays

2009-07-06 Thread Matías De la Puente
Hello Multidimensional arrays are created like in C#: double[,] arr = new double[3,2]; Matias ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] multiple fields in a single declaration

2009-08-31 Thread Matías De la Puente
Hi Adam, That issue is already in bugzilla, take a look here http://bugzilla.gnome.org/show_bug.cgi?id=530030 2009/8/31 Adam Dingle a...@yorba.org Vala lets me declare multiple local variables in a single declaration: void foo() { int a, b;// OK } But if I attempt to declare

Re: [Vala] Need help with string

2009-09-02 Thread Matías De la Puente
2009/9/2 Nicolas c.r@wanadoo.fr Hi, I try to make a little program who read in a file and take only some informations (like an .ini file). My text file is like this: [INFO] blah blah blah blah blah blah Could someone tell me how to create this kind of function ? You should use

Re: [Vala] Strange Map behaviour in Gee

2009-09-23 Thread Matías De la Puente
Take a look here http://live.gnome.org/Vala/Tutorial#head-7b3930bf3573a66028940bf6123b19e19a33f9a5 should be: var map = new HashMapstring, string (str_hash, str_equal); ___ Vala-list mailing list Vala-list@gnome.org