[Vala] ftp library with vala

2012-08-13 Thread tomw
Hi folks, what library would you recommend to be used with vala for providing ftp and ftp/TLS connectivity? Libcurl [1, 2] could be a candidate but is seems that the bindings are not up to date. Any suggestions? Thanks, [1] https://github.com/giuliopaci/ValaBindingsDevelopment/ [2]

Re: [Vala] ftp library with vala

2012-08-13 Thread PCMan
Hello, To the best of my knowledge, libcurl is the most comprehensive and reliable one. I'd suggest using it. Since its APIs are very simple, it won't be too hard to fix the binding. The most parts of libcurl are controlled by flags defined with #defines and enum values. The real API functions are

[Vala] Gtk+-3.0 Gtk.Entry fontcolor

2012-08-13 Thread David Boesner
Hi everyone, I try to change the color of the text in a Gtk.Entry. I try it this way: Gdk.Color red; if(Gdk.Color.parse(RED,out red)==true); print(\that works); // that gets printed if(my_entry.text.length = 9 !(my_entry.text[8].to_string()

[Vala] Solved: Gtk+-3.0 Gtk.Entry fontcolor

2012-08-13 Thread David Boesner
Hi, I've found the solution. The method I've used is deprecated. This works: var red = RGBA(); red.parse(#ff); my_entry.override_color(StateFlags.NORMAL, red); Regards David ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] Gtk+-3.0 Gtk.Entry fontcolor

2012-08-13 Thread Eric Gregory
On Mon, Aug 13, 2012 at 4:59 AM, David Boesner david.boes...@gmail.comwrote: my_entry.modify_text(my_entry.get_state(), red); According to the docs, modify_text() is a deprecated method. Have you tried using override_color() instead? - Eric

[Vala] Interfaces and asynchronous methods

2012-08-13 Thread rastersoft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I tried to define an interface with an async method, but I receive this error in the line where I try to invoke it in an object that implements it: backup.vala:246.14-246.43: error: invocation of void method not allowed as expression Are

Re: [Vala] Interfaces and asynchronous methods

2012-08-13 Thread Eric Gregory
On Mon, Aug 13, 2012 at 4:03 PM, rastersoft ras...@rastersoft.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I tried to define an interface with an async method, but I receive this error in the line where I try to invoke it in an object that implements it: