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: Wed, 18 Jul 2018 11:39:12 +0100 (BST) Message-ID: References: <87k2p8h1vn.fsf@isaac.fritz.box> <5B4C4911.8040900@gmx.at> <5B4D9F5F.20506@gmx.at> <5B4EE5AF.5000304@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: blaine.gmane.org 1531910287 11872 195.159.176.226 (18 Jul 2018 10:38:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2018 10:38:07 +0000 (UTC) User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) Cc: 22000@debbugs.gnu.org, David Engster To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 18 12:38:03 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 1ffjqL-0002wH-2j for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2018 12:38:01 +0200 Original-Received: from localhost ([::1]:35830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjsS-0001MQ-7E for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2018 06:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjsL-0001MJ-Tm for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2018 06:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffjsI-0003Y7-OK for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2018 06:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffjsI-0003Xf-JM for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2018 06:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ffjsI-0007Ff-Ba for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2018 06:40: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: Wed, 18 Jul 2018 10:40: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.153191035827815 (code B ref 22000); Wed, 18 Jul 2018 10:40:02 +0000 Original-Received: (at 22000) by debbugs.gnu.org; 18 Jul 2018 10:39:18 +0000 Original-Received: from localhost ([127.0.0.1]:46174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffjra-0007EZ-0e for submit@debbugs.gnu.org; Wed, 18 Jul 2018 06:39:18 -0400 Original-Received: from ceres.etla.org ([85.119.82.193]:39135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ffjrY-0007EP-8W for 22000@debbugs.gnu.org; Wed, 18 Jul 2018 06:39:16 -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 1ffjrW-0005ms-92; Wed, 18 Jul 2018 11:39:14 +0100 X-X-Sender: vivek@platypus.pepperfish.net In-Reply-To: <5B4EE5AF.5000304@gmx.at> 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: > suppose we used a non-scrolled container window to put the menu bar > in, get its size before updating the menu bar, update the menu bar and > make a gtk_widget_set_size request for that container window to > restore its previous size. Would that fail and why? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 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:148632 Archived-At: > suppose we used a non-scrolled container window to put the menu bar > in, get its size before updating the menu bar, update the menu bar and > make a gtk_widget_set_size request for that container window to > restore its previous size. Would that fail and why? Depends on the behaviour of the container. The menu bar gets poked to emit its size from time to time by an internal gtk callback so if the container respects its wishes it will pop back to the larger size semi-predictably (this behaviour can occasionally be seen in the currently released emacs as that's how the hbox behaves). So we'd need a container that didn't grant such space requests. gtk fixed is close, but from its documentation has other limitations we don't want (no RTL support). You can turn scrollbars off in a scrolled window but unfortunately this results in the scrolled window responding to size allocation requests from its child.