From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#22000: Patch addressing the menu-bar frame-resize interaction Date: Fri, 19 Oct 2018 16:17:55 +0200 Message-ID: <87o9bq3trg.fsf@rub.de> References: <87k2p8h1vn.fsf@isaac.fritz.box> <5B557ACA.4020106@gmx.at> <5BBF93CF.4060301@gmx.at> <5BC05EEB.9010609@gmx.at> <5BC0E405.90805@gmx.at> <5BC1AAE2.7070808@gmx.at> <5BC4DB0E.3050501@gmx.at> <5BC6E4F2.2030607@gmx.at> <83pnw7qsxu.fsf@gnu.org> <87h8hjxrk2.fsf@gmail.com> <5BC8B7A4.8020405@gmx.at> <87ftx24c4s.fsf@gmail.com> <5BC99700.1050309@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1539958720 952 195.159.176.226 (19 Oct 2018 14:18:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2018 14:18:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Robert Pluim , 22000@debbugs.gnu.org, vivek@etla.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 19 16:18:35 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 1gDVbn-00008V-6A for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2018 16:18:35 +0200 Original-Received: from localhost ([::1]:50890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDVdt-0006PR-Ay for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2018 10:20:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDVcM-0005Tf-Ic for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2018 10:19:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDVcG-0001FV-W5 for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2018 10:19:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55387) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDVcE-0001At-Gs for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2018 10:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gDVcE-0002iA-9U for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2018 10:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Oct 2018 14:19:02 +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.153995869210354 (code B ref 22000); Fri, 19 Oct 2018 14:19:02 +0000 Original-Received: (at 22000) by debbugs.gnu.org; 19 Oct 2018 14:18:12 +0000 Original-Received: from localhost ([127.0.0.1]:59645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDVbO-0002gv-Hs for submit@debbugs.gnu.org; Fri, 19 Oct 2018 10:18:12 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:43293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDVbM-0002gb-3w for 22000@debbugs.gnu.org; Fri, 19 Oct 2018 10:18:08 -0400 Original-Received: from rosalinde ([188.109.175.180]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LxMgg-1fY2ne3iME-016xSA; Fri, 19 Oct 2018 16:17:57 +0200 Original-Received: from rosalinde ([188.109.175.180]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LxMgg-1fY2ne3iME-016xSA; Fri, 19 Oct 2018 16:17:57 +0200 In-Reply-To: <5BC99700.1050309@gmx.at> (martin rudalics's message of "Fri, 19 Oct 2018 10:34:08 +0200") X-Provags-ID: V03:K1:fFj8OOzscX22QUwc5kb657mkx+qSBdKlyS3uPzukRAI+equGttp YCOgZwo8MY2c2qEpQf+N8dPXFjwMlnmkjzsPm0F/jDqQ4p0kUoXT3GcGNYohiLqhBVSrFYW Nzlwd8maYO8E0cwAIkd7RXkYMLOYjXftRal+X/ZZig1LE9gxGUOLbIrzTmaXqmCg9c4o+WX EMmKkgwNcy+lXaMM7bZKA== X-UI-Out-Filterresults: notjunk:1;V01:K0:/w+f00tECcs=:xbFkwL3hVPsUnCwU9+wge1 XSzYWNFExR1nRcEBtRI09Q4l/5+NKLcRFcR+ekYGkjlagBFw/YtDhm52Ta0A9UllTBDfQcBHo oM/ILGOJEp8BMFw6+pXQO06wt6mMDkAuiTBqAlMAE7FdHtZ6FrpS+HsP8Zbw0PrL6WxKorPk2 Q0EA8QBfDeS1rCLs5iJbJcA6XFydTP+kvgKs4vPA+B+YDNyH0eSbCwXKSlsyJ2z33nRqwyZTP h4PZCNIps3df/khEP76FVL4SrsBcp9NfOhtcem4L79VMBdONTnwkgUFWKPBbtaIBp4P1COaK6 aNcLwaw8k17MF2N4we0M8iikAoGHLLRAD3pX4+9lAARJJvlG+Mls52sm3kIOi6lW9TnHWhefe XlCD9I7l/XOvjQUvLu1IdzTXwEKT27MTWUHsIOyAgARlEggOOvZOXDMODxsegHmc8QVY33g6J ijBYcxVvotAIPwUp6rO8E0XqWGOheTXefOpBggLGcLZsuTkFEyo1wJW8BYg0YSOZlkqfz5tBG 2z2GMJPSrQYduq+mFwjGAdX4OKiBDPY6o9w3BELWiPSmarpYtu6wJ21TZgAHDqUzVUnGRzYaH jVVqP5QyvUYv1yngTo9S48RDz0ERdM1UemjeHPczn4Sfgza7CtmcRLZtlaQoQIZ95ou+HNInF vS+ObJYwLel6cz/wPqErM0Y/ENGzTZvQyZI2l5hryoD6F5p9v106eauyavpMMlG1JO/1MzXIt qA0pp5LiRVjfkTlEGpkTIh37FevZMkX/uAlcAZ8BaWYGT6iJbgSt8NWxiYbFQe/sBB0GojO1 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:151442 Archived-At: On Fri, 19 Oct 2018 10:34:08 +0200 martin rudalics wrote: >> Something very strange is going on: menu-bar-scrollbar-mode is nil by >> default, so why am I seeing a scrollbar at all? > > Can you please describe the steps you performed? Is this with -Q or > in a session where you turned the menu bar on later? > >> Even stranger: with KDE I see the scrollbar, but running the same >> emacs binary under GNOME I don=CA=BCt (and the menubar is truncated when >> the frame is too narrow, so the functionality is fine). > > Is there no way to turn the scroll bar off under KDE? Can you turn > the scroll bar on under GNOME? > >> Yes. I=CA=BCm thinking there should be no scrollbar at all. >> >> >> >> I=CA=BCm seeing a *vertical* scroll bar. So probably this is just a slig= ht >> miscalculation of the menubar height (but then why is it different >> under KDE than GNOME?). Would it make sense to start playing with >> gtkutil.c:MENUBAR_STYLESHEET ? > > I think so. But I'd like to see at least one or two other persons > with sufficiently new GTKs kick in (Stephen, pretty please) so we get > a more complete picture of which problems may occur. I've applied the patches in https://lists.gnu.org/archive/html/bug-gnu-emacs/2018-10/msg00514.html to current master and everything seems to be working as it should. This is with GTK+ 3.22.30 and Openbox using several GNOME libraries; I don't have a complete GNOME DE but I may be able to try with KDE over the weekend. There are a couple of visual oddities: when the `menu-bar-scrollbar' frame parameter has the value nil or `forced-resize' (or when the item "Menu Bar Scroll/Truncate" of the Options->Show/Hide menu is set to "Truncate" or "Resize Frame"), then there is no thin dividing line between the menu bar and the tool bar (in contrast to Emacs built without this patchset), and in addition, when a menu bar menu is open, the dividing lines in the menu are rather thick; but when the `menu-bar-scrollbar' frame parameter has the value `automatic', the thin dividing line between the menu bar and the tool bar is displayed (and the menu bar itself is noticeably thicker than in Emacs built without this patchset), and the dividing lines in an open menu are thinner, though not as thin as the line between the menu and tool bars (in Emacs built without this patchset the menu dividers are just as thin as the the divider between the menu and tool bars); with the parameter value `always' the scroll bar replaces the dividing line between the menu and tool bars, and the menu dividers have the same thickness as with the `automatic' setting. Steve Berman