Package: glib

Function glib:symbol-for-gtype

Lambda List

glib:symbol-for-gtype (name-or-gtype)

Arguments

name-or-gtype -- a string or a g:gtype instance representing a valid GType type

Return Value

The Lisp symbol representing the GType type.

Details

Returns the Lisp symbol for the given name-or-gtype argument.

The Lisp symbol is used with the make-instance method to create an instance for a GType type from the Lisp side.

Examples

(g:symbol-for-gtype "GApplication")
=> GIO:APPLICATION
=> T
(g:symbol-for-gtype (g:gtype "GSimpleAction"))
=> GIO:SiMPLE-ACTION
=> T
(make-instance *)
=> #<GIO:SIMPLE-ACTION {1007481A53}>       
 

See also

2024-12-8