summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorFelix xq Queißner2022-07-12 15:37:53 +0200
committerGerd Hoffmann2022-07-19 14:36:42 +0200
commitc34a933802071aae5288e0aa3792756312e3da34 (patch)
tree64b5cd3cbc92dac07d13c6e425cb2efe2778e4e8 /ui
parentusb: document pcap (aka usb traffic capture) (diff)
downloadqemu-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gtk.c b/ui/gtk.c
index 2a791dd2aa..1467b8c7d7 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -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);
}