diff options
author | Felix xq Queißner | 2022-07-12 15:37:53 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2022-07-19 14:36:42 +0200 |
commit | c34a933802071aae5288e0aa3792756312e3da34 (patch) | |
tree | 64b5cd3cbc92dac07d13c6e425cb2efe2778e4e8 /ui | |
parent | usb: document pcap (aka usb traffic capture) (diff) | |
download | qemu-c34a933802071aae5288e0aa3792756312e3da34.tar.gz qemu-c34a933802071aae5288e0aa3792756312e3da34.tar.xz qemu-c34a933802071aae5288e0aa3792756312e3da34.zip |
gtk: Add show_tabs=on|off command line option.
The patch adds "show_tabs" command line option for GTK ui similar to
"grab_on_hover". This option allows tabbed view mode to not have to be
enabled by hand at each start of the VM.
Signed-off-by: Felix "xq" Queißner <xq@random-projects.net>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220712133753.18937-1-xq@random-projects.net>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2390,6 +2390,10 @@ static void gtk_display_init(DisplayState *ds, DisplayOptions *opts) opts->u.gtk.grab_on_hover) { gtk_menu_item_activate(GTK_MENU_ITEM(s->grab_on_hover_item)); } + if (opts->u.gtk.has_show_tabs && + opts->u.gtk.show_tabs) { + gtk_menu_item_activate(GTK_MENU_ITEM(s->show_tabs_item)); + } gd_clipboard_init(s); } |