Mercurial > hg > xemacs-beta
comparison src/gutter.c @ 905:c15f25529e61
[xemacs-hg @ 2002-07-06 21:05:42 by andyp]
toolbar redisplay patch
author | andyp |
---|---|
date | Sat, 06 Jul 2002 21:05:58 +0000 |
parents | 79c6ff3eef26 |
children | e22b0213b713 |
comparison
equal
deleted
inserted
replaced
904:47c30044fc4e | 905:c15f25529e61 |
---|---|
586 { | 586 { |
587 int width, height; | 587 int width, height; |
588 pixel_to_char_size (f, FRAME_PIXWIDTH (f), FRAME_PIXHEIGHT (f), | 588 pixel_to_char_size (f, FRAME_PIXWIDTH (f), FRAME_PIXHEIGHT (f), |
589 &width, &height); | 589 &width, &height); |
590 change_frame_size (f, height, width, 0); | 590 change_frame_size (f, height, width, 0); |
591 MARK_FRAME_LAYOUT_CHANGED (f); | |
591 } | 592 } |
592 | 593 |
593 /* Mark sizes as up-to-date. */ | 594 /* Mark sizes as up-to-date. */ |
594 f->current_gutter_bounds[pos] = FRAME_GUTTER_BOUNDS (f, pos); | 595 f->current_gutter_bounds[pos] = FRAME_GUTTER_BOUNDS (f, pos); |
595 } | 596 } |
596 | 597 |
597 void | 598 void |
598 update_frame_gutter_geometry (struct frame *f) | 599 update_frame_gutter_geometry (struct frame *f) |
599 { | 600 { |
600 if (f->gutter_changed || f->windows_structure_changed) | 601 if (f->gutter_changed |
602 || f->frame_layout_changed | |
603 || f->windows_structure_changed) | |
601 { | 604 { |
602 enum gutter_pos pos; | 605 enum gutter_pos pos; |
603 | 606 |
604 /* If the gutter geometry has changed then re-layout the | 607 /* If the gutter geometry has changed then re-layout the |
605 frame. If we are in display there is almost no point in doing | 608 frame. If we are in display there is almost no point in doing |
617 { | 620 { |
618 if (f->faces_changed || f->frame_changed || | 621 if (f->faces_changed || f->frame_changed || |
619 f->gutter_changed || f->glyphs_changed || | 622 f->gutter_changed || f->glyphs_changed || |
620 f->size_changed || f->subwindows_changed || | 623 f->size_changed || f->subwindows_changed || |
621 f->windows_changed || f->windows_structure_changed || | 624 f->windows_changed || f->windows_structure_changed || |
622 f->extents_changed) | 625 f->extents_changed || f->frame_layout_changed) |
623 { | 626 { |
624 enum gutter_pos pos; | 627 enum gutter_pos pos; |
625 | 628 |
626 /* We don't actually care about these when outputting the gutter | 629 /* We don't actually care about these when outputting the gutter |
627 so locally disable them. */ | 630 so locally disable them. */ |