Garcon.MenuItemCache

g GObject.Object GObject.Object Garcon.MenuItemCache Garcon.MenuItemCache GObject.Object->Garcon.MenuItemCache

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_default ()

foreach (func, *user_data)

invalidate ()

invalidate_file (file)

lookup (uri, desktop_id)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Garcon.MenuItemCache(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Garcon.MenuItemCacheClass

classmethod get_default()
Returns:

a new Garcon.MenuItemCache.

Return type:

Garcon.MenuItemCache

Returns the default Garcon.MenuItemCache. the returned object should be unreffed with GObject.Object.unref() when no longer needed.

foreach(func, *user_data)
Parameters:
invalidate()
invalidate_file(file)
Parameters:

file (Gio.File) –

lookup(uri, desktop_id)
Parameters:
  • uri (str) – URI to look for

  • desktop_id (str) – desktop id to update

Returns:

a Garcon.MenuItem

Return type:

Garcon.MenuItem or None