Re: [Vala] Question about signal connection

2009-11-18 Thread Johan
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

Re: [Vala] Question about signal connection

2009-11-07 Thread Johan
On Sat, Nov 07, 2009 at 12:33:58PM +0100, Johan wrote: Hi, I wanna check if a file has been changed, and then take some action. [...] public static int main (string[] args) { var file = File.new_for_path ("test.png"); var monitor = file.monitor_file(FileMonitorFlags.NONE

[Vala] Question about signal connection

2009-11-07 Thread Johan
cs of GLIB and everything seems to be correct, maybe something with the Vala notation? I appreciate any help! johan using GLib; using Gtk; public class HelloVala: GLib.Object { int handler2 (FileMonitor monitor, File file, File other_file, FileMonitorEvent event_type) {

[Vala] List with composed type

2009-10-25 Thread Johan
Hi, I want to construct a List (can be any kind of linked list) where each element is a struct (or it could be an object): struct StructType{ string s1; string s2; string s3; } var list = new List (); output from valac: 'StructType' is not a supported generic type argumen