From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: menu-bar: disable items when no frame visible Date: Tue, 13 Dec 2005 08:19:20 +0100 Message-ID: <439E75F8.4050201@swipnet.se> References: <708F3D2D-A87C-4F80-BC27-171D82653F4D@gmail.com> <069BF3EB-C5E4-4042-91E9-0DFB37C58E99@gmail.com> <36F6CF11-E742-4175-A995-E5A62EC2A335@gmail.com> <87psobhwo5.fsf@jurta.org> <87u0dl3gpy.fsf@jurta.org> <439D3397.1020404@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134458471 20763 80.91.229.2 (13 Dec 2005 07:21:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 07:21:11 +0000 (UTC) Cc: juri@jurta.org, david.reitter@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 13 08:21:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Em4Sh-0000qR-K2 for ged-emacs-devel@m.gmane.org; Tue, 13 Dec 2005 08:20:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Em4TE-0006Ct-Cm for ged-emacs-devel@m.gmane.org; Tue, 13 Dec 2005 02:21:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Em4T1-0006Cc-Oa for emacs-devel@gnu.org; Tue, 13 Dec 2005 02:20:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Em4T1-0006CQ-BP for emacs-devel@gnu.org; Tue, 13 Dec 2005 02:20:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Em4T1-0006CN-9e for emacs-devel@gnu.org; Tue, 13 Dec 2005 02:20:55 -0500 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Em4Up-0003k4-2I; Tue, 13 Dec 2005 02:22:47 -0500 Original-Received: from coolsville.localdomain ([83.226.180.193] [83.226.180.193]) by mxfep02.bredband.com with ESMTP id <20051213072017.INPH17186.mxfep02.bredband.com@coolsville.localdomain>; Tue, 13 Dec 2005 08:20:17 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en Original-To: Eli Zaretskii In-Reply-To: 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:47614 Archived-At: Eli Zaretskii wrote: >> >>It should be so already. Code-wise there is no difference between a >>menu bar menu and a detached menu, so if enabling/disabling works for >>the menu bar, it should work for detached menus also. Are there cases >>where this doesn't work? >> >>When a frame is iconified, the detached menus are (or should be) >>iconified as well. This is done by the GTK toolkit. > > > What about the other half of what Richard wrote: ``make the enabling > and disabling of items in the menu depend on its associated frame'' > (which is the original problem that started this thread)? When you > say ``it should be so already'', do you mean it already works? > Because, AFAIK, in the current code enabling/disabling menu items > depends on the variable menu-updating-frame, which is not set > correctly on some platforms, like the no-toolkit X build. I mean that if the general problem of updating menu-updating-frame is fixed, the detached menus should "just work". But if it is a toolkit dependent problem, I'll have a look and see if there are cases where menu-updating-frame isn't set correctly for the GTK build. Jan D.