Next: , Previous: g-object-call-constructor, Up: GObject low-level


4.9.2 g-type-from-object

— Function: g-type-from-object
     (g-type-from-object object-ptr) => type
object-ptr
A foreign pointer to a GObject instance
type
A GType designator

Returns the type of an object by a pointer to its instance

Example:

     (g-type-from-object (g-object-call-constructor "GtkButton" nil nil))
     =>
     "GtkButton"