Re: [Vala] How to use GLib.Signal.connect?

2012-01-31 Thread Pete Fotheringham
On 31/01/2012 17:09, Luca Bruno wrote: Can anyone give me an example of how to use Signal.connect() or suggest an alternative method? Cast (Callback)this.open_file_callback Thanks Luca, that worked - the line is now Signal.connect(osxApp, "NSApplicationOpenFile", (GLib.Callback)(t

Re: [Vala] How to use GLib.Signal.connect?

2012-01-31 Thread Luca Bruno
On Tue, Jan 31, 2012 at 4:53 PM, Pete Fotheringham < pete.fothering...@codethink.co.uk> wrote: > I am working with Vala and GtkOSXApplication on Mac OS. I am using Vala > 0.12 because I need to use dbus-glib and, as I understand it, this is not > supported by versions of Vala beyond 0.12.1 > > I n

[Vala] How to use GLib.Signal.connect?

2012-01-31 Thread Pete Fotheringham
I am working with Vala and GtkOSXApplication on Mac OS. I am using Vala 0.12 because I need to use dbus-glib and, as I understand it, this is not supported by versions of Vala beyond 0.12.1 I need to connect to a Mac Specific mac-specific NSApplicationOpenFile signal, which is generated by Gtk