From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: [Fwd: Frame Height Different for Default Frame and Additional Frames] Date: Sat, 05 Jan 2008 18:33:34 +0100 Message-ID: <477FBF6E.20307@swipnet.se> References: <002501c8044b$fcc95390$6100000a@intermedinc.internal> <4701F8AC.6070900@gmx.at> <470A9D22.2040709@gmx.at> <470BF1BF.3000609@gmx.at> <470C695D.5010906@swipnet.se> <470DE439.1030603@gmx.at> <470E655E.10905@swipnet.se> <4773F8BA.4090009@gmx.at> <47755756.20601@gmx.at> <47758C04.9050908@gmx.at> <477F6887.60703@swipnet.se> <477F8145.9000605@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199554463 28756 80.91.229.12 (5 Jan 2008 17:34:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2008 17:34:23 +0000 (UTC) Cc: bob@rattlesnake.com, rms@gnu.org, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 05 18:34:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBCuw-0002YM-7f for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2008 18:34:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBCuZ-0001LQ-MB for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2008 12:34:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBCuV-0001I1-AB for emacs-devel@gnu.org; Sat, 05 Jan 2008 12:34:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBCuU-0001Gd-As for emacs-devel@gnu.org; Sat, 05 Jan 2008 12:34:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBCuU-0001GS-74 for emacs-devel@gnu.org; Sat, 05 Jan 2008 12:34:14 -0500 Original-Received: from av12-2-sn2.hy.skanova.net ([81.228.8.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBCuQ-0007ec-FY; Sat, 05 Jan 2008 12:34:10 -0500 Original-Received: by av12-2-sn2.hy.skanova.net (Postfix, from userid 502) id D8E97387CB; Sat, 5 Jan 2008 18:34:08 +0100 (CET) Original-Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av12-2-sn2.hy.skanova.net (Postfix) with ESMTP id BD2093858A; Sat, 5 Jan 2008 18:34:08 +0100 (CET) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id 60EA537E44; Sat, 5 Jan 2008 18:34:08 +0100 (CET) User-Agent: Thunderbird 2.0.0.6 (X11/20071022) In-Reply-To: <477F8145.9000605@gmx.at> X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86194 Archived-At: martin rudalics skrev: >>>Apparently for Gtk+ users the height changes but the number of visible >>>lines remains the same when toggling `tool-bar-mode'. For native >>>toolbar users the height remains the same and the number of visible >>>lines changes. I reported this only to explain the behavior of Emacs >>>with native toolbars as seen here. >> >> >> Yes this is one of many symptoms of bugs in the Emacs-Gtk+ resize > code. Is is >> mainly due to my misunderstanding of both Gtk+ resize handling and Emacs >> resize handling. This time two wrongs did not make one right :-). > > Did we already settle on a "right" way to do this? Robert expressed the > desire to keep the number of text lines invariant. ISTR others wanted > the size of the frame on the screen stay invariant. At least a similar > issue was recently brought up for menubars. Finally, I'm interested how > changes of menu-bar-lines/tool-bar-lines are supposed to be applied and > handled - I'm quite lost in this context. > > I don't think we did. But frame size can't in general stay constant as we have wm hints. For example, I have 13 pixels of text height. That gives min resize 13. The tool bar is 36 pixels. So when the tool bar goes, either we increase text size by 3 (== 39, 3 additional pixels) or by 2 (26, decrease by 10 pixels). I'll implement whatever seems easiest, and then people can suggest alternatives after that. Jan D.