[Vala] Signals for GType fundanmental classes.

2008-11-23 Thread Yu Feng
http://bugzilla.gnome.org/show_bug.cgi?id=561989 test case: class AAA { public AAA() { } public signal void changed(); public void change() { changed(); } public static int main(string[] args) { AAA aaa = new AAA(); aaa.changed+= (o) = {

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Jürg Billeter
On Sun, 2008-11-23 at 10:41 +0100, Hans Vercammen wrote: On Sun, 2008-11-23 at 10:03 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 00:13 -0500, Yu Feng wrote: Both vala 0.5.1 and trunk fails to smoothly switching the parent classes. if I have extra stuff in the creation methods.

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Yu Feng
On Sun, 2008-11-23 at 10:03 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 00:13 -0500, Yu Feng wrote: Both vala 0.5.1 and trunk fails to smoothly switching the parent classes. if I have extra stuff in the creation methods. Do you have an example or bugzilla link? I was experiencing

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Yu Feng
On Sun, 2008-11-23 at 09:40 +0100, Hans Vercammen wrote: On Sun, 2008-11-23 at 00:13 -0500, Yu Feng wrote: Hi Hans, Thanks for the reply. To avoid confusion, can we use CreationMethod and construct block to refer the entities? sure, no problem. For class types I will use

Re: [Vala] [ANNOUNCE] Vala 0.5.1 - Compiler for the GObject type system

2008-11-23 Thread Jürg Billeter
On Sun, 2008-11-23 at 01:31 -0800, Christian Hergert wrote: I'm excited about the addition of yielding values. I released GTask 0.1.2 last week which is an asynchronous/concurrency library for GObject with similar feel to twisted deferreds. I would love to be able to yield tasks and have the

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Jürg Billeter
On Sun, 2008-11-23 at 05:07 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:00 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 04:53 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 10:03 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 00:13 -0500, Yu Feng wrote: Both vala 0.5.1 and

[Vala] stdout flushing? and button_click_event

2008-11-23 Thread Karl Lattimer
Hi all, I have a button_press_event function in my GtkWidget which should be called when the mouse button is pressed, however it won't output anything via stdout.printf(...) on button press. Instead it outputs when motion_notify_event is called, I'm wondering if there is any requirement for a

Re: [Vala] [ANNOUNCE] Vala 0.5.1 - Compiler for the GObject type system

2008-11-23 Thread Christian Hergert
On Sun, Nov 23, 2008 at 2:22 AM, Jürg Billeter [EMAIL PROTECTED] wrote: On Sun, 2008-11-23 at 01:31 -0800, Christian Hergert wrote: I'm excited about the addition of yielding values. I released GTask 0.1.2 last week which is an asynchronous/concurrency library for GObject with similar

Re: [Vala] stdout flushing? and button_click_event

2008-11-23 Thread Jürg Billeter
On Sun, 2008-11-23 at 12:02 +0100, Jürg Billeter wrote: Hi Karl, On Sun, 2008-11-23 at 10:46 +, Karl Lattimer wrote: I have a button_press_event function in my GtkWidget which should be called when the mouse button is pressed, however it won't output anything via stdout.printf(...)

Re: [Vala] stdout flushing? and button_click_event

2008-11-23 Thread Karl Lattimer
Also, is there such a thing as a button_click_event for brief clicks of the mouse button? I need a button_release to behave differently to a click event, so I want a momentary click to fire off one function and a press and release to fire off another. Is the long click for drag and

[Vala] instance_pos

2008-11-23 Thread Mihail Naydenov
Hi, Im writing a vapi for a C library (FreeImage) and I need to set the instance position to a custom position (like second param) for some of the methods, but right now (0.5.1) I could not set it to anything different than first ( 0 = instance_pos 1) and last ( instance_pos 0) Is it planed

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Yu Feng
On Sun, 2008-11-23 at 11:32 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 05:07 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:00 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 04:53 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 10:03 +0100, Jürg Billeter wrote: On Sun,

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Jürg Billeter
On Sun, 2008-11-23 at 14:01 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:32 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 05:07 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:00 +0100, Jürg Billeter wrote: You should use private set here instead of construct with the new

Re: [Vala] Chaining up constructors.

2008-11-23 Thread Yu Feng
On Sun, 2008-11-23 at 20:24 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 14:01 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:32 +0100, Jürg Billeter wrote: On Sun, 2008-11-23 at 05:07 -0500, Yu Feng wrote: On Sun, 2008-11-23 at 11:00 +0100, Jürg Billeter wrote: You should use

[Vala] construct block for gtype fundamental classes.

2008-11-23 Thread Yu Feng
Jurg: I am glad to come up with the second patch to symmetrize the GObject and non-compact classes: Bug 562070. We already have the _constructor function in CCode for GType classes if there is a construct block, this patch changes the signature of the function by a little bit, and invokes the