aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 8d125d7c690..09f0f1afd71 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -6606,7 +6606,7 @@ static int last_tool_bar_item;
6606 Return in *GLYPH a pointer to the glyph of the tool-bar item in 6606 Return in *GLYPH a pointer to the glyph of the tool-bar item in
6607 the current matrix of the tool-bar window of F, or NULL if not 6607 the current matrix of the tool-bar window of F, or NULL if not
6608 on a tool-bar item. Return in *PROP_IDX the index of the tool-bar 6608 on a tool-bar item. Return in *PROP_IDX the index of the tool-bar
6609 item in F->current_tool_bar_items. Value is 6609 item in F->tool_bar_items. Value is
6610 6610
6611 -1 if X/Y is not on a tool-bar item 6611 -1 if X/Y is not on a tool-bar item
6612 0 if X/Y is on the same item that was highlighted before. 6612 0 if X/Y is on the same item that was highlighted before.
@@ -6629,7 +6629,7 @@ x_tool_bar_item (f, x, y, glyph, hpos, vpos, prop_idx)
6629 return -1; 6629 return -1;
6630 6630
6631 /* Get the start of this tool-bar item's properties in 6631 /* Get the start of this tool-bar item's properties in
6632 f->current_tool_bar_items. */ 6632 f->tool_bar_items. */
6633 if (!tool_bar_item_info (f, *glyph, prop_idx)) 6633 if (!tool_bar_item_info (f, *glyph, prop_idx))
6634 return -1; 6634 return -1;
6635 6635
@@ -6671,8 +6671,7 @@ w32_handle_tool_bar_click (f, button_event)
6671 return; 6671 return;
6672 6672
6673 /* If item is disabled, do nothing. */ 6673 /* If item is disabled, do nothing. */
6674 enabled_p = (XVECTOR (f->current_tool_bar_items) 6674 enabled_p = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_ENABLED_P);
6675 ->contents[prop_idx + TOOL_BAR_ITEM_ENABLED_P]);
6676 if (NILP (enabled_p)) 6675 if (NILP (enabled_p))
6677 return; 6676 return;
6678 6677
@@ -6692,8 +6691,7 @@ w32_handle_tool_bar_click (f, button_event)
6692 show_mouse_face (dpyinfo, DRAW_IMAGE_RAISED); 6691 show_mouse_face (dpyinfo, DRAW_IMAGE_RAISED);
6693 dpyinfo->mouse_face_image_state = DRAW_IMAGE_RAISED; 6692 dpyinfo->mouse_face_image_state = DRAW_IMAGE_RAISED;
6694 6693
6695 key = (XVECTOR (f->current_tool_bar_items) 6694 key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY);
6696 ->contents[prop_idx + TOOL_BAR_ITEM_KEY]);
6697 6695
6698 XSETFRAME (frame, f); 6696 XSETFRAME (frame, f);
6699 event.kind = TOOL_BAR_EVENT; 6697 event.kind = TOOL_BAR_EVENT;
@@ -6765,8 +6763,7 @@ note_tool_bar_highlight (f, x, y)
6765 draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; 6763 draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED;
6766 6764
6767 /* If tool-bar item is not enabled, don't highlight it. */ 6765 /* If tool-bar item is not enabled, don't highlight it. */
6768 enabled_p = (XVECTOR (f->current_tool_bar_items) 6766 enabled_p = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_ENABLED_P);
6769 ->contents[prop_idx + TOOL_BAR_ITEM_ENABLED_P]);
6770 if (!NILP (enabled_p)) 6767 if (!NILP (enabled_p))
6771 { 6768 {
6772 /* Compute the x-position of the glyph. In front and past the 6769 /* Compute the x-position of the glyph. In front and past the
@@ -6800,11 +6797,9 @@ note_tool_bar_highlight (f, x, y)
6800 w32_read_socket does the rest. */ 6797 w32_read_socket does the rest. */
6801 help_echo_object = help_echo_window = Qnil; 6798 help_echo_object = help_echo_window = Qnil;
6802 help_echo_pos = -1; 6799 help_echo_pos = -1;
6803 help_echo = (XVECTOR (f->current_tool_bar_items) 6800 help_echo = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_HELP);
6804 ->contents[prop_idx + TOOL_BAR_ITEM_HELP]);
6805 if (NILP (help_echo)) 6801 if (NILP (help_echo))
6806 help_echo = (XVECTOR (f->current_tool_bar_items) 6802 help_echo = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_CAPTION);
6807 ->contents[prop_idx + TOOL_BAR_ITEM_CAPTION]);
6808} 6803}
6809 6804
6810 6805