From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Steven Tamm Newsgroups: gmane.emacs.devel Subject: Re: Toolbars on MacOSX Date: Tue, 11 May 2004 19:48:38 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1084330528 21671 80.91.224.253 (12 May 2004 02:55:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 May 2004 02:55:28 +0000 (UTC) Cc: Piet van Oostrum , "Kim F. Storm" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 12 04:55:14 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNjtq-00043x-00 for ; Wed, 12 May 2004 04:55:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNjtq-0003WQ-00 for ; Wed, 12 May 2004 04:55:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNjpq-0001G6-Cz for emacs-devel@quimby.gnus.org; Tue, 11 May 2004 22:51:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNjoN-0000rL-8n for emacs-devel@gnu.org; Tue, 11 May 2004 22:49:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNjnq-0000em-4z for emacs-devel@gnu.org; Tue, 11 May 2004 22:49:33 -0400 Original-Received: from [17.250.248.85] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNjnp-0000dI-Mi for emacs-devel@gnu.org; Tue, 11 May 2004 22:49:02 -0400 Original-Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i4C2ms0Z026382; Tue, 11 May 2004 19:48:54 -0700 (PDT) Original-Received: from [10.0.1.201] (c-24-5-11-73.client.comcast.net [24.5.11.73]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 3.0) with ESMTP id i4C2mfhS003395; Tue, 11 May 2004 19:48:53 -0700 (PDT) In-Reply-To: Original-To: YAMAMOTO Mitsuharu , emacs-devel X-Mailer: Apple Mail (2.613) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23211 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23211 I've checked in the XPM patch and enabled tool-bar-mode by default. I've played around with it for a while now, and it appears to have the same behaviour as the X and NT GUIs. To go back to the old "no toolbar" behavior, you need customize the tool-bar-mode variable or set tool-bar-lines to 0 in .emacs. (setq default-frame-alist '(tool-bar-lines . 0)) will do. The only major "hole" is the fact that tool-tips aren't supported with Carbon, yet. In fact, tooltips might be the only "hole" in Carbon Emacs? I've always had this idea that implementing tool-tips natively might be easier than porting over the w32 code (which creates a small highly-customized frame)... any thoughts? -Steven On May 11, 2004, at 2:49 AM, YAMAMOTO Mitsuharu wrote: >>>>>> On 04 May 2004 23:16:20 +0200, Piet van Oostrum >>>>>> said: > >> Now there's image support in CVS emacs for MacOSX, I would think >> toolbars should work. However, I can't get it working (I tried for >> VM). Is there anything that prevents toolbars on MacOSX or is there >> some incantation that I missed? > > Currently, toolbars are not enabled by default. Try M-x tool-bar-mode > RET. > > There is a bug that a toolbar button is not highlighted just after > being clicked. The following patch will solve the problem. > > I would suggest enabling toolbars by default together with the XPM > support code that I posted the other day. > > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp > > Index: src/macterm.c > =================================================================== > RCS file: /cvsroot/emacs/emacs/src/macterm.c,v > retrieving revision 1.67 > diff -c -r1.67 macterm.c > *** src/macterm.c 7 May 2004 17:46:50 -0000 1.67 > --- src/macterm.c 10 May 2004 13:04:26 -0000 > *************** > *** 1210,1216 **** > FOR_EACH_FRAME (rest, frame) > x_flush (XFRAME (frame)); > } > ! else if (FRAME_X_P (f)) > XFlush (FRAME_MAC_DISPLAY (f)); > UNBLOCK_INPUT; > #endif /* TARGET_API_MAC_CARBON */ > --- 1210,1216 ---- > FOR_EACH_FRAME (rest, frame) > x_flush (XFRAME (frame)); > } > ! else if (FRAME_MAC_P (f)) > XFlush (FRAME_MAC_DISPLAY (f)); > UNBLOCK_INPUT; > #endif /* TARGET_API_MAC_CARBON */ > *************** > *** 1410,1416 **** > XTframe_up_to_date (f) > struct frame *f; > { > ! if (FRAME_X_P (f)) > { > struct mac_display_info *dpyinfo = FRAME_MAC_DISPLAY_INFO (f); > > --- 1410,1416 ---- > XTframe_up_to_date (f) > struct frame *f; > { > ! if (FRAME_MAC_P (f)) > { > struct mac_display_info *dpyinfo = FRAME_MAC_DISPLAY_INFO (f); > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://mail.gnu.org/mailman/listinfo/emacs-devel