Re: [Vala] Question about signal connection



Hi Frederik,
Thanks a lot, it works perfectly.
regards,
Johan

Frederik wrote:
public class HelloVala: GLib.Object {
static void handler2 (FileMonitor monitor, File file, File? other_file,
                          FileMonitorEvent event_type) {
        // ...
    }

    public static int main (string[] args) {
        var file = File.new_for_path ("test.png");
        var monitor = file.monitor_file (FileMonitorFlags.NONE);
        monitor.changed.connect (handler2);
        return 0;
    }
}







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