Package: gobject

Function g-object-new

Lambda List

g-object-new (gtype &rest args)

Arguments

gtype -- the g-type type ID of the g-object subtype to instantiate
args -- pairs of the property keyword and value

Details

Creates a new instance of a g-object subtype and sets its properties. Construction parameters which are not explicitly specified are set to their default values.

Note

In the Lisp implementation this function calls the make-instance method to create the new instance.

Examples

(g-object-new "GtkButton" :label "text" :margin 6)
=> #<GTK-BUTTON {D941381}>    
This is equivalent to:
(make-instance 'gtk-button :label "text" :margin 6)
=> #<GTK-BUTTON {D947381}>    
 

See also

2021-9-11