# HG changeset patch # User Andrew Choi # Date 975220633 0 # Node ID 6ff26bad927beecb499f44adb3f3180c613c25a0 # Parent ff4ddf87308187d7dead670ff615d9bbd0cea78e * src/macterm.c (x_handle_tool_bar_click, note_tool_bar_highlight): change references to members deleted from struct frame as in xterm.c. diff -r ff4ddf873081 -r 6ff26bad927b mac/src/macterm.c --- a/mac/src/macterm.c Sun Nov 26 06:35:26 2000 +0000 +++ b/mac/src/macterm.c Sun Nov 26 06:37:13 2000 +0000 @@ -7204,8 +7204,7 @@ return; /* If item is disabled, do nothing. */ - enabled_p = (XVECTOR (f->current_tool_bar_items) - ->contents[prop_idx + TOOL_BAR_ITEM_ENABLED_P]); + enabled_p = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_ENABLED_P); if (NILP (enabled_p)) return; @@ -7225,8 +7224,7 @@ show_mouse_face (dpyinfo, DRAW_IMAGE_RAISED); dpyinfo->mouse_face_image_state = DRAW_IMAGE_RAISED; - key = (XVECTOR (f->current_tool_bar_items) - ->contents[prop_idx + TOOL_BAR_ITEM_KEY]); + key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY); XSETFRAME (frame, f); event.kind = TOOL_BAR_EVENT; @@ -7299,8 +7297,7 @@ draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; /* If tool-bar item is not enabled, don't highlight it. */ - enabled_p = (XVECTOR (f->current_tool_bar_items) - ->contents[prop_idx + TOOL_BAR_ITEM_ENABLED_P]); + enabled_p = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_ENABLED_P); if (!NILP (enabled_p)) { /* Compute the x-position of the glyph. In front and past the @@ -7334,11 +7331,9 @@ XTread_socket does the rest. */ help_echo_object = help_echo_window = Qnil; help_echo_pos = -1; - help_echo = (XVECTOR (f->current_tool_bar_items) - ->contents[prop_idx + TOOL_BAR_ITEM_HELP]); + help_echo = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_HELP); if (NILP (help_echo)) - help_echo = (XVECTOR (f->current_tool_bar_items) - ->contents[prop_idx + TOOL_BAR_ITEM_CAPTION]); + help_echo = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_CAPTION); }