From: Markus Armbruster <armbru@redhat.com>
To: Bryce Mills <brycemills@proton.me>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH] gtk: Add show_menubar=on|off command line option.
Date: Tue, 27 Sep 2022 08:12:28 +0200 [thread overview]
Message-ID: <87sfkdmjlf.fsf@pond.sub.org> (raw)
In-Reply-To: <ed3Bidk-uGSVXI-v3h8LR26iI7f3BERxYImf9TzyAbrZuDzPHTMkiCHqIngRHrFi_HEymvn2WUrgOOufmBczg2I_-9wPfooFbC3Ae0bJTsk=@proton.me> (Bryce Mills's message of "Mon, 26 Sep 2022 17:32:13 +0000")
Please post revisions in a new thread (not in reply to anything), and
with a subject like [PATCH v2]. You can use "git format-patch -v2" to
get such subjects.
Bryce Mills <brycemills@proton.me> writes:
> 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>
> ---
> qapi/ui.json | 6 +++++-
> qemu-options.hx | 3 +++
> ui/gtk.c | 15 ++++++++++-----
> 3 files changed, 18 insertions(+), 6 deletions(-)
>
> diff --git a/qapi/ui.json b/qapi/ui.json
> index 286c5731d1..cb252bdf86 100644
> --- a/qapi/ui.json
> +++ b/qapi/ui.json
> @@ -1200,12 +1200,16 @@
> # by default.
> # Since 7.1
> #
Drop the blank line, please.
> +# @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:
With that done, QAPI schema
Acked-by: Markus Armbruster <armbru@redhat.com>
Two more remarks below.
> diff --git a/qemu-options.hx b/qemu-options.hx
> index d8b5ce5b43..62d3ce10bf 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -1947,6 +1947,7 @@ DEF("display", HAS_ARG, QEMU_OPTION_display,
> #if defined(CONFIG_GTK)
> "-display gtk[,full-screen=on|off][,gl=on|off][,grab-on-hover=on|off]\n"
> " [,show-tabs=on|off][,show-cursor=on|off][,window-close=on|off]\n"
> + " [,show-menubar=on|off]\n"
Not this patch's fault: help neglects to explain the option parameters.
> #endif
> #if defined(CONFIG_VNC)
> "-display vnc=<display>[,<optargs>]\n"
> @@ -2039,6 +2040,8 @@ SRST
>
> ``window-close=on|off`` : Allow to quit qemu with window close button
>
> + ``show-menubar=on|off`` : Display then main window menubar
> +
Please specify the default here as well.
> ``curses[,charset=<encoding>]``
> Display video output via curses. For graphics device models
> which support a text mode, QEMU can display this output using a
[...]
prev parent reply other threads:[~2022-09-27 6:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-24 21:09 [PATCH] gtk: Add show_menubar=on|off command line option Bryce Mills
2022-09-26 8:51 ` Markus Armbruster
2022-09-26 17:32 ` Bryce Mills
2022-09-27 6:12 ` Markus Armbruster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sfkdmjlf.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=brycemills@proton.me \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.