From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24107: 25.1; menu-bar-size and tool-bar-size are reported inconsistently on w32 Date: Sat, 30 Jul 2016 11:41:32 +0300 Message-ID: <83shurplfn.fsf@gnu.org> References: <8360roqq9q.fsf@gnu.org> <579C63B6.9080308@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1469868149 28220 80.91.229.3 (30 Jul 2016 08:42:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2016 08:42:29 +0000 (UTC) Cc: 24107@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 30 10:42:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bTPqb-0004nN-TU for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 10:42:18 +0200 Original-Received: from localhost ([::1]:34809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTPqV-0003K8-SE for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 04:42:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTPqQ-0003K1-KL for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2016 04:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTPqM-0001vO-C2 for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2016 04:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTPqM-0001vK-8C for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2016 04:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bTPqM-0004M6-3m for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2016 04:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jul 2016 08:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24107 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24107-submit@debbugs.gnu.org id=B24107.146986810816722 (code B ref 24107); Sat, 30 Jul 2016 08:42:02 +0000 Original-Received: (at 24107) by debbugs.gnu.org; 30 Jul 2016 08:41:48 +0000 Original-Received: from localhost ([127.0.0.1]:51162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTPq7-0004Le-Ou for submit@debbugs.gnu.org; Sat, 30 Jul 2016 04:41:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41599) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTPq6-0004LS-In for 24107@debbugs.gnu.org; Sat, 30 Jul 2016 04:41:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTPpy-0001td-8t for 24107@debbugs.gnu.org; Sat, 30 Jul 2016 04:41:41 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTPpy-0001tY-6Z; Sat, 30 Jul 2016 04:41:38 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2405 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bTPpw-00009b-Bp; Sat, 30 Jul 2016 04:41:36 -0400 In-reply-to: <579C63B6.9080308@gmx.at> (message from martin rudalics on Sat, 30 Jul 2016 10:22:14 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:121709 Archived-At: > Date: Sat, 30 Jul 2016 10:22:14 +0200 > From: martin rudalics > > > emacs -Q > > M-: (frame-geometry) RET > > > > When I do this on MS-Windows, I get > > > > ... (menu-bar-size 672 . 19) ... (tool-bar-size 680 . 36) ... > > > > which looks incorrect, because the width of both is the same. I think > > the width of the menu bar is the correct one. The reason I think that > > is that when I disable the scroll bars, the width reported for the > > menu bar is exactly the window-body-width plus the 16 pixels used up > > by the fringes. > > It's the best I came up with so far. I can't use the width of the menu > bar: Try doing > > (set-frame-parameter nil 'internal-border-width 36) > > and you'll see what I mean. OK, but this means you can compute the width of the tool bar as you do for any other window, and then add to that the width of the fringes. Since on Windows the tool bar is just a special window which doesn't have fringes, this should be accurate, no?