Re: [Vala] Question about signal connection
- From: Johan <johan wolke7 net>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Question about signal connection
- Date: Wed, 18 Nov 2009 12:25:58 +0100
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]