aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorEli Zaretskii2012-11-13 16:17:18 +0200
committerEli Zaretskii2012-11-13 16:17:18 +0200
commit3c4ca7155293ffc2d04708007131bcbc882d8913 (patch)
tree61787be8cd43b6fb3d5159852fbd186eea404de7 /src/w32term.c
parent5ade42a5114255c43117065494b96d480c1e1588 (diff)
parentc708524567662c8911c5ab2695acc7bda0383705 (diff)
downloademacs-3c4ca7155293ffc2d04708007131bcbc882d8913.tar.gz
emacs-3c4ca7155293ffc2d04708007131bcbc882d8913.zip
Merge from trunk.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 3ebd849ec31..e53fa5e7756 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3555,16 +3555,11 @@ w32_handle_tool_bar_click (struct frame *f, struct input_event *button_event)
3555static struct scroll_bar * 3555static struct scroll_bar *
3556x_window_to_scroll_bar (Window window_id) 3556x_window_to_scroll_bar (Window window_id)
3557{ 3557{
3558 Lisp_Object tail; 3558 Lisp_Object tail, frame;
3559 3559
3560 for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail)) 3560 FOR_EACH_FRAME (tail, frame)
3561 { 3561 {
3562 Lisp_Object frame, bar, condemned; 3562 Lisp_Object bar, condemned;
3563
3564 frame = XCAR (tail);
3565 /* All elements of Vframe_list should be frames. */
3566 if (! FRAMEP (frame))
3567 emacs_abort ();
3568 3563
3569 /* Scan this frame's scroll bar list for a scroll bar with the 3564 /* Scan this frame's scroll bar list for a scroll bar with the
3570 right window ID. */ 3565 right window ID. */
@@ -3744,7 +3739,7 @@ x_scroll_bar_create (struct window *w, int top, int left, int width, int height)
3744 HWND hwnd; 3739 HWND hwnd;
3745 SCROLLINFO si; 3740 SCROLLINFO si;
3746 struct scroll_bar *bar 3741 struct scroll_bar *bar
3747 = XSCROLL_BAR (Fmake_vector (make_number (SCROLL_BAR_VEC_SIZE), Qnil)); 3742 = XSCROLL_BAR (Fmake_vector (make_number (VECSIZE (struct scroll_bar)), Qnil));
3748 Lisp_Object barobj; 3743 Lisp_Object barobj;
3749 3744
3750 block_input (); 3745 block_input ();