Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: BookmarkList

[16:7] extends: object

A list model that wraps GBookmarkFile. It presents a GListModel and fills it asynchronously with the GFileInfos returned from that function. The GFileInfos in the list have some attributes in the recent namespace added: recent::private (boolean) and recent:applications (stringv). They also have the GFile referred by the URI in standard::file attribute.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • BookmarkList (filename = null, attributes = null)

    Creates a new GtkBookmarkList with the given @attributes.

    • @p filename is The bookmark file to load.
    • @p attributes is The attributes to query.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • asListModel ()

    Wraps this handle as ListModel.

    • @r A ListModel object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setAttributes (string Value)

    The attributes to query.

    • @p Value is the new property value.
    • @r None.
  • setIopriority (int Value)

    Priority used when loading.

    • @p Value is the new property value.
    • @r None.
  • get_attributes ()

    Gets the attributes queried on the children.

  • get_filename ()

    Returns the filename of the bookmark file that this list is loading.

  • get_io_priority ()

    Gets the IO priority to use while loading file.

  • is_loading ()

    Returns %TRUE if the files are currently being loaded. Files will be added to @self from time to time while loading is going on. The order in which are added is undefined and may change in between runs.

  • set_attributes (string attributes)

    Sets the @attributes to be enumerated and starts the enumeration. If

    • @attributes is %NULL, no attributes will be queried, but a list of GFileInfos will still be created.
    • @p attributes is the attributes to enumerate.
    • @r None.
  • set_io_priority (int io_priority)

    Sets the IO priority to use while loading files. The default IO priority is %G_PRIORITY_DEFAULT.

    • @p io_priority is IO priority to use.
    • @r None.

class: BookmarkListMeta

[226:14] static extends: object

Generated metadata helpers for BookmarkList class surfaces.

Methods

  • properties ()

    Returns property metadata for BookmarkList.

    • @r A list.