emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbars on MacOSX


From: Steven Tamm
Subject: Re: Toolbars on MacOSX
Date: Tue, 11 May 2004 19:48:38 -0700

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 <address@hidden> 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
                                address@hidden

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
address@hidden
http://mail.gnu.org/mailman/listinfo/emacs-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]