From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>, Anthony Liguori <aliguori@amazon.com>
Subject: [Qemu-devel] [PATCH 4/5] gtk: update window size after showing/hiding tabs
Date: Tue, 3 Jun 2014 10:01:41 +0200 [thread overview]
Message-ID: <1401782502-29772-5-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1401782502-29772-1-git-send-email-kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/gtk.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui/gtk.c b/ui/gtk.c
index 544126c..b02fcd6 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1005,12 +1005,14 @@ static void gd_menu_switch_vc(GtkMenuItem *item, void *opaque)
static void gd_menu_show_tabs(GtkMenuItem *item, void *opaque)
{
GtkDisplayState *s = opaque;
+ VirtualConsole *vc = gd_vc_find_current(s);
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(s->show_tabs_item))) {
gtk_notebook_set_show_tabs(GTK_NOTEBOOK(s->notebook), TRUE);
} else {
gtk_notebook_set_show_tabs(GTK_NOTEBOOK(s->notebook), FALSE);
}
+ gd_update_windowsize(vc);
}
static gboolean gd_tab_window_close(GtkWidget *widget, GdkEvent *event,
--
1.8.3.1
next prev parent reply other threads:[~2014-06-03 8:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-03 8:01 [Qemu-devel] [PATCH 0/5] gtk: fixes, cleanups and text consoles without vte Gerd Hoffmann
2014-06-03 8:01 ` [Qemu-devel] [PATCH 1/5] gtk: factor out keycode mapping Gerd Hoffmann
2014-06-03 8:01 ` [Qemu-devel] [PATCH 2/5] gtk: cleanup backend dependencies Gerd Hoffmann
2014-06-03 15:17 ` Richard Henderson
2014-06-03 8:01 ` [Qemu-devel] [PATCH 3/5] gtk: factor out gtk3 grab into the new gd_grab_devices function Gerd Hoffmann
2014-06-03 8:01 ` Gerd Hoffmann [this message]
2014-06-03 8:01 ` [Qemu-devel] [PATCH 5/5] gtk: bind to text terminal consoles too Gerd Hoffmann
2014-06-04 7:25 ` [Qemu-devel] [PATCH 0/5] gtk: fixes, cleanups and text consoles without vte Stefan Weil
2014-06-04 7:40 ` Gerd Hoffmann
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=1401782502-29772-5-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=aliguori@amazon.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).