Re: [Vala] [ModuleInit]?

2009-03-03 Thread Michael 'Mickey' Lauer
I see. Thanks, that clears it up! Mickey. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [ModuleInit]?

2009-03-02 Thread Feng Yu
Hi Michael, It seems like you are confused with GModule and GTypeModule. Those two are different. Refer to http://developer.imendio.com/sites/developer.imendio.com/files/Mitch-GModule.pdf I have been fortunately using this attribute recently to automatically preregister all types in one init fu

[Vala] [ModuleInit]?

2009-03-02 Thread Michael 'Mickey' Lauer
What is this decorator supposed to do? I stumbled over it when experimenting with shared objects, but it doesn't seem to have any effect, at least not changing the function it decorates to be called at init time. For this, it looks we need a public string g_module_check_init(TypeModule module)

Re: [Vala] [ModuleInit] and __attribute__ ((constructor)) ?

2008-12-13 Thread Jürg Billeter
On Sat, 2008-12-13 at 20:34 +0600, Ildar Mulyukov wrote: > On 12.12.2008 14:04:51, Jürg Billeter wrote: > > Hi Ildar, > > > > On Wed, 2008-10-15 at 03:03 +0600, Ildar Mulyukov wrote: > > > I am very new to Vala. Great thanks to Jürg and participants. > > > I've a question (or it's really two separ

Re: [Vala] [ModuleInit] and __attribute__ ((constructor)) ?

2008-12-13 Thread Ildar Mulyukov
Hi, Jürg! thanks for your answers. On 12.12.2008 14:04:51, Jürg Billeter wrote: Hi Ildar, On Wed, 2008-10-15 at 03:03 +0600, Ildar Mulyukov wrote: > I am very new to Vala. Great thanks to Jürg and participants. > I've a question (or it's really two separate questions?) > 1. What does [

Re: [Vala] [ModuleInit] and __attribute__ ((constructor)) ?

2008-12-12 Thread Jürg Billeter
Hi Ildar, On Wed, 2008-10-15 at 03:03 +0600, Ildar Mulyukov wrote: > I am very new to Vala. Great thanks to Jürg and participants. > > I've a question (or it's really two separate questions?) > > 1. What does [ModuleInit] do? > I've checked the generated C-code for it and found that it doe

[Vala] [ModuleInit] and __attribute__ ((constructor)) ?

2008-10-14 Thread Ildar Mulyukov
Hi! I am very new to Vala. Great thanks to Jürg and participants. I've a question (or it's really two separate questions?) 1. What does [ModuleInit] do? I've checked the generated C-code for it and found that it does nothing noticeable. At least in this snippet: http://live.gnome.o