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#24107: 25.1; menu-bar-size and tool-bar-size are reported inconsistently on w32 Date: Sat, 30 Jul 2016 11:39:22 +0200 Message-ID: <579C75CA.2050403@gmx.at> References: <8360roqq9q.fsf@gnu.org> <579C63B6.9080308@gmx.at> <83shurplfn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040902030504040005040306" X-Trace: blaine.gmane.org 1469873525 21925 80.91.229.3 (30 Jul 2016 10:12:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2016 10:12:05 +0000 (UTC) Cc: 24107@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 30 11:40:23 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 1bTQkm-00010Y-Ni for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 11:40:21 +0200 Original-Received: from localhost ([::1]:34919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTQkg-0007y8-OF for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 05:40:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTQkX-0007vD-U0 for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2016 05:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTQkU-0001hu-KX for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2016 05:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTQkU-0001hZ-Go for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2016 05:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bTQkU-0007L6-AG for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2016 05:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jul 2016 09:40: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.146987157728174 (code B ref 24107); Sat, 30 Jul 2016 09:40:02 +0000 Original-Received: (at 24107) by debbugs.gnu.org; 30 Jul 2016 09:39:37 +0000 Original-Received: from localhost ([127.0.0.1]:51184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTQk4-0007KL-RA for submit@debbugs.gnu.org; Sat, 30 Jul 2016 05:39:37 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:63883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTQk3-0007K6-6v for 24107@debbugs.gnu.org; Sat, 30 Jul 2016 05:39:35 -0400 Original-Received: from [192.168.1.100] ([212.95.7.103]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MBWIM-1bbdx8264c-00ATFg; Sat, 30 Jul 2016 11:39:28 +0200 In-Reply-To: <83shurplfn.fsf@gnu.org> X-Provags-ID: V03:K0:r2lA+zgo6E0mFYZmqio+AMwjoeNE3eWarHiFymRxiT8xoIBlIQz tG/U/jfdzaDjTpBeLsawwFWRrGuH4c6pOKMWgZNd43jMlSk5M9xaLUNNrRRsgEuY1nC9qBt wWkmE7tUefFWcAqeiNCItrqzD3qWgfJYUK9siXkbFf9VnijJeQcCb3NCrW/CJQ03sU4akFC bsFckpnSZm4vK1uZkyFvw== X-UI-Out-Filterresults: notjunk:1;V01:K0:ag/69czcfnQ=:daM/WEf6ImiMcRNA3Rqiz/ SxNEiFRkh8f86yWNVy11O79iQ2XkuD9EOeKh9Vcvgrdqymgkmb0Y4L6PtMw1PlHYqhaZiFKJG ybIWdv/iu8nxReo/XGngIF3fPSBZJ9bIU1M1FmOOJql2agbvOQwG0ie05zeuDazlKC3XAvF1h 9cI3BxmOVw6cjEPYdp3isZyWY99S+DHUjYUfvt+lw9i+pm687MNlFa/+fD2L/scZBbiR5aXyQ CDGo7wgeYrAozyvdew8NptgMLsk0G6oL3seSE1SDzsvNUD2WVusfbBjiMhyKk2aKgaGHYPiPh GFohjUw5y1sZwEti9GQy4cWWbcWbQq+G6SrCCfMqM1aLkM40pHhaiQHjo9oUKMu79z+3hKXuB EI1941lz3EC/Bu819dOi5qxv9R8DwJASUu+sz6mHOcjoX3CkVZ3tvBmMf5ClsBrSO37eCdnGq sy5TzkmT/1rrfh4CJKi6i41LMc7DSnomXmjCp4SgcDnfEwksXes6SEhBEBbfCoxwRZmkqx3e5 VZLR6zCZFq38fSJtBgcwK2E72wzWI+CqOj9JNnsiBKrWk8Y7C4/azY/AY7/CuXWjm3KNQ9O5W smtjRbrYIb+iRy4oyXBKBf9+v6XKKd8cbeCUTwHfpPRZQ1NDQV+VDrE2qMHEkF4asU5j18UxB 3SUAoxK5yGzRaKoytKBwe6a2Kn5Ov2bzloWEJkiaGCExuV9VG054+1wdCFnwv8Fpb1HMEnnGf K4GSMLIX8iq14UGHxB+q4I+8qDcRjkUBX0YPnteB1liD2VZxDeGACKFYJjTqqYqTFYV1nVGg 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:121711 This is a multi-part message in MIME format. --------------040902030504040005040306 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 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? It's not related to fringes. I forgot to subtract the width of the external borders. Does the attached patch (mostly fixing indentation hell) give the correct result? martin --------------040902030504040005040306 Content-Type: text/plain; charset=windows-1252; name="w32fns.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="w32fns.diff" ZGlmZiAtLWdpdCBhL3NyYy93MzJmbnMuYyBiL3NyYy93MzJmbnMuYwppbmRleCA1ODRlMzEx Li4yYjA3YmIyIDEwMDY0NAotLS0gYS9zcmMvdzMyZm5zLmMKKysrIGIvc3JjL3czMmZucy5j CkBAIC04NDY1LDI0ICs4NDY1LDI1IEBAIHdpdGggb2Zmc2V0IERZIGFkZGVkIChkZWZhdWx0 IGlzIC0xMCkuCiAJCUZjb25zIChRb3V0ZXJfc2l6ZSwKIAkJICAgICAgIEZjb25zIChtYWtl X251bWJlciAocmlnaHQgLSBsZWZ0KSwKIAkJCSAgICAgIG1ha2VfbnVtYmVyIChib3R0b20g LSB0b3ApKSksCi0JICAgRmNvbnMgKFFleHRlcm5hbF9ib3JkZXJfc2l6ZSwKKwkJRmNvbnMg KFFleHRlcm5hbF9ib3JkZXJfc2l6ZSwKIAkJICAgICAgIEZjb25zIChtYWtlX251bWJlciAo ZXh0ZXJuYWxfYm9yZGVyX3dpZHRoKSwKIAkJCSAgICAgIG1ha2VfbnVtYmVyIChleHRlcm5h bF9ib3JkZXJfaGVpZ2h0K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ICAgICA/IChyaWdodCAtIGxlZnQgLSAyICogZXh0ZXJu YWxfYm9yZGVyX3dpZHRoCisJCQkJICAtIDIgKiBpbnRlcm5hbF9ib3JkZXJfd2lkdGgpCisJ CQkgICAgICAgOiAwKSwKIAkJCSAgICAgIG1ha2VfbnVtYmVyICh0b29sX2Jhcl9oZWlnaHQp KSksCiAJCUZjb25zIChRaW50ZXJuYWxfYm9yZGVyX3dpZHRoLAogCQkgICAgICAgbWFrZV9u dW1iZXIgKGludGVybmFsX2JvcmRlcl93aWR0aCkpKTsKCg== --------------040902030504040005040306--