summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorBryce Mills2022-10-11 15:58:21 +0200
committerGerd Hoffmann2022-10-12 14:33:54 +0200
commitdbccb1a5a1b5b14b78ea6b27bb562e8cd0a8f317 (patch)
treececed8eac5bb8759d602e449064f24f2713bfc64 /qapi
parentqemu-edid: Restrict input parameter -d to avoid division by zero (diff)
downloadqemu-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.json5
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: