Class
XdpGlobalShortcutsSession
Description [src]
final class Xdp.GlobalShortcutsSession : GObject.Object
{
/* No available fields */
}
A representation of a long-lived global shortcuts portal interaction.
The XdpGlobalShortcutsSession object is used to represent portal
interactions with the global shortcuts desktop portal that extend over
multiple portal calls. Usually a caller creates a global shortcuts session,
binds shortcuts, and then starts listening to activations.
To list current assignments after xdp_global_shortcuts_session_bind_shortcuts() returns,
call xdp_global_shortcuts_session_list_shortcuts().
The XdpGlobalShortcutsSession wraps a XdpSession object.
Instance methods
xdp_global_shortcuts_session_bind_shortcuts_finish
Finishes the GlobalShortcuts BindShortcuts request.
xdp_global_shortcuts_session_configure_shortcuts
Requests that the portal show configuration UI for all shortcuts of this session.
xdp_global_shortcuts_session_configure_shortcuts_finish
Finishes the ConfigureShortcuts method call.
xdp_global_shortcuts_session_list_shortcuts_finish
Finishes the list-shortcuts request, and returns a GPtrArray with the shortcuts.
Signals
Xdp.GlobalShortcutsSession::activated
Emitted when a GlobalShortcuts shortcut of this session was activated.
Xdp.GlobalShortcutsSession::deactivated
Emitted when a GlobalShortcuts shortcut of this session was deactivated.
Xdp.GlobalShortcutsSession::shortcuts-changed
Emitted when a GlobalShortcuts session’s shortcuts have changed. This signal is emitted after new shortcuts have already become effective.
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.