From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#22000: Patch addressing the menu-bar frame-resize interaction Date: Wed, 18 Jul 2018 09:01:03 +0200 Message-ID: <5B4EE5AF.5000304@gmx.at> References: <87k2p8h1vn.fsf@isaac.fritz.box> <5B4C4911.8040900@gmx.at> <5B4D9F5F.20506@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1531897208 3494 195.159.176.226 (18 Jul 2018 07:00:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2018 07:00:08 +0000 (UTC) Cc: 22000@debbugs.gnu.org, David Engster To: Vivek Dasmohapatra Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 18 09:00:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffgRM-0000kl-Og for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2018 09:00:00 +0200 Original-Received: from localhost ([::1]:35058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffgTT-0005I5-LZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2018 03:02:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffgTN-0005Hu-CF for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2018 03:02:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffgTK-00040V-Ak for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2018 03:02:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffgTK-00040L-4l for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2018 03:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ffgTJ-0001xU-Sj for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2018 03:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jul 2018 07:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22000 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22000-submit@debbugs.gnu.org id=B22000.15318972877482 (code B ref 22000); Wed, 18 Jul 2018 07:02:01 +0000 Original-Received: (at 22000) by debbugs.gnu.org; 18 Jul 2018 07:01:27 +0000 Original-Received: from localhost ([127.0.0.1]:46107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffgSl-0001wc-2I for submit@debbugs.gnu.org; Wed, 18 Jul 2018 03:01:27 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:48445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffgSj-0001wO-FQ for 22000@debbugs.gnu.org; Wed, 18 Jul 2018 03:01:25 -0400 Original-Received: from [192.168.1.101] ([213.162.73.171]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LzcIM-1g9i5d1ujq-014mrW; Wed, 18 Jul 2018 09:01:11 +0200 In-Reply-To: X-Provags-ID: V03:K1:HAF44wV2NH23J0qyW5xVtAmKRm8okfkOiKdQvfzXCgVail4ACp0 XYsteCKF4ZsW67hwnqU020q+lG+RNzHHjB662X9ZBLcd+WNIY4Vinwi7uBAhBt3fPUUy619 HuEQ5aVwPa5wkiPkv2FJWTpYmP4keXFocdOm/188cJo0ajtuJWxBqc12i/MEzn95oPaS7M4 pIJxnWIJO9P0w4A27/3Wg== X-UI-Out-Filterresults: notjunk:1;V01:K0:OO/EWWUUHxo=:oM1wqfGuRuwU3dJum6TUge 33eLFSht2PeIgJKyddVTjbbImA7dlTkEHAy1gWiAI35TWPAcsMfhjRM/GhnOUseC6bg1tAhFJ OB/5vbDIyc0jZlFzqI3+aM+BG3Briqu/Uo8+LPbABhECues1DNM69U8EoWSRH4oHHevCdH8gZ 61kTeO2TkKkXc8Jbl3G8v9d157/+3Myj8pnZIRrc065X6o9mP4NseCRMqYeNnIHsa22hBDsKh 4Qy1pWGVXqj6GilaArBuZCJtES4FStnKDDEOz2+NwU97tywUn47Er2a9hJ/bXn1K7Z6OuXIxO 55Yr8ukH6sVX2EZlEswRr0d+/IEiFHhhHg2AraDJDpYgttzjdylOsKS2pGaRC/c100limE+N5 SUSp+PrfpmxUdNt2JqM7+Dnx1O5EWDr3gcyKbEPs23EqMi4uujceEX1YTXbSURdG4jbLsMMpg M9SaCejNGuAFo3TcYjd3OJ+3NfA/lTrlBbx2TFFzptv2G8UjRCYDFjqkuN7z9XWd4SktAuFaQ GvhVaqqxgH2g/7slIHJe5tByMBkyw2T86TJPuEoBQ3fuuG5983L7dpexNSzZ7Eo49jkQdekpF 7h31yiDJ5CF91LcDacvzhpN/fRacQa3HPselcAg7lZxZMOapPL8OLtm1lEGNcQQKNDVye7SVA XZv2TS2VrsKufeRm4Avuu1IlRPWpi7+1JL3K6qikZOtgEBAmNgACY4KmdDxDHJoeX2VjJBUPB l9juAA83aTyG1qkz0ZeqMWXRgaFGVolnE8L6btc9QPg6eNc3g0xW0Z+g9bhfAqfXeOqv2xrn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148629 Archived-At: > This patch (added on top of the previous one) should fix the frame size calculation. Thanks. The calculations are OK now. It confirms my earlier claim that here the menu bar size increases from 27 to 44 pixels so it becomes exactly as high as the tool bar. > Still looking into whether there's a purely truncating solution. I think your idea of using a container window is the way to go. Now suppose we used a non-scrolled container window to put the menu bar in, get its size before updating the menu bar, update the menu bar and make a gtk_widget_set_size request for that container window to restore its previous size. Would that fail and why? martin