From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: menu-bar: disable items when no frame visible Date: Mon, 12 Dec 2005 23:14:48 +0200 Message-ID: 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1134426910 4649 80.91.229.2 (12 Dec 2005 22:35:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2005 22:35:10 +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 Mon Dec 12 23:35:04 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ElwFS-0001IW-W3 for ged-emacs-devel@m.gmane.org; Mon, 12 Dec 2005 23:34:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElwFy-0008Mj-II for ged-emacs-devel@m.gmane.org; Mon, 12 Dec 2005 17:34:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Elv0v-0001lR-PA for emacs-devel@gnu.org; Mon, 12 Dec 2005 16:15:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Elv0u-0001lB-V2 for emacs-devel@gnu.org; Mon, 12 Dec 2005 16:15:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Elv0u-0001l0-R9 for emacs-devel@gnu.org; Mon, 12 Dec 2005 16:15:16 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Elv2h-0001WT-7M for emacs-devel@gnu.org; Mon, 12 Dec 2005 16:17:07 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-21-248.inter.net.il [80.230.21.248]) by romy.inter.net.il (MOS 3.7.2-GA) with ESMTP id DDV79061 (AUTH halo1); Mon, 12 Dec 2005 23:14:42 +0200 (IST) Original-To: "Jan D." In-reply-to: <439D3397.1020404@swipnet.se> (jan.h.d@swipnet.se) 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:47567 Archived-At: > Date: Mon, 12 Dec 2005 09:23:51 +0100 > From: "Jan D." > CC: Juri Linkov , david.reitter@gmail.com, eliz@gnu.org, > emacs-devel@gnu.org, jasonr@gnu.org > > Richard M. Stallman wrote: > > > > Does this mean you can have several detached GTK menus, > > > each detached from a different frame? > > > > Yes. > > > >So I guess it is necessary to make operations on each detached menu > >work on its associated frame, and to make the enabling and disabling > >of items in that menu depend on its associated frame. > > > >Jan, could you DTRT? > > > > 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.