Re: [Vala] how to register new glib type without creating an instance?



On Mon, 2011-04-25 at 15:14 +0800, Nor Jaidi Tuah wrote:
Is there any way to get /*1*/ to work without preceded by /*2*/ ?

SomeClassName.get_type().name();


get_type requires an instance. So that still requires /*2*/. i.e.,
  new SomeClassName().get_type().name()

Got it finally. It's
  typeof (SomeClassName) .name ()

hand
Nor Jaidi Tuah





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