[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/5] gtk: update window size after showing/hiding ta
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 4/5] gtk: update window size after showing/hiding tabs |
Date: |
Tue, 3 Jun 2014 10:01:41 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/5] gtk: fixes, cleanups and text consoles without vte, Gerd Hoffmann, 2014/06/03
- [Qemu-devel] [PATCH 2/5] gtk: cleanup backend dependencies, Gerd Hoffmann, 2014/06/03
- [Qemu-devel] [PATCH 4/5] gtk: update window size after showing/hiding tabs,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 1/5] gtk: factor out keycode mapping, Gerd Hoffmann, 2014/06/03
- [Qemu-devel] [PATCH 3/5] gtk: factor out gtk3 grab into the new gd_grab_devices function, Gerd Hoffmann, 2014/06/03
- [Qemu-devel] [PATCH 5/5] gtk: bind to text terminal consoles too, Gerd Hoffmann, 2014/06/03
- Re: [Qemu-devel] [PATCH 0/5] gtk: fixes, cleanups and text consoles without vte, Stefan Weil, 2014/06/04