panel: Add a screen recording indicator
The indicator shows the recording duration and lets the user stop it on click. It is more discoverable than the stop entry in the aggregate menu. The class extends ButtonBox directly rather than Button because Button does nothing that it uses, and actually causes issues with its dummy menu (its vfunc_hide() throws an "open-state-changed: Error: incorrect pop"). The menu-set signal declaration is required by the panel. The screencast is stopped upon button press in vfunc_event(), which matches PanelMenu.Button's input handling. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>
This commit is contained in:

committed by
Marge Bot

parent
33cf163f95
commit
6ec8480052
@ -468,6 +468,7 @@ const PANEL_ITEM_IMPLEMENTATIONS = {
|
||||
'a11y': imports.ui.status.accessibility.ATIndicator,
|
||||
'keyboard': imports.ui.status.keyboard.InputSourceIndicator,
|
||||
'dwellClick': imports.ui.status.dwellClick.DwellClickIndicator,
|
||||
'screenRecording': imports.ui.status.remoteAccess.ScreenRecordingIndicator,
|
||||
};
|
||||
|
||||
var Panel = GObject.registerClass(
|
||||
|
Reference in New Issue
Block a user