g_object_new
Andy Chambers <[email protected]> Tue, 8 Dec 2009 11:12:50 +0000
| Newsgroups | gmane.comp.gnome.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm working on one of the lisp bindings to gtk and from reading the docs, it looks like we should be able to construct instances of all gtk types using just g_object_new. Is that correct in principle? If that is true, I need a way to get a GType dynamically. The function g_type_from_name looks like it might do the job but I think the type needs to have been initialized by creating an instance first. Is there any other way to initialize a type so that I don't have to create an instance? (since that's what I'm trying to avoid by using g_object_new). Many Thanks, Andy