From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.bugs Subject: bug#8176: 24.0.50; GUI toolkit differences Date: Sat, 05 Mar 2011 15:13:44 +1100 Message-ID: <8762ry8arr.fsf@rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299299828 31745 80.91.229.12 (5 Mar 2011 04:37:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2011 04:37:08 +0000 (UTC) To: 8176@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 05 05:37:04 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PvjEm-0006wF-3A for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 05:37:04 +0100 Original-Received: from localhost ([127.0.0.1]:42885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvjEl-0002KY-El for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Mar 2011 23:37:03 -0500 Original-Received: from [140.186.70.92] (port=60830 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvjEb-0002Ja-Sa for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:36:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvjEa-0002Sb-Hy for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:36:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvjEa-0002SX-Gd for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:36:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PvisU-0007cU-BW; Fri, 04 Mar 2011 23:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tim Cross Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Mar 2011 04:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8176 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129929843129265 (code B ref -1); Sat, 05 Mar 2011 04:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Mar 2011 04:13:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvisJ-0007by-77 for submit@debbugs.gnu.org; Fri, 04 Mar 2011 23:13:51 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvisI-0007bl-6X for submit@debbugs.gnu.org; Fri, 04 Mar 2011 23:13:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvisC-0007h8-9A for submit@debbugs.gnu.org; Fri, 04 Mar 2011 23:13:45 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:45530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvisC-0007h4-7H for submit@debbugs.gnu.org; Fri, 04 Mar 2011 23:13:44 -0500 Original-Received: from [140.186.70.92] (port=39647 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvisB-0004xT-4D for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:13:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvis8-0007gU-TT for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:13:43 -0500 Original-Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:55444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvis8-0007f8-HC for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:13:40 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsHALJFcU15LIm0/2dsb2JhbACYZgEBjXt1rgeGaS+IYA2FVAQ Original-Received: from ppp121-44-137-180.lns20.syd7.internode.on.net (HELO puma) ([121.44.137.180]) by ipmail07.adl2.internode.on.net with ESMTP; 05 Mar 2011 14:43:37 +1030 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 04 Mar 2011 23:14:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44642 Archived-At: The code below works under some GUI toolkits (i.e. windows, lucid and I think GNUStep), but will not work under versions built with GTK. From a discussion on the emacs-dev list, this appears to be due to design constraints with the GTK toolkit, which will not allow menu actions/buttons to be defined at the top level. I tried to verify this using the GTK documentation, but was unable to find anything specific. Either this is a bug in GTK or how emacs interfaces with the library (seems unlikely, more likely a desing constraint of GTK) and should be fixed or a footnote added to the manual to let developers know of this limitation in some toolkits, noteably GTK based ones. The following code was evaluated within the scratch buffer. I confirmed it works fine under emacs 24 built with lucid, but fails to work when built with GTK2+. Others reported it worked find under win32, but failed on ns. (defun tx-greet () (interactive) (message "Hello Tim!")) (defun tx-menu () (interactive) (define-key lisp-interaction-mode-map [menu-bar tx] '(menu-item "TX Test" tx-greet))) Tim -- Tim Cross tcross@rapttech.com.au There are two types of people in IT - those who do not manage what they understand and those who do not understand what they manage.