From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woq3L-0006j1-K6 for qemu-devel@nongnu.org; Mon, 26 May 2014 04:14:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Woq3E-0006mp-64 for qemu-devel@nongnu.org; Mon, 26 May 2014 04:14:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woq3D-0006mS-Tk for qemu-devel@nongnu.org; Mon, 26 May 2014 04:14:32 -0400 From: Gerd Hoffmann Date: Mon, 26 May 2014 10:14:15 +0200 Message-Id: <1401092059-18503-21-git-send-email-kraxel@redhat.com> In-Reply-To: <1401092059-18503-1-git-send-email-kraxel@redhat.com> References: <1401092059-18503-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 20/24] gtk: enable untabify for gfx List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori Now we have all grab fixes in place, so we can allow detaching graphic display tabs too. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 298419b..79dc8db 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -338,7 +338,11 @@ static void gd_update_windowsize(VirtualConsole *vc) gtk_widget_set_size_request(vc->gfx.drawing_area, surface_width(vc->gfx.ds) * sx, surface_height(vc->gfx.ds) * sy); - gtk_window_resize(GTK_WINDOW(s->window), 320, 240); + if (vc->window) { + gtk_window_resize(GTK_WINDOW(vc->window), 320, 240); + } else { + gtk_window_resize(GTK_WINDOW(s->window), 320, 240); + } } static void gd_update_full_redraw(VirtualConsole *vc) @@ -962,8 +966,8 @@ static void gd_menu_untabify(GtkMenuItem *item, void *opaque) VirtualConsole *vc = gd_vc_find_current(s); if (vc->type == GD_VC_GFX) { - /* temporary: needs more work to get grabs etc correct */ - return; + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(s->grab_item), + FALSE); } if (!vc->window) { gtk_widget_set_sensitive(vc->menu_item, false); -- 1.8.3.1