g_object_new



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


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