Package: gio

Function gio:list-store-new

Lambda List

gio:list-store-new (gtype)

Arguments

gtype -- a g:type-t type ID for the items in the list

Return Value

The new g:list-store object.

Details

Creates a new list store with items of gtype type. The gtype type must be a subclass of the g:object class.

Examples

Create a list store for g:app-info objects containing all applications registered on the system.
(defun create-application-list ()
  (let ((store (g:list-store-new "GAppInfo"))
        (apps (g:app-info-all)))
    (dolist (app apps)
      (g:list-store-append store app))
  store))    
 

See also

2025-4-11