summaryrefslogtreecommitdiff
path: root/mac/src
diff options
context:
space:
mode:
authorAndrew Choi <akochoi@shaw.ca>2000-11-26 06:37:13 +0000
committerAndrew Choi <akochoi@shaw.ca>2000-11-26 06:37:13 +0000
commit839dcb311e2867848ca2b8315d953132bc4cc562 (patch)
treeb0df989a3bf2d4e2e16506523bd1ea93c4aa64e7 /mac/src
parentb46468b6d37bee4d3a506c5cc568742c2e609c58 (diff)
downloademacs-839dcb311e2867848ca2b8315d953132bc4cc562.tar.gz
* src/macterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
change references to members deleted from struct frame as in xterm.c.
Diffstat (limited to 'mac/src')
-rw-r--r--mac/src/macterm.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/mac/src/macterm.c b/mac/src/macterm.c
index a23cf354b21..0676e47864e 100644
--- a/mac/src/macterm.c
+++ b/mac/src/macterm.c
@@ -7204,8 +7204,7 @@ x_handle_tool_bar_click (f, button_event)
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 @@ x_handle_tool_bar_click (f, button_event)
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 @@ note_tool_bar_highlight (f, x, y)
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 @@ note_tool_bar_highlight (f, x, y)
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);
}