diff options
| author | Steven Tamm | 2004-05-30 00:18:41 +0000 |
|---|---|---|
| committer | Steven Tamm | 2004-05-30 00:18:41 +0000 |
| commit | 50bf76732ba3cd84d56185685e58604dd139ba94 (patch) | |
| tree | 1f86ade4b3d5ac94add211e8ffbb8690941033fc /src/macmenu.c | |
| parent | f2f82fa491294e51620ef6eddfd03912e28e2936 (diff) | |
| download | emacs-50bf76732ba3cd84d56185685e58604dd139ba94.tar.gz emacs-50bf76732ba3cd84d56185685e58604dd139ba94.zip | |
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) | |||
| 1784 | pos.h = x; | 1784 | pos.h = x; |
| 1785 | pos.v = y; | 1785 | pos.v = y; |
| 1786 | 1786 | ||
| 1787 | #if TARGET_API_MAC_CARBON | 1787 | SetPortWindowPort (FRAME_MAC_WINDOW (f)); |
| 1788 | SetPort (GetWindowPort (FRAME_MAC_WINDOW (f))); | ||
| 1789 | #else | ||
| 1790 | SetPort (FRAME_MAC_WINDOW (f)); | ||
| 1791 | #endif | ||
| 1792 | 1788 | ||
| 1793 | LocalToGlobal (&pos); | 1789 | LocalToGlobal (&pos); |
| 1794 | 1790 | ||
| @@ -1942,11 +1938,7 @@ mac_dialog (widget_value *wv) | |||
| 1942 | 1938 | ||
| 1943 | window_ptr = GetNewCWindow (DIALOG_WINDOW_RESOURCE, NULL, (WindowPtr) -1); | 1939 | window_ptr = GetNewCWindow (DIALOG_WINDOW_RESOURCE, NULL, (WindowPtr) -1); |
| 1944 | 1940 | ||
| 1945 | #if TARGET_API_MAC_CARBON | 1941 | SetPortWindowPort (window_ptr); |
| 1946 | SetPort (GetWindowPort (window_ptr)); | ||
| 1947 | #else | ||
| 1948 | SetPort (window_ptr); | ||
| 1949 | #endif | ||
| 1950 | 1942 | ||
| 1951 | TextFont (0); | 1943 | TextFont (0); |
| 1952 | /* Left and right margins in the dialog are 13 pixels each.*/ | 1944 | /* Left and right margins in the dialog are 13 pixels each.*/ |
| @@ -1964,11 +1956,7 @@ mac_dialog (widget_value *wv) | |||
| 1964 | SizeWindow (window_ptr, dialog_width, 78, 0); | 1956 | SizeWindow (window_ptr, dialog_width, 78, 0); |
| 1965 | ShowWindow (window_ptr); | 1957 | ShowWindow (window_ptr); |
| 1966 | 1958 | ||
| 1967 | #if TARGET_API_MAC_CARBON | 1959 | SetPortWindowPort (window_ptr); |
| 1968 | SetPort (GetWindowPort (window_ptr)); | ||
| 1969 | #else | ||
| 1970 | SetPort (window_ptr); | ||
| 1971 | #endif | ||
| 1972 | 1960 | ||
| 1973 | TextFont (0); | 1961 | TextFont (0); |
| 1974 | 1962 | ||