]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_tool_bar_line): Make sure that tool bar
authorGerd Moellmann <gerd@gnu.org>
Tue, 12 Dec 2000 20:04:34 +0000 (20:04 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 12 Dec 2000 20:04:34 +0000 (20:04 +0000)
lines start with a relief line.

src/ChangeLog
src/xdisp.c

index 41d631380698cde73d3806a81464111f192791d3..0df19b097d6bb48ea978ff41ca4b1f0f30f93b26 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-12  Gerd Moellmann  <gerd@gnu.org>
+
+       * xdisp.c (display_tool_bar_line): Make sure that tool bar
+       lines start with a relief line.
+
 2000-12-12  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * msdos.c (fast_find_position): Don't overstep the last window
index bda00f34fca520174a63189c1773d4dd79687b8e..11859e8d85b2a2025c8f0c243604d5ee7b382337 100644 (file)
@@ -7274,6 +7274,10 @@ display_tool_bar_line (it)
   
   prepare_desired_row (row);
   row->y = it->current_y;
+
+  /* Note that this isn't made use of if the face hasn't a box,
+     so there's no need to check the face here.  */
+  it->start_of_box_run_p = 1;
   
   while (it->current_x < max_x)
     {
@@ -7321,6 +7325,8 @@ display_tool_bar_line (it)
   extend_face_to_end_of_line (it);
   last = row->glyphs[TEXT_AREA] + row->used[TEXT_AREA] - 1;
   last->right_box_line_p = 1;
+  if (last == row->glyphs[TEXT_AREA])
+    last->left_box_line_p = 1;
   compute_line_metrics (it);
   
   /* If line is empty, make it occupy the rest of the tool-bar.  */