Re: [gtk-osx-users] Problem using gtkOSXApplication file open signal with Vala



On 31/01/2012 14:49, Jesse van den Kieboom wrote:
2012/1/31 Pete Fotheringham <pete fotheringham codethink co uk
<mailto:pete fotheringham codethink co uk>>

    I have created a vapi file for gtk-mac-integration s, and I have
    application code which uses it and they which mostly work. However
    when the code to connect the NSApplicationOpenFile signal runs, glib
    reports the following
    GLib-GObject-WARNING **: gsignal.c:2206: signal
    `ns-application-open-file' is invalid for instance `0x1401d020'

    The relevant part of the vapi is

        /* Signals */
        [CCode(cname="__NSApplicationOpenFile")]
        public signal bool ns_application_open_file(__string file_name);


Try renaming that to:

nsapplicationopenfile

Thanks, but sadly, this doesn't work - running gives the error
GLib-GObject-WARNING **: gsignal.c:2206: signal `nsapplicationopenfile' is invalid for instance `0x1380a820'
presumably because the signal name is case sensitive



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]