[Vala] char variables problem

2010-12-02 Thread Sepehr Aryani
Hi guys. what is the problem with this code? public void main(){ char ch1 = 'a'; char? ch2 = 'b'; stdout.printf(%c\n, ch1); stdout.printf(%c\n, ch2); stdout.printf(%s\n, ch1.to_string()); stdout.printf(%s\n, ch2.to_string()); } when I assign a value to ch1 and ch2,

Re: [Vala] char variables problem

2010-12-02 Thread Navdeep Singh Sidhu
What vala version are you using? It compiles and runs fine on my machine. Valac 0.11.2 Ubuntu 10.10 GCC 4.4.5/ Navi - On 02/12/10 23:06, Sepehr Aryani wrote: Hi guys. what is the problem with this code? public void main(){ char ch1 = 'a'; char? ch2 = 'b';

Re: [Vala] char variables problem

2010-12-02 Thread Sandino Flores Moreno
It works fine in 0.10.0, shipped with ubuntu 10.10. On Thu, Dec 2, 2010 at 4:21 AM, Navdeep Singh Sidhu navdeepsinghsi...@gmail.com wrote: What vala version are you using? It compiles and runs fine on my machine. Valac 0.11.2 Ubuntu 10.10 GCC 4.4.5/ Navi - On 02/12/10

[Vala] Dbus, connecting a signal to an async method...

2010-12-02 Thread Treviño
Hello, I've a situation like the one in the example that I've attached here, where I need to make an asynchronous call to a method from a dbus signal callback function; to perform that I need to use the yield modifier, and so I need the callback function method should be async. Now, when I

Re: [Vala] GIO get_contens

2010-12-02 Thread Sébastien Wilmet
Hello, On Thu, Dec 02, 2010 at 05:03:21PM -0500, Arley Consuegra Rosello wrote: Hello, I was looking the basic gio sample there a file is read line by line. Exist some way to read the without using a while loop? php have a funtion get_contens that is what I need. In gio reference manual I

Re: [Vala] GIO get_contens

2010-12-02 Thread Arley Consuegra Rosello
Thanks these was exactly that I need. - Mensaje original - De: Sébastien Wilmet sebastien.wil...@gmail.com Para: vala-list@gnome.org Enviados: Jueves, 2 de Diciembre 2010 22:27:02 (GMT-0500) Auto-Detected Asunto: Re: [Vala] GIO get_contens Hello, On Thu, Dec 02, 2010 at 05:03:21PM

[Vala] Detailed signals

2010-12-02 Thread Erick Pérez Castellanos
Hi: How can I connect to a detailed signal, eg: 'changed::x' as you can see in the GSettings Devhelp code: -sample--- The changed signal void user_function (GSettings *settings, gchar *key, gpointer user_data) : Run Last / Has Details The changed signal is emitted