diff options
| author | Dmitry Antipov | 2013-09-11 12:56:33 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-09-11 12:56:33 +0400 |
| commit | 742516e02048d3bbfba4e6e13dd19afa097bbd3b (patch) | |
| tree | a040e49b687d4d1cb4c69aaa5ba4795c65dec807 /src/xterm.c | |
| parent | 73f82c7e8eb6a009248f4ea6360b2182d06f55e2 (diff) | |
| download | emacs-742516e02048d3bbfba4e6e13dd19afa097bbd3b.tar.gz emacs-742516e02048d3bbfba4e6e13dd19afa097bbd3b.zip | |
Ifdef away frame tool bar code when it is not really used.
* frame.h (struct frame) [HAVE_WINDOW_SYSTEM && !USE_GTK && !HAVE_NS]:
Move tool_bar_window, desired_tool_bar_string, current_tool_bar_string
and minimize_tool_bar_window_p under the above.
(fset_current_tool_bar_string, fset_desired_tool_bar_string)
(fset_tool_bar_window): Likewise.
* dispnew.c (clear_current_matrices, clear_desired_matrices)
(adjust_frame_glyphs_for_window_redisplay, free_glyphs, update_frame)
(change_frame_size_1):
* window.c (window_from_coordinates, Frecenter): Adjust users.
* window.h (WINDOW_TOOL_BAR_P): Define to zero when frame tool bar
code is not really used.
* xdisp.c (build_desired_tool_bar_string, display_tool_bar_line)
(tool_bar_lines_needed, MAX_FRAME_TOOL_BAR_HEIGHT, tool_bar_item_info)
(get_tool_bar_item, handle_tool_bar_click, note_tool_bar_highlight)
[!USE_GTK && !HAVE_NS]: Define as such.
(Ftool_bar_lines_needed, redisplay_tool_bar, show_mouse_face)
(note_mouse_highlight, expose_frame):
* xfns.c (x_set_tool_bar_lines):
* xterm.c (handle_one_xevent): Adjust users.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c index d12173297e8..22671a5f168 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6225,6 +6225,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6225 | 6225 | ||
| 6226 | f = x_any_window_to_frame (dpyinfo, event.xkey.window); | 6226 | f = x_any_window_to_frame (dpyinfo, event.xkey.window); |
| 6227 | 6227 | ||
| 6228 | #if ! defined (USE_GTK) | ||
| 6228 | /* If mouse-highlight is an integer, input clears out | 6229 | /* If mouse-highlight is an integer, input clears out |
| 6229 | mouse highlighting. */ | 6230 | mouse highlighting. */ |
| 6230 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) | 6231 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) |
| @@ -6234,6 +6235,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6234 | clear_mouse_face (hlinfo); | 6235 | clear_mouse_face (hlinfo); |
| 6235 | hlinfo->mouse_face_hidden = 1; | 6236 | hlinfo->mouse_face_hidden = 1; |
| 6236 | } | 6237 | } |
| 6238 | #endif | ||
| 6237 | 6239 | ||
| 6238 | #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS | 6240 | #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS |
| 6239 | if (f == 0) | 6241 | if (f == 0) |
| @@ -6773,6 +6775,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6773 | #endif | 6775 | #endif |
| 6774 | if (f) | 6776 | if (f) |
| 6775 | { | 6777 | { |
| 6778 | #if ! defined (USE_GTK) | ||
| 6776 | /* Is this in the tool-bar? */ | 6779 | /* Is this in the tool-bar? */ |
| 6777 | if (WINDOWP (f->tool_bar_window) | 6780 | if (WINDOWP (f->tool_bar_window) |
| 6778 | && WINDOW_TOTAL_LINES (XWINDOW (f->tool_bar_window))) | 6781 | && WINDOW_TOTAL_LINES (XWINDOW (f->tool_bar_window))) |
| @@ -6785,13 +6788,11 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6785 | tool_bar_p = EQ (window, f->tool_bar_window); | 6788 | tool_bar_p = EQ (window, f->tool_bar_window); |
| 6786 | 6789 | ||
| 6787 | if (tool_bar_p && event.xbutton.button < 4) | 6790 | if (tool_bar_p && event.xbutton.button < 4) |
| 6788 | { | 6791 | handle_tool_bar_click |
| 6789 | handle_tool_bar_click (f, x, y, | 6792 | (f, x, y, event.xbutton.type == ButtonPress, |
| 6790 | event.xbutton.type == ButtonPress, | 6793 | x_x_to_emacs_modifiers (dpyinfo, event.xbutton.state)); |
| 6791 | x_x_to_emacs_modifiers (dpyinfo, | ||
| 6792 | event.xbutton.state)); | ||
| 6793 | } | ||
| 6794 | } | 6794 | } |
| 6795 | #endif /* !USE_GTK */ | ||
| 6795 | 6796 | ||
| 6796 | if (!tool_bar_p) | 6797 | if (!tool_bar_p) |
| 6797 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) | 6798 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) |