Re: [Vala] libraries and gettext

2013-04-20 Thread Evan Nemerson
On Sat, 2013-04-20 at 23:28 +0200, rastersoft wrote: > Hi all: > > I'm creating a library with Vala, and want to use gettext with it. In > normal programs it works the syntax _("text to translate"), but in a > library, dgettext() must be used. Is there a replacement for dgettext() > like the under

[Vala] libraries and gettext

2013-04-20 Thread rastersoft
Hi all: I'm creating a library with Vala, and want to use gettext with it. In normal programs it works the syntax _("text to translate"), but in a library, dgettext() must be used. Is there a replacement for dgettext() like the underscore for gettext? Thanks. -- Nos leemos

Re: [Vala] Vala in Python - Some progress and a question

2013-04-20 Thread Evan Nemerson
On Sat, 2013-04-20 at 13:40 +0200, Donn wrote: > A follow-up. > > Progress > > In the python file (test.py) I got the idea to explicitly call the new() > method of the RedSquare object. I saw it when I did a dir() in Python. > > (I first got the idea when I saw how a Clutter.Color was i

Re: [Vala] Vala in Python - Some progress and a question

2013-04-20 Thread Donn
On 20/04/2013 16:27, Sam Wilson wrote: I could be mistaken, but python uses line buffering, so if you put a '\n' on the end of your printf's you might get the text to show up right away. You, Sir, are a genius. Hat tip. \d ___ vala-list mailing list

Re: [Vala] Vala in Python - Some progress and a question

2013-04-20 Thread Sam Wilson
On 13-04-20 07:40 AM, Donn wrote: > Question > > Why are the various stdout.printf calls not working straight away? When > the app is closed they all print - as if they were stored in some > off-screen buffer someplace. I could be mistaken, but python uses line buffering, so if you put a

Re: [Vala] Vala in Python - Some progress and a question

2013-04-20 Thread Donn
A follow-up. Progress In the python file (test.py) I got the idea to explicitly call the new() method of the RedSquare object. I saw it when I did a dir() in Python. (I first got the idea when I saw how a Clutter.Color was instanced - with Clutter.Color.new() - in Python, this is dee