From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnMxm-00060c-AX for qemu-devel@nongnu.org; Thu, 22 May 2014 02:58:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnMxc-0004hp-Ua for qemu-devel@nongnu.org; Thu, 22 May 2014 02:58:50 -0400 Received: from mail-ee0-x22e.google.com ([2a00:1450:4013:c00::22e]:59641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnMxc-0004hh-MI for qemu-devel@nongnu.org; Thu, 22 May 2014 02:58:40 -0400 Received: by mail-ee0-f46.google.com with SMTP id t10so2253186eei.19 for ; Wed, 21 May 2014 23:58:39 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <537DA019.7000302@redhat.com> Date: Thu, 22 May 2014 08:58:33 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1400661841-16031-1-git-send-email-kraxel@redhat.com> <537D1224.8080504@weilnetz.de> <1400739869.25874.30.camel@nilsson.home.kraxel.org> In-Reply-To: <1400739869.25874.30.camel@nilsson.home.kraxel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 00/25] qemu gtk ui overhaul List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , Stefan Weil Cc: qemu-devel@nongnu.org Il 22/05/2014 08:24, Gerd Hoffmann ha scritto: > I suspect this is the menu bar. Current code tries to hide it by > forcing the widget size to 0x0. In gtk2 this results in a small white > line at the top of the screen, probably because the minimum widget size > in gtk is 1x1. In gtk3 this doesn't work at all and the menu bar > remains visible. This isn't a new issue btw. > > I've tried to fix that with a simple gtk_widget_hide(menu_bar) call. > Which has the side effect to also turn off all menu accelerators. Which > is a non-starter, especially for Ctrl-Alt-F not working any more. Subclass the menu bar and override the draw and size_allocate methods when the widget is "hidden"? Paolo