diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 75 | ||||
| -rw-r--r-- | src/macterm.h | 7 |
2 files changed, 82 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index eb0040b371a..ae796a64db7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,78 @@ | |||
| 1 | 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT. | ||
| 4 | |||
| 5 | * macfns.c (mac_get_window_bounds): Move extern to macterm.h. | ||
| 6 | (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse. | ||
| 7 | |||
| 8 | * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler): | ||
| 9 | Don't call next handler. | ||
| 10 | [TARGET_API_MAC_CARBON] (install_menu_target_item_handler): | ||
| 11 | Remove argument. Install handler to application. | ||
| 12 | (set_frame_menubar): Don't change deep_p. | ||
| 13 | (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and | ||
| 14 | FRAME_OUTER_TO_INNER_DIFF_Y. | ||
| 15 | (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P) | ||
| 16 | (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID) | ||
| 17 | [HAVE_DIALOGS]: New macros. | ||
| 18 | [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog): | ||
| 19 | Use them. | ||
| 20 | (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString. | ||
| 21 | |||
| 22 | * macselect.c [MAC_OSX] (install_service_handler): Rename from | ||
| 23 | init_service_handler. All callers changed. Return OSStatus value. | ||
| 24 | |||
| 25 | * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort. | ||
| 26 | All callers changed so as not to call SetPortWindowPort. | ||
| 27 | (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw. | ||
| 28 | (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from | ||
| 29 | mac_draw_string_common. | ||
| 30 | (mac_draw_image_string_qd): Likewise. | ||
| 31 | (mac_draw_string_common): Use them. Add INLINE. | ||
| 32 | (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]: | ||
| 33 | Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and | ||
| 34 | GetGlobalMouse. | ||
| 35 | (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X | ||
| 36 | and FRAME_OUTER_TO_INNER_DIFF_Y. | ||
| 37 | [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise. | ||
| 38 | [USE_MAC_TSM] (mac_handle_text_input_event): Likewise. | ||
| 39 | (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for | ||
| 40 | repositioning window to mac_handle_window_event. | ||
| 41 | (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for | ||
| 42 | saving window location to mac_handle_window_event | ||
| 43 | [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here. | ||
| 44 | (install_menu_target_item_handler): Remove argument in extern. | ||
| 45 | [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers): | ||
| 46 | Also accept command events. | ||
| 47 | (do_keystroke): New function created from XTread_socket. | ||
| 48 | (init_command_handler): Remove functions. | ||
| 49 | [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window | ||
| 50 | and save window location by kEventWindowShowing and kEventWindowHiding | ||
| 51 | handlers here. Don't call next handler for window state change and | ||
| 52 | focus events. | ||
| 53 | (mac_handle_application_event, mac_handle_keyboard_event) | ||
| 54 | [TARGET_API_MAC_CARBON]: New functions. | ||
| 55 | (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for | ||
| 56 | kEventWindowShowing and kEventWindowHiding events. Move installation | ||
| 57 | of mouse, font, text input and menu target item handlers to | ||
| 58 | install_application_handler. | ||
| 59 | (install_application_handler) [TARGET_API_MAC_CARBON]: New function. | ||
| 60 | (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | ||
| 61 | New function. | ||
| 62 | (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: | ||
| 63 | Register it. | ||
| 64 | (XTread_socket) [TARGET_API_MAC_CARBON]: Consolidate | ||
| 65 | SendEventToEventTarget calls. Use FRAME_OUTER_TO_INNER_DIFF_X and | ||
| 66 | FRAME_OUTER_TO_INNER_DIFF_Y. Move application activation handler | ||
| 67 | to mac_handle_application_event. Move keyboard handler to | ||
| 68 | mac_handle_keyboard_event. | ||
| 69 | (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke. | ||
| 70 | (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call | ||
| 71 | init_command_handler. Call install_application_handler. | ||
| 72 | |||
| 73 | * macterm.h (mac_get_window_bounds): Move extern from macfns.c. | ||
| 74 | (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros. | ||
| 75 | |||
| 1 | 2007-06-07 Glenn Morris <rgm@gnu.org> | 76 | 2007-06-07 Glenn Morris <rgm@gnu.org> |
| 2 | 77 | ||
| 3 | * emacs.c (main): Use `emacs-copyright' in --version output. | 78 | * emacs.c (main): Use `emacs-copyright' in --version output. |
diff --git a/src/macterm.h b/src/macterm.h index 789089b0bc9..7984ff2b970 100644 --- a/src/macterm.h +++ b/src/macterm.h | |||
| @@ -369,6 +369,12 @@ typedef struct mac_output mac_output; | |||
| 369 | /* This is the 'font_info *' which frame F has. */ | 369 | /* This is the 'font_info *' which frame F has. */ |
| 370 | #define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table) | 370 | #define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table) |
| 371 | 371 | ||
| 372 | /* The difference in pixels between the top left corner of the | ||
| 373 | Emacs window (including possible window manager decorations) | ||
| 374 | and FRAME_MAC_WINDOW (f). */ | ||
| 375 | #define FRAME_OUTER_TO_INNER_DIFF_X(f) ((f)->x_pixels_diff) | ||
| 376 | #define FRAME_OUTER_TO_INNER_DIFF_Y(f) ((f)->y_pixels_diff) | ||
| 377 | |||
| 372 | /* Value is the smallest width of any character in any font on frame F. */ | 378 | /* Value is the smallest width of any character in any font on frame F. */ |
| 373 | 379 | ||
| 374 | #define FRAME_SMALLEST_CHAR_WIDTH(F) \ | 380 | #define FRAME_SMALLEST_CHAR_WIDTH(F) \ |
| @@ -643,6 +649,7 @@ extern void do_apple_menu P_ ((SInt16)); | |||
| 643 | #if USE_CG_DRAWING | 649 | #if USE_CG_DRAWING |
| 644 | extern void mac_prepare_for_quickdraw P_ ((struct frame *)); | 650 | extern void mac_prepare_for_quickdraw P_ ((struct frame *)); |
| 645 | #endif | 651 | #endif |
| 652 | extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); | ||
| 646 | extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); | 653 | extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); |
| 647 | 654 | ||
| 648 | #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 | 655 | #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 |