Re: [Vala] Singleton question

2008-10-29 Thread Ali Sabil
You can take a look at this: http://live.gnome.org/Vala/Tutorial#head-a81a520acce1ad8622b8a2f895177b9765a69841 Also, maybe you should read this: http://steve.yegge.googlepages.com/singleton-considered-stupid -- Ali On Wed, Oct 29, 2008 at 6:28 AM, "José D. Abad" <[EMAIL PROTECTED]>wrote: > I us

Re: [Vala] How is the status of vala-doc project?

2008-10-29 Thread Florian Brosch
Hello Yu, you are welcome. As far as I think vala is a great language for libraries I like to implement a painless way to generate documentation for the C api too. I think the easiest way to get there is to compile the whole source to C with gtk-doc-translations of our valadoc-comments and some

Re: [Vala] How is the status of vala-doc project?

2008-10-29 Thread Yu Feng
Hi, Should I obtain valadoc from gnome.org ? On Wed, 2008-10-29 at 12:10 +0100, Florian Brosch wrote: > Hello Yu, > > you are welcome. > > As far as I think vala is a great language for libraries I like to > implement a painless way to generate documentation for the C api too. > I think the ea

Re: [Vala] How is the status of vala-doc project?

2008-10-29 Thread Florian Brosch
Oh, sorry - i moved to gnome-svn yesterday and forgot to leave a message on launchpad. On Wed, Oct 29, 2008 at 6:03 PM, Yu Feng <[EMAIL PROTECTED]> wrote: > Hi, > > Should I obtain valadoc from gnome.org ? > > > On Wed, 2008-10-29 at 12:10 +0100, Florian Brosch wrote: >> Hello Yu, >> >> you are

Re: [Vala] How is the status of vala-doc project?

2008-10-29 Thread Yu Feng
ACK. Apparently I can't build valadoc from vala-0.3.5. seems like I can't call the getter of the private member vclass in doctree.vala Which version of vala should I use? Regards, Yu On Wed, 2008-10-29 at 19:46 +0100, Florian Brosch wrote: > Oh, sorry - i moved to gnome-svn yesterday and f

Re: [Vala] Singleton question

2008-10-29 Thread Phil Housley
2008/10/29 Ali Sabil <[EMAIL PROTECTED]>: > You can take a look at this: > http://live.gnome.org/Vala/Tutorial#head-a81a520acce1ad8622b8a2f895177b9765a69841 > > Also, maybe you should read this: > http://steve.yegge.googlepages.com/singleton-considered-stupid Since that article has no comments sec

Re: [Vala] How is the status of vala-doc project?

2008-10-29 Thread Florian Brosch
Hi Yu, Valadoc compiles fine with trunk and I think it should also work with Vala 0.4.0. ~ Flo On Wed, Oct 29, 2008 at 8:22 PM, Yu Feng <[EMAIL PROTECTED]> wrote: > ACK. > > Apparently I can't build valadoc from vala-0.3.5. > > seems like I can't call the getter of the private member vclass in >

Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-29 Thread Yu Feng
Hi Matias, It doesn't work if Test is a subclass of Object. Yu On Wed, 2008-10-22 at 10:27 -0200, Matías De la Puente wrote: > Hi Yu > > I patch the glib.vapi changing Markup delegates > http://bugzilla.gnome.org/show_bug.cgi?id=553282 > I done that to use "this" inside the method of the clas

Re: [Vala] GMarkup broken in Vala 0.4.0?

2008-10-29 Thread Yu Feng
On Wed, 2008-10-22 at 12:05 -0200, Matías De la Puente wrote: > Thanks for the clarifying! But I am still curious why my code didn't > work. > > class MyClass { > public static MarkupParser p; > >void somefunction() { >p.start_element = start_element; >} > >void start_element

[Vala] panel_applet_construct not found.

2008-10-29 Thread Yu Feng
I updated to vala 0.4.0 for my panel applet, and receive this error. It seems to be related to the new chaining _new functions. whenever the vapi file has something like namespace Panel { class Applet: Gtk.EventBox{ public Applet(); } } and I subclass it class MyApplet:Applet { public

Re: [Vala] panel_applet_construct not found.

2008-10-29 Thread Jürg Billeter
Hi Yu, On Wed, 2008-10-29 at 19:05 -0400, Yu Feng wrote: > vala will try to call panel_applet_construct from my_applet_construct > which doesn't exist. > > I had a short look into gtk+-2.0.vapi. There are a lot of such empty > parameter constructors which implies some difficult in subclassing > w

Re: [Vala] panel_applet_construct not found.

2008-10-29 Thread Yu Feng
On Thu, 2008-10-30 at 07:21 +0100, Jürg Billeter wrote: > Hi Yu, > > On Wed, 2008-10-29 at 19:05 -0400, Yu Feng wrote: > > vala will try to call panel_applet_construct from my_applet_construct > > which doesn't exist. > > > > I had a short look into gtk+-2.0.vapi. There are a lot of such empty >