aboutsummaryrefslogtreecommitdiffstats
path: root/mac/src
diff options
context:
space:
mode:
authorAndrew Choi2000-11-26 06:37:13 +0000
committerAndrew Choi2000-11-26 06:37:13 +0000
commit2d4bc7359904bd4c0fba639fab3496f2b6d763f9 (patch)
tree2d7c1d99dd56251926dc660392f0965061918b4e /mac/src
parentc1e279c22cc7fda1c8d7cae5dc4d762ea60efff7 (diff)
downloademacs-2d4bc7359904bd4c0fba639fab3496f2b6d763f9.tar.gz
emacs-2d4bc7359904bd4c0fba639fab3496f2b6d763f9.zip
* 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)
7204 return; 7204 return;
7205 7205
7206 /* If item is disabled, do nothing. */ 7206 /* If item is disabled, do nothing. */
7207 enabled_p = (XVECTOR (f->current_tool_bar_items) 7207 enabled_p = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_ENABLED_P);
7208 ->contents[prop_idx + TOOL_BAR_ITEM_ENABLED_P]);
7209 if (NILP (enabled_p)) 7208 if (NILP (enabled_p))
7210 return; 7209 return;
7211 7210
@@ -7225,8 +7224,7 @@ x_handle_tool_bar_click (f, button_event)
7225 show_mouse_face (dpyinfo, DRAW_IMAGE_RAISED); 7224 show_mouse_face (dpyinfo, DRAW_IMAGE_RAISED);
7226 dpyinfo->mouse_face_image_state = DRAW_IMAGE_RAISED; 7225 dpyinfo->mouse_face_image_state = DRAW_IMAGE_RAISED;
7227 7226
7228 key = (XVECTOR (f->current_tool_bar_items) 7227 key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY);
7229 ->contents[prop_idx + TOOL_BAR_ITEM_KEY]);
7230 7228
7231 XSETFRAME (frame, f); 7229 XSETFRAME (frame, f);
7232 event.kind = TOOL_BAR_EVENT; 7230 event.kind = TOOL_BAR_EVENT;
@@ -7299,8 +7297,7 @@ note_tool_bar_highlight (f, x, y)
7299 draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; 7297 draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED;
7300 7298
7301 /* If tool-bar item is not enabled, don't highlight it. */ 7299 /* If tool-bar item is not enabled, don't highlight it. */
7302 enabled_p = (XVECTOR (f->current_tool_bar_items) 7300 enabled_p = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_ENABLED_P);
7303 ->contents[prop_idx + TOOL_BAR_ITEM_ENABLED_P]);
7304 if (!NILP (enabled_p)) 7301 if (!NILP (enabled_p))
7305 { 7302 {
7306 /* Compute the x-position of the glyph. In front and past the 7303 /* Compute the x-position of the glyph. In front and past the
@@ -7334,11 +7331,9 @@ note_tool_bar_highlight (f, x, y)
7334 XTread_socket does the rest. */ 7331 XTread_socket does the rest. */
7335 help_echo_object = help_echo_window = Qnil; 7332 help_echo_object = help_echo_window = Qnil;
7336 help_echo_pos = -1; 7333 help_echo_pos = -1;
7337 help_echo = (XVECTOR (f->current_tool_bar_items) 7334 help_echo = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_HELP);
7338 ->contents[prop_idx + TOOL_BAR_ITEM_HELP]);
7339 if (NILP (help_echo)) 7335 if (NILP (help_echo))
7340 help_echo = (XVECTOR (f->current_tool_bar_items) 7336 help_echo = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_CAPTION);
7341 ->contents[prop_idx + TOOL_BAR_ITEM_CAPTION]);
7342} 7337}
7343 7338
7344 7339