AccelLabel


Object Hierarchy:

Object hierarchy for AccelLabel

Description:


public class AccelLabel : Grid

AccelLabel is meant to be used as a Gtk.MenuItem child for displaying a GLib.Action's accelerator alongside the Menu Item label.

The class itself is similar to it's Gtk equivalent Gtk.AccelLabel but follows elementary OS design conventions. Specifically, this class uses Granite.accel_to_string for accelerator string parsing.

Example

  var copy_menuitem = new Gtk.MenuItem ();
copy_menuitem.set_action_name (ACTION_PREFIX + ACTION_COPY);
copy_menuitem.add (new Granite.AccelLabel.from_action_name (_("Copy"), copy_menuitem.action_name));


Namespace: Granite
Package: granite

Content:

Properties:

Creation methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Orientable