[Vala] stdout.printf not working correctly in GTK+ program



Hi,

If I use stdout.printf in a GTK+ program, I'm not seeing anything
happening on the console. Only when I close the app the text appears
on the console.

The attached sample shows this behavior.
Compile with
valac --pkg gtk+-2.0 -o sample sample.vala

If you press the button no output in the terminal is appearing at
first. Only when you close the app it shows up

Am I doing something wrong?

Jaap

Attachment: sample.vala
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]