# HG changeset patch # User Gerd Moellmann # Date 974910573 0 # Node ID 047804baee1c5917391816f8638135efda73b08c # Parent 22dc6e2e741001503d66fc516b89ee3af641c249 (x_handle_tool_bar_click, note_tool_bar_highlight): Change references to mambers deleted from struct frame to use the new ones. diff -r 22dc6e2e7410 -r 047804baee1c src/xterm.c --- a/src/xterm.c Wed Nov 22 16:28:38 2000 +0000 +++ b/src/xterm.c Wed Nov 22 16:29:33 2000 +0000 @@ -6895,7 +6895,7 @@ Return in *GLYPH a pointer to the glyph of the tool-bar item in the current matrix of the tool-bar window of F, or NULL if not on a tool-bar item. Return in *PROP_IDX the index of the tool-bar - item in F->current_tool_bar_items. Value is + item in F->tool_bar_items. Value is -1 if X/Y is not on a tool-bar item 0 if X/Y is on the same item that was highlighted before. @@ -6918,7 +6918,7 @@ return -1; /* Get the start of this tool-bar item's properties in - f->current_tool_bar_items. */ + f->tool_bar_items. */ if (!tool_bar_item_info (f, *glyph, prop_idx)) return -1; @@ -6960,8 +6960,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; @@ -6981,8 +6980,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; @@ -7055,8 +7053,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 @@ -7090,11 +7087,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); }