[Vala] [PATCH] enum: foreach capability

2012-02-24 Thread Sebastian Reichel
Hi, Please consider applying the attached patch. It adds support for using foreach with enums like this (and closes #624691): > foreach (Enum e in Enum.all_values) { > stdout.printf ("%s\n", e.to_string ()); > } -- Sebastian From f12ba46d78d1b3f448f8ef502b4bce970eced20f Mon Sep 17 00:00:00 2

Re: [Vala] How to use TlsServerConnection in Vala?

2012-02-24 Thread Luca Bruno
There's a static method: http://unstable.valadoc.org/#!api=gio-2.0/GLib.TlsServerConnection.new On Fri, Feb 24, 2012 at 4:22 PM, mar...@saepia.net wrote: > Hi, > > I am trying to get representation of code below in Vala. > > Especially I mean the line > > test->server_connection = g_tls_server_c

Re: [Vala] How to use TlsServerConnection in Vala?

2012-02-24 Thread Luca Dionisi
On Fri, Feb 24, 2012 at 4:22 PM, mar...@saepia.net wrote: > > Hi, > > I am trying to get representation of code below in Vala. > > Especially I mean the line > >  test->server_connection = g_tls_server_connection_new > (G_IO_STREAM(connection), cert, &error); I really don't know, but from the vap

[Vala] How to use TlsServerConnection in Vala?

2012-02-24 Thread mar...@saepia.net
Hi, I am trying to get representation of code below in Vala. Especially I mean the line test->server_connection = g_tls_server_connection_new (G_IO_STREAM(connection), cert, &error); I just want to use TlsServerConnection on my SocketService to handle TLS streams. I've checked n the vapi that

Re: [Vala] Purple.CoreUiOps

2012-02-24 Thread Tal Hadad
> Shouldn't compact class install a default constructor when no > constructor was provided by user? I don't think so, because it's only a VAPI wrapper. But if it so bugging you, you can decelerate new methods(and I think that also constructs) in the binding. > Besides, what's the difference bet