Re: [Vala] Hi, Is Vala what I am looking for?

2009-09-22 Thread Sam Liddicott
* Andrés G. Aragoneses wrote, On 21/09/09 21:52: Levi Bard wrote: Would patches to create this "C#-compat" mode be accepted in Vala? If we must have this discussion yet again[0], can we at least not Thank you, I didn't know about this thread. hijack Kratos's introduction thread? 0. http:/

Re: [Vala] Final / Sealed classes in Vala

2009-09-22 Thread Treviño
Jan Hudec wrote: > On Tue, Sep 22, 2009 at 06:40:10 +0200, Marco Trevisan (Treviño) wrote: > > Is it possible to define both in VAPIs and in a vala code a class which > > can not be extended? > Yes. It is Java-specific idiom. In Vala, you just use namespace with > non-member functions. Thanks, I'm

[Vala] Builer connect signals

2009-09-22 Thread John -
I have this code : public class TestWindow : GLib.Object { public TestWindow () { Builder builder = new Builder(); try { builder.add_from_file ("test.ui"); } catch (Error exc)

Re: [Vala] Properties in DBus

2009-09-22 Thread Frederik
Jaroslav Šmíd wrote: > When I use > > DBus.ObjectPath[] activeConnections = propIface.ActiveConnections; > > I get segmentation fault in valac during compilation :-( Sorry, must be a Vala compiler bug with 'dynamic'. Best regards, Frederik ___ Vala-

Re: [Vala] Builer connect signals

2009-09-22 Thread Frederik
John - wrote: > I have this code : > > public class TestWindow : GLib.Object > { > > public TestWindow () > { > Builder builder = new Builder(); > > try > { > builder.add_from_file ("test.ui"); >

Re: [Vala] Constructors in VAPI

2009-09-22 Thread Abderrahim Kitouni
Hi, 2009/9/22 Marco Trevisan : > With Vala 0.7.6 I can't any more define a such class, since I'm asked > for a constructor, and if I add an empty one I get a linking error since > vala tries to use the invalid C function prefix_my_virtual_class_new() > as constructor, instead of a simple gnew0 for

Re: [Vala] ListStore and SQLite

2009-09-22 Thread Magentus
On Mon, 21 Sep 2009 14:10:34 +0200, Nicolas wrote: > I made a simple program to fill a liststore with a sqlite db (name, > age, sex). But, i have a problem, someone knows how to save in the > db when user change a cell ? Not an answer to your question... I was just wondering, is there any pla

Re: [Vala] Constructors in VAPI

2009-09-22 Thread Treviño
Abderrahim Kitouni wrote: > did you try to set [CCode (cname=g_new0)] for the constructor? You can > make it work somehow with such tricks. Yes, I tried but it doesn't work since it generates bad c code (with no parameters for g_new0) like: _tmp0_ = g_new0 (); > Alternatively, you can wri

Re: [Vala] Builer connect signals

2009-09-22 Thread John -
>> I have this code : >> >> public class TestWindow : GLib.Object >> { >> >> public TestWindow () >> { >> Builder builder = new Builder(); >> >> try >> { >> builder.add_from_file ("test.ui"); >>

Re: [Vala] Cleaning up GCC warnings; dereferencing a void pointer.

2009-09-22 Thread Jürg Billeter
On Sun, 2009-09-20 at 21:29 -0400, Michael B. Trausch wrote: > Some time back I had some trouble getting the GDK and X11 bindings > playing well together. Jürg helped out and I got the code to compile > and work properly, but being the pedant that I am, I'd like to get rid > of the warning from gc

Re: [Vala] ListStore and SQLite

2009-09-22 Thread Christian Hergert
I wrote a GtkTreeModel that fronted SQLite years ago. I think Conduit still uses a python prototype I made which is far more optimized than the original prototype in C (EggSqliteStore). It might serve as a base however to get you started. http://audidude.com/dropbox/egg-sqlite-store/ -- Christi

Re: [Vala] Builer connect signals

2009-09-22 Thread Frederik
John - wrote: > I try with test_window_on_testButton_activate it doesn't work and i get this : > > Gtk-WARNING **: Could not find signal handler > 'test_window_on_testButton_activate' Did you compile with '--pkg gmodule-2.0'? You must do that. > I use Linux box. I will try some mix words to cal

Re: [Vala] ListStore and SQLite

2009-09-22 Thread Simon Arnaud
I don't think there is such a thing in GTK. There is in QT, but it will never be in Vala http://doc.trolltech.com/4.0/qt4-sql.html Simon > > ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] gtkaml 0.2.8

2009-09-22 Thread Vlad Grecescu
Gtkaml is an markup language that reuses the Vala compiler to write Gtk+ widgets through casual XML markup.             Features:   * compact XML syntax for describing Gtk widgets   * code 'islands' (written in Vala) - for signal handling and other code in your widget class (so you don't modi