Package: gtk

Class gtk-shortcuts-window

Superclasses

gtk-window, gtk-bin, gtk-container, gtk-widget, gtk-buildable, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

section-name
The section-name property of type :string (Read / Write)
The name of the section to show. This should be the section name of one of the gtk-shortcuts-section objects that are in this shortcuts window.
Default value: "internal-search"
view-name
The view-name property of type :string (Read / Write)
The view name by which to filter the contents. This should correspond to the view property of some of the gtk-shortcuts-group objects that are inside this shortcuts window. Set this to nil to show all groups.
Default value: nil

Details

A gtk-shortcuts-window widget shows brief information about the keyboard shortcuts and gestures of an application. The shortcuts can be grouped, and you can have multiple sections in this window, corresponding to the major modes of your application.

Additionally, the shortcuts can be filtered by the current view, to avoid showing information that is not relevant in the current application context.

The recommended way to construct a gtkshortcuts-window widget is with gtk-builder, by populating a gtk-shortcuts-window widget with one or more gtk-shortcuts-section objects, which contain gtk-shortcuts-groups that in turn contain objects of class gtk-shortcuts-shortcut.

Example

A simple example: This example has as single section. As you can see, the shortcut groups are arranged in columns, and spread across several pages if there are too many to find on a single page. The .ui file for this example can be found here.



An example with multiple views: This example shows a gtk-shortcuts-window widget that has been configured to show only the shortcuts relevant to the "stopwatch" view. The .ui file for this example can be found here.



An example with multiple sections: This example shows a gtk-shortcuts-window widget with two sections, "Editor Shortcuts" and "Terminal Shortcuts". The .ui file for this example can be found here.

Signal Details

The "close" signal
 lambda (shortcutswindow)    :action      
The signal is a keybinding signal which gets emitted when the user uses a keybinding to close the window. The default binding for this signal is the Escape key.
shortcutswindow
The gtk-shortcuts-window object.
The "search" signal
 lambda (shortcutswindow)    : Action      
The "search" signal is a keybinding signal which gets emitted when the user uses a keybinding to start a search. The default binding for this signal is Control-F.
shortcutswindow
The gtk-shortcuts-window object.
 

Slot Access Functions

Inherited Slot Access Functions

gtk-container-border-width
gtk-container-child
gtk-container-resize-mode
gtk-window-accept-focus
gtk-window-application
gtk-window-attached-to
gtk-window-decorated
gtk-window-default-height
gtk-window-default-width
gtk-window-deletable
gtk-window-destroy-with-parent
gtk-window-focus-on-map
gtk-window-focus-visible
gtk-window-gravity
gtk-window-has-resize-grip
gtk-window-has-toplevel-focus
gtk-window-hide-titlebar-when-maximized
gtk-window-icon
gtk-window-icon-name
gtk-window-is-active
gtk-window-mnemonics-visible
gtk-window-modal
gtk-window-opacity
gtk-window-resizable
gtk-window-resize-grip-visible
gtk-window-role
gtk-window-screen
gtk-window-skip-pager-hint
gtk-window-skip-taskbar-hint
gtk-window-startup-id
gtk-window-title
gtk-window-transient-for
gtk-window-type
gtk-window-type-hint
gtk-window-urgency-hint
gtk-window-window-position
gtk-widget-app-paintable
gtk-widget-can-default
gtk-widget-can-focus
gtk-widget-composite-child
gtk-widget-double-buffered
gtk-widget-events
gtk-widget-expand
gtk-widget-focus-on-click
gtk-widget-halign
gtk-widget-has-default
gtk-widget-has-focus
gtk-widget-has-tooltip
gtk-widget-height-request
gtk-widget-hexpand
gtk-widget-hexpand-set
gtk-widget-is-focus
gtk-widget-margin
gtk-widget-margin-bottom
gtk-widget-margin-end
gtk-widget-margin-left
gtk-widget-margin-right
gtk-widget-margin-start
gtk-widget-margin-top
gtk-widget-name
gtk-widget-no-show-all
gtk-widget-opacity
gtk-widget-parent
gtk-widget-receives-default
gtk-widget-scale-factor
gtk-widget-sensitive
gtk-widget-style
gtk-widget-tooltip-markup
gtk-widget-tooltip-text
gtk-widget-valign
gtk-widget-vexpand
gtk-widget-vexpand-set
gtk-widget-visible
gtk-widget-width-request
gtk-widget-window
g-object-has-reference
g-object-pointer
g-object-signal-handlers
2020-9-8