From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vivek Dasmohapatra Newsgroups: gmane.emacs.bugs Subject: bug#22000: Patch addressing the menu-bar frame-resize interaction Date: Mon, 16 Jul 2018 20:58:37 +0100 (BST) Message-ID: References: <87k2p8h1vn.fsf@isaac.fritz.box> <5B4C4911.8040900@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-299022163-1531771127=:921" X-Trace: blaine.gmane.org 1531771032 21741 195.159.176.226 (16 Jul 2018 19:57:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2018 19:57:12 +0000 (UTC) User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) Cc: 22000@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 16 21:57:08 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 1ff9cJ-0005WI-O8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2018 21:57:07 +0200 Original-Received: from localhost ([::1]:53461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff9eQ-0005hY-QX for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2018 15:59:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff9eF-0005ff-4O for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 15:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ff9eB-00013X-6v for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 15:59:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39037) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ff9eB-00013N-07 for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 15:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ff9eA-0007CO-Hf for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 15:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vivek Dasmohapatra Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jul 2018 19:59: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.153177113227656 (code B ref 22000); Mon, 16 Jul 2018 19:59:02 +0000 Original-Received: (at 22000) by debbugs.gnu.org; 16 Jul 2018 19:58:52 +0000 Original-Received: from localhost ([127.0.0.1]:44055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff9e0-0007C0-3i for submit@debbugs.gnu.org; Mon, 16 Jul 2018 15:58:52 -0400 Original-Received: from ceres.etla.org ([85.119.82.193]:54795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff9dx-0007Br-Tt for 22000@debbugs.gnu.org; Mon, 16 Jul 2018 15:58:50 -0400 Original-Received: from yaffle.pepperfish.net ([88.99.213.221] helo=[10.112.101.20]) by ceres.etla.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ff9dv-0000xf-KK; Mon, 16 Jul 2018 20:58:48 +0100 X-X-Sender: vivek@platypus.pepperfish.net In-Reply-To: X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "ceres.etla.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I have #ifdef'd the calls you mentioned with GTK_CHECK_VERSION guards. I also checked with one of the gnome/gtk devs and wrapping a widget with strict ideas about its size is how you are supposed to prevent its size from propagating: I suppose an alternative would be some widget that doesn't resize or scroll at all, but the basic approach would be the same. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Pas 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:148586 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-299022163-1531771127=:921 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed I have #ifdef'd the calls you mentioned with GTK_CHECK_VERSION guards. I also checked with one of the gnome/gtk devs and wrapping a widget with strict ideas about its size is how you are supposed to prevent its size from propagating: I suppose an alternative would be some widget that doesn't resize or scroll at all, but the basic approach would be the same. I could not find a way to make overlay scrolbars behave, I think it's probably a bug in overlay scrollbars since classic scrollbars behave just fine: I don't think that will be a problem as 3.16 is when overlay scrolling was introduced and that was also when the disabling function was provided. --8323329-299022163-1531771127=:921 Content-Type: TEXT/x-diff; name=0001-GTK3-menu-bars-force-frame-resizing-Bug-22000.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0001-GTK3-menu-bars-force-frame-resizing-Bug-22000.patch Rn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