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/window.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/window.c')
| -rw-r--r-- | src/window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 6a52ed7e166..677cb991025 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1379,6 +1379,7 @@ window_from_coordinates (struct frame *f, int x, int y, | |||
| 1379 | cw.window = &window, cw.x = x, cw.y = y; cw.part = part; | 1379 | cw.window = &window, cw.x = x, cw.y = y; cw.part = part; |
| 1380 | foreach_window (f, check_window_containing, &cw); | 1380 | foreach_window (f, check_window_containing, &cw); |
| 1381 | 1381 | ||
| 1382 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) | ||
| 1382 | /* If not found above, see if it's in the tool bar window, if a tool | 1383 | /* If not found above, see if it's in the tool bar window, if a tool |
| 1383 | bar exists. */ | 1384 | bar exists. */ |
| 1384 | if (NILP (window) | 1385 | if (NILP (window) |
| @@ -1391,6 +1392,7 @@ window_from_coordinates (struct frame *f, int x, int y, | |||
| 1391 | *part = ON_TEXT; | 1392 | *part = ON_TEXT; |
| 1392 | window = f->tool_bar_window; | 1393 | window = f->tool_bar_window; |
| 1393 | } | 1394 | } |
| 1395 | #endif | ||
| 1394 | 1396 | ||
| 1395 | return window; | 1397 | return window; |
| 1396 | } | 1398 | } |
| @@ -5112,9 +5114,9 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5112 | /* Invalidate pixel data calculated for all compositions. */ | 5114 | /* Invalidate pixel data calculated for all compositions. */ |
| 5113 | for (i = 0; i < n_compositions; i++) | 5115 | for (i = 0; i < n_compositions; i++) |
| 5114 | composition_table[i]->font = NULL; | 5116 | composition_table[i]->font = NULL; |
| 5115 | 5117 | #if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS) | |
| 5116 | WINDOW_XFRAME (w)->minimize_tool_bar_window_p = 1; | 5118 | WINDOW_XFRAME (w)->minimize_tool_bar_window_p = 1; |
| 5117 | 5119 | #endif | |
| 5118 | Fredraw_frame (WINDOW_FRAME (w)); | 5120 | Fredraw_frame (WINDOW_FRAME (w)); |
| 5119 | SET_FRAME_GARBAGED (WINDOW_XFRAME (w)); | 5121 | SET_FRAME_GARBAGED (WINDOW_XFRAME (w)); |
| 5120 | } | 5122 | } |