Mercurial > hg > xemacs-beta
comparison src/scrollbar-x.c @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 7347b34c275b |
children | 8626e4521993 |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
406 | 406 |
407 if (!f) | 407 if (!f) |
408 return; | 408 return; |
409 | 409 |
410 mirror = find_scrollbar_window_mirror (f, id); | 410 mirror = find_scrollbar_window_mirror (f, id); |
411 if (!mirror) | |
412 return; | |
413 | |
414 win = real_window (mirror, 1); | 411 win = real_window (mirror, 1); |
415 | 412 |
416 if (NILP (win)) | 413 if (NILP (win)) |
417 return; | 414 return; |
418 instance = mirror->scrollbar_vertical_instance; | 415 instance = mirror->scrollbar_vertical_instance; |
612 | 609 |
613 if (!f) | 610 if (!f) |
614 return; | 611 return; |
615 | 612 |
616 mirror = find_scrollbar_window_mirror (f, id); | 613 mirror = find_scrollbar_window_mirror (f, id); |
617 if (!mirror) | |
618 return; | |
619 | |
620 win = real_window (mirror, 1); | 614 win = real_window (mirror, 1); |
621 | 615 |
622 if (NILP (win)) | 616 if (NILP (win)) |
623 return; | 617 return; |
624 frame = WINDOW_FRAME (XWINDOW (win)); | 618 frame = WINDOW_FRAME (XWINDOW (win)); |
678 XSETWINDOW (window, w); | 672 XSETWINDOW (window, w); |
679 x_scrollbar_loop (X_SET_SCROLLBAR_POINTER, window, find_window_mirror (w), | 673 x_scrollbar_loop (X_SET_SCROLLBAR_POINTER, window, find_window_mirror (w), |
680 0, (Window) NULL); | 674 0, (Window) NULL); |
681 } | 675 } |
682 | 676 |
677 /* Called directly from x_any_window_to_frame in frame-x.c */ | |
678 EMACS_INT | |
679 x_window_is_scrollbar (struct frame *f, Window win) | |
680 { | |
681 if (!FRAME_X_P (f)) | |
682 return 0; | |
683 | |
684 if (f->mirror_dirty) | |
685 update_frame_window_mirror (f); | |
686 return (EMACS_INT) x_scrollbar_loop (X_WINDOW_IS_SCROLLBAR, f->root_window, | |
687 f->root_mirror, 0, win); | |
688 } | |
689 | |
683 /* Make sure that all scrollbars on frame are up-to-date. Called | 690 /* Make sure that all scrollbars on frame are up-to-date. Called |
684 directly from x_set_frame_properties in frame-x.c*/ | 691 directly from x_set_frame_properties in frame-x.c*/ |
685 void | 692 void |
686 x_update_frame_scrollbars (struct frame *f) | 693 x_update_frame_scrollbars (struct frame *f) |
687 { | 694 { |