diff options
| author | Gerd Moellmann | 2000-11-22 16:29:33 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-22 16:29:33 +0000 |
| commit | 8daf1204a073c519806190127474cd5e22c1ee9f (patch) | |
| tree | 81ec70808343ebeaa79452f55cfc5091540ac250 /src | |
| parent | 617522617e4b0e90787614060ff19731f4d08310 (diff) | |
| download | emacs-8daf1204a073c519806190127474cd5e22c1ee9f.tar.gz emacs-8daf1204a073c519806190127474cd5e22c1ee9f.zip | |
(x_handle_tool_bar_click, note_tool_bar_highlight):
Change references to mambers deleted from struct frame to use the
new ones.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/xterm.c b/src/xterm.c index bae2c229aa9..b53796f7087 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6895,7 +6895,7 @@ static int last_tool_bar_item; | |||
| 6895 | Return in *GLYPH a pointer to the glyph of the tool-bar item in | 6895 | Return in *GLYPH a pointer to the glyph of the tool-bar item in |
| 6896 | the current matrix of the tool-bar window of F, or NULL if not | 6896 | the current matrix of the tool-bar window of F, or NULL if not |
| 6897 | on a tool-bar item. Return in *PROP_IDX the index of the tool-bar | 6897 | on a tool-bar item. Return in *PROP_IDX the index of the tool-bar |
| 6898 | item in F->current_tool_bar_items. Value is | 6898 | item in F->tool_bar_items. Value is |
| 6899 | 6899 | ||
| 6900 | -1 if X/Y is not on a tool-bar item | 6900 | -1 if X/Y is not on a tool-bar item |
| 6901 | 0 if X/Y is on the same item that was highlighted before. | 6901 | 0 if X/Y is on the same item that was highlighted before. |
| @@ -6918,7 +6918,7 @@ x_tool_bar_item (f, x, y, glyph, hpos, vpos, prop_idx) | |||
| 6918 | return -1; | 6918 | return -1; |
| 6919 | 6919 | ||
| 6920 | /* Get the start of this tool-bar item's properties in | 6920 | /* Get the start of this tool-bar item's properties in |
| 6921 | f->current_tool_bar_items. */ | 6921 | f->tool_bar_items. */ |
| 6922 | if (!tool_bar_item_info (f, *glyph, prop_idx)) | 6922 | if (!tool_bar_item_info (f, *glyph, prop_idx)) |
| 6923 | return -1; | 6923 | return -1; |
| 6924 | 6924 | ||
| @@ -6960,8 +6960,7 @@ x_handle_tool_bar_click (f, button_event) | |||
| 6960 | return; | 6960 | return; |
| 6961 | 6961 | ||
| 6962 | /* If item is disabled, do nothing. */ | 6962 | /* If item is disabled, do nothing. */ |
| 6963 | enabled_p = (XVECTOR (f->current_tool_bar_items) | 6963 | enabled_p = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_ENABLED_P); |
| 6964 | ->contents[prop_idx + TOOL_BAR_ITEM_ENABLED_P]); | ||
| 6965 | if (NILP (enabled_p)) | 6964 | if (NILP (enabled_p)) |
| 6966 | return; | 6965 | return; |
| 6967 | 6966 | ||
| @@ -6981,8 +6980,7 @@ x_handle_tool_bar_click (f, button_event) | |||
| 6981 | show_mouse_face (dpyinfo, DRAW_IMAGE_RAISED); | 6980 | show_mouse_face (dpyinfo, DRAW_IMAGE_RAISED); |
| 6982 | dpyinfo->mouse_face_image_state = DRAW_IMAGE_RAISED; | 6981 | dpyinfo->mouse_face_image_state = DRAW_IMAGE_RAISED; |
| 6983 | 6982 | ||
| 6984 | key = (XVECTOR (f->current_tool_bar_items) | 6983 | key = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_KEY); |
| 6985 | ->contents[prop_idx + TOOL_BAR_ITEM_KEY]); | ||
| 6986 | 6984 | ||
| 6987 | XSETFRAME (frame, f); | 6985 | XSETFRAME (frame, f); |
| 6988 | event.kind = TOOL_BAR_EVENT; | 6986 | event.kind = TOOL_BAR_EVENT; |
| @@ -7055,8 +7053,7 @@ note_tool_bar_highlight (f, x, y) | |||
| 7055 | draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; | 7053 | draw = mouse_down_p ? DRAW_IMAGE_SUNKEN : DRAW_IMAGE_RAISED; |
| 7056 | 7054 | ||
| 7057 | /* If tool-bar item is not enabled, don't highlight it. */ | 7055 | /* If tool-bar item is not enabled, don't highlight it. */ |
| 7058 | enabled_p = (XVECTOR (f->current_tool_bar_items) | 7056 | enabled_p = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_ENABLED_P); |
| 7059 | ->contents[prop_idx + TOOL_BAR_ITEM_ENABLED_P]); | ||
| 7060 | if (!NILP (enabled_p)) | 7057 | if (!NILP (enabled_p)) |
| 7061 | { | 7058 | { |
| 7062 | /* Compute the x-position of the glyph. In front and past the | 7059 | /* Compute the x-position of the glyph. In front and past the |
| @@ -7090,11 +7087,9 @@ note_tool_bar_highlight (f, x, y) | |||
| 7090 | XTread_socket does the rest. */ | 7087 | XTread_socket does the rest. */ |
| 7091 | help_echo_object = help_echo_window = Qnil; | 7088 | help_echo_object = help_echo_window = Qnil; |
| 7092 | help_echo_pos = -1; | 7089 | help_echo_pos = -1; |
| 7093 | help_echo = (XVECTOR (f->current_tool_bar_items) | 7090 | help_echo = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_HELP); |
| 7094 | ->contents[prop_idx + TOOL_BAR_ITEM_HELP]); | ||
| 7095 | if (NILP (help_echo)) | 7091 | if (NILP (help_echo)) |
| 7096 | help_echo = (XVECTOR (f->current_tool_bar_items) | 7092 | help_echo = AREF (f->tool_bar_items, prop_idx + TOOL_BAR_ITEM_CAPTION); |
| 7097 | ->contents[prop_idx + TOOL_BAR_ITEM_CAPTION]); | ||
| 7098 | } | 7093 | } |
| 7099 | 7094 | ||
| 7100 | 7095 | ||