From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#22000: Patch addressing the menu-bar frame-resize interaction Date: Wed, 24 Oct 2018 13:52:39 +0200 Message-ID: <87o9bj1rzs.fsf@gmail.com> References: <87k2p8h1vn.fsf@isaac.fritz.box> <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> <87ftx2jo1a.fsf@gmail.com> <87ftx2xd8r.fsf@gmail.com> <5BCA1AF7.20100@gmx.at> <87d0s1vuwa.fsf@gmail.com> <5BCF25F3.2020603@gmx.at> <87r2ggwyke.fsf@gmail.com> <5BCF65FB.8000607@gmx.at> <87va5s1nf7.fsf@gmail.com> <5BD03EF3.70508@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 1540381875 17032 195.159.176.226 (24 Oct 2018 11:51:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2018 11:51:15 +0000 (UTC) Cc: 22000@debbugs.gnu.org, vivek@etla.org, Stephen Berman To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 13:51:11 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 1gFHgt-0004KZ-5f for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2018 13:51:11 +0200 Original-Received: from localhost ([::1]:47783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFHiz-0007ld-LV for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2018 07:53:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFHil-0007kL-UX for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 07:53:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFHii-0000Do-J0 for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 07:53:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34913) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFHii-0000DJ-De for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 07:53:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFHig-0007Ae-DD for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 07:53:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Oct 2018 11:53: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.154038197127546 (code B ref 22000); Wed, 24 Oct 2018 11:53:02 +0000 Original-Received: (at 22000) by debbugs.gnu.org; 24 Oct 2018 11:52:51 +0000 Original-Received: from localhost ([127.0.0.1]:39171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFHiV-0007AE-6P for submit@debbugs.gnu.org; Wed, 24 Oct 2018 07:52:51 -0400 Original-Received: from mail-wr1-f54.google.com ([209.85.221.54]:36366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFHiT-0007A1-Ch for 22000@debbugs.gnu.org; Wed, 24 Oct 2018 07:52:50 -0400 Original-Received: by mail-wr1-f54.google.com with SMTP id y16so5277565wrw.3 for <22000@debbugs.gnu.org>; Wed, 24 Oct 2018 04:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=x5/I/PEKxyKDAH33nmwcnG7SmbeYuEwpj4idjsnlFIQ=; b=SiO6b1/IooWPryqWpUD6ucgKJSQIhmPW9gwwXF23IT9ewCjPbqgsWQWAnbPfkMMcyP Y5L6ijc8Hs5/K6c/I35/Od8WiSWe8vXX3EzBKIBzoxr6sMy/QLegFMcNlotVKoADTpgQ zb+sTCkk6Fu4rq4MvR3Li1f/3U4kSSE9Slsd+N0zyFDnbAY6oI/439tCbXKhNsgAfvDX IJNak/8lT/ZSQxxkRJZ/wM8dn/h9QnVwldgoTlezLsnA61uMGsv820+z0KDNSJTJI7Bx SJnenaraI7WAK5SgT9lSRP3tglYnozorIghl/UU4GAmcGy5SF+f/YkgR+0sR+nAPbXdv iD1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=x5/I/PEKxyKDAH33nmwcnG7SmbeYuEwpj4idjsnlFIQ=; b=F2KwFF9lehDcZMD1OvQtm3K+bJAOtQVTs/1acCrdmdNpukaw8FyylJiwEi5xFhiWA5 7W8hQkI7f8Xpu/4IHj6MdHjUGPtBhyw0VocMaB7BY7oDsssu9O1BR/Uiy+Cfym2F1C/d rBZJ6hLKOruvKKKjIu04GaFTSdUkqQtiW46BkZIj099duwXi/gYycNjG1voyCDGI9s4u qASRndj3nd7UBXQGxUdJ1BahavPv/e3lZNfqiJsJyX4fABeg5ViKRcMdE4Wh1jtmjt4n vPzU9in17BiXoGI3jbhMFWBzHWv6kYMCBTFglPBxgswWLnMffP6Pm5/kitIrG5hKStUL ToaA== X-Gm-Message-State: AGRZ1gKiiSRl1QSXHuwWfl9D2tS866CxlnsLBX53YS6yNVgQvV6Kf6bz AEB4nPv1kHX8bQIlXZbNVws= X-Google-Smtp-Source: AJdET5d5oKfTk+Mz41gqAMGvb8wrPoMwtF+2koI1jtlUWwW4MJJbpOX/X7/UKdC4APSCJFOhtXmKvA== X-Received: by 2002:a5d:65d1:: with SMTP id e17-v6mr2525537wrw.149.1540381963392; Wed, 24 Oct 2018 04:52:43 -0700 (PDT) Original-Received: from rpluim-ubuntu (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id y19-v6sm5836057wra.60.2018.10.24.04.52.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 04:52:41 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <5BD03EF3.70508@gmx.at> (martin rudalics's message of "Wed, 24 Oct 2018 11:44:19 +0200") 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:151549 Archived-At: martin rudalics writes: >> I don=CA=BCt understand how this could be Vivek's issue in any case: this >> particular problem existed already in emacs-26. > > I slowly begin to understand the issue. The vertical scroll bar shows > up as soon as the menu bar window gets high enough to make the slider > fit. Is that correct? One thing I do not understand then: Do we > really call xg_update_scrollbar_pos for the menu bar's scroll bar? If > so, how? IIUC the scroll bar code is oblivious to menu bar windows. > The vertical scroll bar shows up immediately the menu bar is drawn. xg_update_scrollbar_pos is not called for it at all. But see below. >> Now the vertical scrollbar on the right of the menubar, *that* might >> be Vivek's to solve (presumably there=CA=BCs a need to tell the menubar >> widget not to add that scrollbar). > > Agreed. And in fact, after digging through some more GTK docs, it=CA=BCs as simple as changing gtk_scrolled_window_set_policy (sw, scroll_policy, GTK_POLICY_AUTOMATIC); to gtk_scrolled_window_set_policy (sw, scroll_policy, GTK_POLICY_NEVER); =20=20 in Vivek's patch. Vivek, does that make sense? I don=CA=BCt think we ever want the menu bar to show a vertical scroll bar. Note that this also fixes the visual glitch that I saw with the dotted line and the menubar text descender truncation. Regards Robert