Re: [Vala] Extension Methods

2009-03-19 Thread Feng Yu
What about this: public extend class Gtk.Widget { public bool set_gl_capability (GdkGl.Config glconfig, Gdk.GlContext? share_list, bool direct, int render_type) { // do stuff. } } AKA, when vala encounters the extend keyword, instead of panicing duplicated class declarations, it

Re: [Vala] Extension Methods

2009-03-19 Thread Frederik
Feng Yu wrote: What about this: public extend class Gtk.Widget { public bool set_gl_capability (GdkGl.Config glconfig, Gdk.GlContext? share_list, bool direct, int render_type) { // do stuff. } } AKA, when vala encounters the extend keyword, instead of panicing

Re: [Vala] DBus services in shared modules implementing interfaces defined in a shared library

2009-03-19 Thread Yu Feng
Hi Michael, The types of internally used libraries are not registered if ModuleInit is used. I solved the same issue recently, in a rather convoluted way. A noinst convenient library libcore.la Another noinst convenient library libmain.la Each is built with one call to valac. They are then