On Sat, Nov 07, 2009 at 14:47:16 +0100, Nicolas wrote:
> Signal.connect(monitor, "changed", (GLib.Callback)handler2, monitor);
No. That won't work without some magic applied to handler2, because the call
signature for signal handlers is different from regular methods. The normal
syntax:
objec
On Sat, Nov 07, 2009 at 13:16:02 +0100, Johan wrote:
> Hi Andrea,
> Thanks for the fast reply.
> I am still doing something wrong, I changed this:
>
> public virtual signal void handler2 (...)
No 'signal' keyword here. A handler is just a function. It must have
a signature that matches the signal
On Sat, Nov 07, 2009 at 11:34:22 +0100, JM wrote:
> I heard that structs are stack-allocated and classes are
> heap-allocated.
You heard right. And that applies to arrays as well. Array of structs
contains those structs directly, array of classes contains pointers.
> Would there be an advantage/
Hi Joan,
Try this:
Signal.connect(monitor, "changed", (GLib.Callback)handler2, monitor);
Nicolas.
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
aargh ;-)
thanks
2009/11/7 Frederik
> ben nukel wrote:
> > $ valac
> > valac: error while loading shared libraries: libvala.so.0: cannot open
> > shared object file: No such file or directory
> >
> > although the library is here:
> >
> >>$ ls -al /usr/local/lib/libvala.so.0
> > lrwxrwxrwx 1 roo
ben nukel wrote:
> $ valac
> valac: error while loading shared libraries: libvala.so.0: cannot open
> shared object file: No such file or directory
>
> although the library is here:
>
>>$ ls -al /usr/local/lib/libvala.so.0
> lrwxrwxrwx 1 root root 16 2009-11-07 08:03 /usr/local/lib/libvala.so.0
you right. I forgot that I've installed vala via apt-get first; before
installing from sources (0.7.8).
But the problem is, even after
$ sudo apt-get remove valac
$ sudo apt-get autoremove
and
$ cd ~/install/vala-0.7.8 && sudo make uninstall
and finally ...
$ sudo find /usr -iname 'vala
Hi Andrea,
Thanks for the fast reply.
I am still doing something wrong, I changed this:
public virtual signal void handler2 (...)
monitor.changed.connect((void) this.handler2);
and get the following:
macro "g_signal_connect" requires 4 arguments, but only 3 given
That is how the C-code looks l
Johan wrote:
> Hi,
> I wanna check if a file has been changed, and then take some action.
> However I am not getting the trick with the signal connection.
> the code below returns:
> (process:18773): GLib-GObject-WARNING **: IA__g_object_connect: invalid
> signal spec "changed"
>
> well I have che
Hi,
I wanna check if a file has been changed, and then take some action.
However I am not getting the trick with the signal connection.
the code below returns:
(process:18773): GLib-GObject-WARNING **: IA__g_object_connect: invalid
signal spec "changed"
well I have checked the specs of GLIB and
Or if you use the 'vala' package from the PPA then you must deinstall
the old 'valac' and 'libvala0' packages of the original repository.
Best regards,
Frederik
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-l
ben nukel wrote:
> $ valac hello.vala
> valac: symbol lookup error: valac: undefined symbol:
> vala_code_context_set_experimental_non_null
>
>
> any ideas what's wrong here?
Do you have two different Vala versions installed, e.g. one from
a repository and one built from source? It seems to use
Hi all
For my app I have to move around datasets of some hundred to a few
thousand entries. These datasets contain several strings, some int (some
enums) and some uint.
I have the data in structs and from these structs I make arrays, e.g.
struct myStruct {
public string some_field;
publi
hi
I'd like to play with vala a little bit, but I guess there is a fundamental
problem with my really boring example.
$ cat hello.vala # taken from valas website
using GLib;
public class Test.HelloObject : GLib.Object {
public static int main(string[] args) {
stdout.p
Hi,
2009/11/7 aaron andersen :
> I believe there is an error in the SDLNet bindings.
>
> I'm using vala 0.7.7 and I modified the sdl-net.vapi from this:
>
> [CCode (cname="SDLNet_ResolveHost")]
> public static int from_host(IPAddress address, string host, uint16 port);
>
> to this:
>
> [CCode (cna
15 matches
Mail list logo