diff options
Diffstat (limited to 'src/macmenu.c')
| -rw-r--r-- | src/macmenu.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/macmenu.c b/src/macmenu.c index 06b1b16cf41..d205ee3b877 100644 --- a/src/macmenu.c +++ b/src/macmenu.c | |||
| @@ -1424,7 +1424,8 @@ set_frame_menubar (f, first_time, deep_p) | |||
| 1424 | 1424 | ||
| 1425 | for (i = 0; i < previous_menu_items_used; i++) | 1425 | for (i = 0; i < previous_menu_items_used; i++) |
| 1426 | if (menu_items_used == i | 1426 | if (menu_items_used == i |
| 1427 | || (!Fequal (previous_items[i], XVECTOR (menu_items)->contents[i]))) | 1427 | || (NILP (Fequal (previous_items[i], |
| 1428 | XVECTOR (menu_items)->contents[i])))) | ||
| 1428 | break; | 1429 | break; |
| 1429 | if (i == menu_items_used && i == previous_menu_items_used && i != 0) | 1430 | if (i == menu_items_used && i == previous_menu_items_used && i != 0) |
| 1430 | { | 1431 | { |
| @@ -1783,11 +1784,7 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error) | |||
| 1783 | pos.h = x; | 1784 | pos.h = x; |
| 1784 | pos.v = y; | 1785 | pos.v = y; |
| 1785 | 1786 | ||
| 1786 | #if TARGET_API_MAC_CARBON | 1787 | SetPortWindowPort (FRAME_MAC_WINDOW (f)); |
| 1787 | SetPort (GetWindowPort (FRAME_MAC_WINDOW (f))); | ||
| 1788 | #else | ||
| 1789 | SetPort (FRAME_MAC_WINDOW (f)); | ||
| 1790 | #endif | ||
| 1791 | 1788 | ||
| 1792 | LocalToGlobal (&pos); | 1789 | LocalToGlobal (&pos); |
| 1793 | 1790 | ||
| @@ -1941,11 +1938,7 @@ mac_dialog (widget_value *wv) | |||
| 1941 | 1938 | ||
| 1942 | window_ptr = GetNewCWindow (DIALOG_WINDOW_RESOURCE, NULL, (WindowPtr) -1); | 1939 | window_ptr = GetNewCWindow (DIALOG_WINDOW_RESOURCE, NULL, (WindowPtr) -1); |
| 1943 | 1940 | ||
| 1944 | #if TARGET_API_MAC_CARBON | 1941 | SetPortWindowPort (window_ptr); |
| 1945 | SetPort (GetWindowPort (window_ptr)); | ||
| 1946 | #else | ||
| 1947 | SetPort (window_ptr); | ||
| 1948 | #endif | ||
| 1949 | 1942 | ||
| 1950 | TextFont (0); | 1943 | TextFont (0); |
| 1951 | /* Left and right margins in the dialog are 13 pixels each.*/ | 1944 | /* Left and right margins in the dialog are 13 pixels each.*/ |
| @@ -1963,11 +1956,7 @@ mac_dialog (widget_value *wv) | |||
| 1963 | SizeWindow (window_ptr, dialog_width, 78, 0); | 1956 | SizeWindow (window_ptr, dialog_width, 78, 0); |
| 1964 | ShowWindow (window_ptr); | 1957 | ShowWindow (window_ptr); |
| 1965 | 1958 | ||
| 1966 | #if TARGET_API_MAC_CARBON | 1959 | SetPortWindowPort (window_ptr); |
| 1967 | SetPort (GetWindowPort (window_ptr)); | ||
| 1968 | #else | ||
| 1969 | SetPort (window_ptr); | ||
| 1970 | #endif | ||
| 1971 | 1960 | ||
| 1972 | TextFont (0); | 1961 | TextFont (0); |
| 1973 | 1962 | ||