diff options
author | Steven Tamm <steventamm@mac.com> | 2004-05-30 00:18:41 +0000 |
---|---|---|
committer | Steven Tamm <steventamm@mac.com> | 2004-05-30 00:18:41 +0000 |
commit | 73368a5308123f23878af01579e139d438f5c8e3 (patch) | |
tree | ab50d845f0fb116ea0a51327edef615c74f75e79 /src/macmenu.c | |
parent | 55bc2679d8916d7cf95c62e930342197390e226a (diff) | |
download | emacs-73368a5308123f23878af01579e139d438f5c8e3.tar.gz |
Support Tooltips with the Carbon emacs port.
Some code cleanup using helper macros.
Diffstat (limited to 'src/macmenu.c')
-rw-r--r-- | src/macmenu.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/macmenu.c b/src/macmenu.c index de768d4aea5..d205ee3b877 100644 --- a/src/macmenu.c +++ b/src/macmenu.c @@ -1784,11 +1784,7 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error) pos.h = x; pos.v = y; -#if TARGET_API_MAC_CARBON - SetPort (GetWindowPort (FRAME_MAC_WINDOW (f))); -#else - SetPort (FRAME_MAC_WINDOW (f)); -#endif + SetPortWindowPort (FRAME_MAC_WINDOW (f)); LocalToGlobal (&pos); @@ -1942,11 +1938,7 @@ mac_dialog (widget_value *wv) window_ptr = GetNewCWindow (DIALOG_WINDOW_RESOURCE, NULL, (WindowPtr) -1); -#if TARGET_API_MAC_CARBON - SetPort (GetWindowPort (window_ptr)); -#else - SetPort (window_ptr); -#endif + SetPortWindowPort (window_ptr); TextFont (0); /* Left and right margins in the dialog are 13 pixels each.*/ @@ -1964,11 +1956,7 @@ mac_dialog (widget_value *wv) SizeWindow (window_ptr, dialog_width, 78, 0); ShowWindow (window_ptr); -#if TARGET_API_MAC_CARBON - SetPort (GetWindowPort (window_ptr)); -#else - SetPort (window_ptr); -#endif + SetPortWindowPort (window_ptr); TextFont (0); |