Gjsify LogoGjsify Logo

Index

Variables

GTK_MENUITEM_H__: number

Functions

  • The Dbusmenu GTK parser adds cached items on the various menu items throughout the tree. Sometimes it can be useful to get that cached item to use directly. This function will retrieve it for you.

    Parameters

    • widget: Gtk.Widget

      A #GtkMenuItem that may have a cached #DbusmenuMenuitem from the parser

    Returns Menuitem

  • Goes through the GTK structures and turns them into the appropraite Dbusmenu structures along with setting up all the relationships between the objects. It also stores the dbusmenu items as a cache on the GTK items so that they'll be reused if necissary.

    Parameters

    • widget: Gtk.Widget

      A #GtkMenuItem or #GtkMenuShell to turn into a #DbusmenuMenuitem

    Returns Menuitem

  • menuitemPropertyGetImage(menuitem: Menuitem, property: string): Pixbuf
  • This function looks on the menu item for a property by the name of property. If one exists it tries to turn it into a #GdkPixbuf. It assumes that the property is a base64 encoded PNG file like the one created by #dbusmenu_menuite_property_set_image.

    Parameters

    • menuitem: Menuitem

      The #DbusmenuMenuitem to look for the property on

    • property: string

      The name of the property to look for.

    Returns Pixbuf

  • menuitemPropertySetImage(menuitem: Menuitem, property: string, data: Pixbuf): boolean
  • This function takes the pixbuf that is stored in data and turns it into a base64 encoded PNG so that it can be placed onto a standard #DbusmenuMenuitem property.

    Parameters

    • menuitem: Menuitem

      The #DbusmenuMenuitem to set the property on.

    • property: string

      Name of the property to set.

    • data: Pixbuf

      The image to place on the property.

    Returns boolean

  • Takes the modifer described by key and modifier and places that into the format sending across Dbus for shortcuts.

    Parameters

    • menuitem: Menuitem

      The #DbusmenuMenuitem to set the shortcut on

    • key: number

      The keycode of the key to send

    • modifier: Gdk.ModifierType

      A bitmask of modifiers used to activate the item

    Returns boolean

  • Takes the shortcut that is installed on a menu item and calls #dbusmenu_menuitem_property_set_shortcut with it. It also sets up listeners to watch it change.

    Parameters

    • menuitem: Menuitem

      The #DbusmenuMenuitem to set the shortcut on

    • gmi: Gtk.MenuItem

      A menu item to steal the shortcut off of

    Returns boolean

  • menuitemPropertySetShortcutString(menuitem: Menuitem, shortcut: string): boolean
  • This function takes a GTK shortcut string as defined in #gtk_accelerator_parse and turns that into the information required to send it over DBusmenu.

    Parameters

    • menuitem: Menuitem

      The #DbusmenuMenuitem to set the shortcut on

    • shortcut: string

      String describing the shortcut

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method