diff options
| author | YAMAMOTO Mitsuharu | 2007-06-06 08:33:32 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-06-06 08:33:32 +0000 |
| commit | 7eb0d72732f4d52beb1f60f6d29152575a07696c (patch) | |
| tree | c2bfe0fd39732d43743abf95ffa42c1e768fe75d /src | |
| parent | 3354caee461d29293205916f3bcc41def3bdd4f5 (diff) | |
| download | emacs-7eb0d72732f4d52beb1f60f6d29152575a07696c.tar.gz emacs-7eb0d72732f4d52beb1f60f6d29152575a07696c.zip | |
(struct scroll_bar): Rename member control_handle_low
and control_handle_high to control_ref_low and control_ref_high.
All uses changed.
(SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
respectively. All uses changed.
(XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
(install_window_handler, remove_window_handler): Replace WindowPtr
with WindowRef in externs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 27 | ||||
| -rw-r--r-- | src/macterm.h | 26 |
2 files changed, 40 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e1e8867e882..49168498e9f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,30 @@ | |||
| 1 | 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * macfns.c (mac_window): Replace WindowPtr with WindowRef. | ||
| 4 | |||
| 5 | * macgui.h: Replace WindowPtr with WindowRef. | ||
| 6 | |||
| 7 | * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and | ||
| 8 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | ||
| 9 | Replace ControlHandle with ControlRef. | ||
| 10 | (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU. | ||
| 11 | |||
| 12 | * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and | ||
| 13 | GetMenuRef, respectively. Replace WindowPtr with WindowRef. | ||
| 14 | Replace ControlHandle with ControlRef. | ||
| 15 | (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead. | ||
| 16 | [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'. | ||
| 17 | |||
| 18 | * macterm.h (struct scroll_bar): Rename member control_handle_low | ||
| 19 | and control_handle_high to control_ref_low and control_ref_high. | ||
| 20 | All uses changed. | ||
| 21 | (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from | ||
| 22 | SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE, | ||
| 23 | respectively. All uses changed. | ||
| 24 | (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground) | ||
| 25 | (install_window_handler, remove_window_handler): Replace WindowPtr | ||
| 26 | with WindowRef in externs. | ||
| 27 | |||
| 1 | 2007-06-05 Juanma Barranquero <lekktu@gmail.com> | 28 | 2007-06-05 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 29 | ||
| 3 | * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops. | 30 | * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops. |
diff --git a/src/macterm.h b/src/macterm.h index b3826c5e7f7..789089b0bc9 100644 --- a/src/macterm.h +++ b/src/macterm.h | |||
| @@ -406,9 +406,9 @@ struct scroll_bar { | |||
| 406 | /* The next and previous in the chain of scroll bars in this frame. */ | 406 | /* The next and previous in the chain of scroll bars in this frame. */ |
| 407 | Lisp_Object next, prev; | 407 | Lisp_Object next, prev; |
| 408 | 408 | ||
| 409 | /* The Mac control handle of this scroll bar. Since this is a | 409 | /* The Mac control reference of this scroll bar. Since this is a |
| 410 | pointer value, we store it split into two Lisp integers. */ | 410 | pointer value, we store it split into two Lisp integers. */ |
| 411 | Lisp_Object control_handle_low, control_handle_high; | 411 | Lisp_Object control_ref_low, control_ref_high; |
| 412 | 412 | ||
| 413 | /* The position and size of the scroll bar in pixels, relative to the | 413 | /* The position and size of the scroll bar in pixels, relative to the |
| 414 | frame. */ | 414 | frame. */ |
| @@ -466,14 +466,14 @@ struct scroll_bar { | |||
| 466 | 466 | ||
| 467 | /* Extract the Mac control handle of the scroll bar from a struct | 467 | /* Extract the Mac control handle of the scroll bar from a struct |
| 468 | scroll_bar. */ | 468 | scroll_bar. */ |
| 469 | #define SCROLL_BAR_CONTROL_HANDLE(ptr) \ | 469 | #define SCROLL_BAR_CONTROL_REF(ptr) \ |
| 470 | ((ControlHandle) SCROLL_BAR_PACK ((ptr)->control_handle_low, \ | 470 | ((ControlRef) SCROLL_BAR_PACK ((ptr)->control_ref_low, \ |
| 471 | (ptr)->control_handle_high)) | 471 | (ptr)->control_ref_high)) |
| 472 | 472 | ||
| 473 | /* Store a Mac control handle in a struct scroll_bar. */ | 473 | /* Store a Mac control handle in a struct scroll_bar. */ |
| 474 | #define SET_SCROLL_BAR_CONTROL_HANDLE(ptr, handle) \ | 474 | #define SET_SCROLL_BAR_CONTROL_REF(ptr, ref) \ |
| 475 | (SCROLL_BAR_UNPACK ((ptr)->control_handle_low, \ | 475 | (SCROLL_BAR_UNPACK ((ptr)->control_ref_low, \ |
| 476 | (ptr)->control_handle_high, (unsigned long) (handle))) | 476 | (ptr)->control_ref_high, (unsigned long) (ref))) |
| 477 | 477 | ||
| 478 | /* Return the inside width of a vertical scroll bar, given the outside | 478 | /* Return the inside width of a vertical scroll bar, given the outside |
| 479 | width. */ | 479 | width. */ |
| @@ -615,9 +615,9 @@ extern void x_destroy_window P_ ((struct frame *)); | |||
| 615 | extern void x_wm_set_size_hint P_ ((struct frame *, long, int)); | 615 | extern void x_wm_set_size_hint P_ ((struct frame *, long, int)); |
| 616 | extern void x_delete_display P_ ((struct x_display_info *)); | 616 | extern void x_delete_display P_ ((struct x_display_info *)); |
| 617 | extern void mac_initialize P_ ((void)); | 617 | extern void mac_initialize P_ ((void)); |
| 618 | extern Pixmap XCreatePixmap P_ ((Display *, WindowPtr, unsigned int, | 618 | extern Pixmap XCreatePixmap P_ ((Display *, WindowRef, unsigned int, |
| 619 | unsigned int, unsigned int)); | 619 | unsigned int, unsigned int)); |
| 620 | extern Pixmap XCreatePixmapFromBitmapData P_ ((Display *, WindowPtr, char *, | 620 | extern Pixmap XCreatePixmapFromBitmapData P_ ((Display *, WindowRef, char *, |
| 621 | unsigned int, unsigned int, | 621 | unsigned int, unsigned int, |
| 622 | unsigned long, unsigned long, | 622 | unsigned long, unsigned long, |
| 623 | unsigned int)); | 623 | unsigned int)); |
| @@ -626,7 +626,7 @@ extern GC XCreateGC P_ ((Display *, void *, unsigned long, XGCValues *)); | |||
| 626 | extern void XFreeGC P_ ((Display *, GC)); | 626 | extern void XFreeGC P_ ((Display *, GC)); |
| 627 | extern void XSetForeground P_ ((Display *, GC, unsigned long)); | 627 | extern void XSetForeground P_ ((Display *, GC, unsigned long)); |
| 628 | extern void XSetBackground P_ ((Display *, GC, unsigned long)); | 628 | extern void XSetBackground P_ ((Display *, GC, unsigned long)); |
| 629 | extern void XSetWindowBackground P_ ((Display *, WindowPtr, unsigned long)); | 629 | extern void XSetWindowBackground P_ ((Display *, WindowRef, unsigned long)); |
| 630 | extern void XDrawLine P_ ((Display *, Pixmap, GC, int, int, int, int)); | 630 | extern void XDrawLine P_ ((Display *, Pixmap, GC, int, int, int, int)); |
| 631 | extern void mac_clear_area P_ ((struct frame *, int, int, | 631 | extern void mac_clear_area P_ ((struct frame *, int, int, |
| 632 | unsigned int, unsigned int)); | 632 | unsigned int, unsigned int)); |
| @@ -634,8 +634,8 @@ extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); | |||
| 634 | extern int mac_font_panel_visible_p P_ ((void)); | 634 | extern int mac_font_panel_visible_p P_ ((void)); |
| 635 | extern OSStatus mac_show_hide_font_panel P_ ((void)); | 635 | extern OSStatus mac_show_hide_font_panel P_ ((void)); |
| 636 | extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); | 636 | extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); |
| 637 | extern OSStatus install_window_handler P_ ((WindowPtr)); | 637 | extern OSStatus install_window_handler P_ ((WindowRef)); |
| 638 | extern void remove_window_handler P_ ((WindowPtr)); | 638 | extern void remove_window_handler P_ ((WindowRef)); |
| 639 | extern OSStatus mac_post_mouse_moved_event P_ ((void)); | 639 | extern OSStatus mac_post_mouse_moved_event P_ ((void)); |
| 640 | #if !TARGET_API_MAC_CARBON | 640 | #if !TARGET_API_MAC_CARBON |
| 641 | extern void do_apple_menu P_ ((SInt16)); | 641 | extern void do_apple_menu P_ ((SInt16)); |