diff options
author | Bryce Mills | 2022-10-11 15:58:21 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2022-10-12 14:33:54 +0200 |
commit | dbccb1a5a1b5b14b78ea6b27bb562e8cd0a8f317 (patch) | |
tree | ceced8eac5bb8759d602e449064f24f2713bfc64 /qapi | |
parent | qemu-edid: Restrict input parameter -d to avoid division by zero (diff) | |
download | qemu-dbccb1a5a1b5b14b78ea6b27bb562e8cd0a8f317.tar.gz qemu-dbccb1a5a1b5b14b78ea6b27bb562e8cd0a8f317.tar.xz qemu-dbccb1a5a1b5b14b78ea6b27bb562e8cd0a8f317.zip |
gtk: Add show_menubar=on|off command line option.
The patch adds "show_menubar" command line option for GTK UI similar to
"show_tabs". This option allows to hide menu bar initially, it still can
be toggled by shortcut and other shortcuts still work.
Signed-off-by: Bryce Mills <brycemills@proton.me>
Acked-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <NWO_zx1CT5Aj9vAXsRlqBppXd63gcKwL9V1qM1Meh36M_9tCw-EsCnfpvONXhHjmtKIUoSuCy9OO6cHS7M8b0oHBOCZG6f1jZ4Q2tqgI2Qo=@proton.me>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/ui.json | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qapi/ui.json b/qapi/ui.json index 286c5731d1..0abba3e930 100644 --- a/qapi/ui.json +++ b/qapi/ui.json @@ -1199,13 +1199,16 @@ # interfaces (e.g. VGA and virtual console character devices) # by default. # Since 7.1 +# @show-menubar: Display the main window menubar. Defaults to "on". +# Since 8.0 # # Since: 2.12 ## { 'struct' : 'DisplayGTK', 'data' : { '*grab-on-hover' : 'bool', '*zoom-to-fit' : 'bool', - '*show-tabs' : 'bool' } } + '*show-tabs' : 'bool', + '*show-menubar' : 'bool' } } ## # @DisplayEGLHeadless: |