]> git.eshelyaron.com Git - emacs.git/commitdiff
(struct scroll_bar): New member `redraw_needed_p'.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 21 Jan 2008 09:59:58 +0000 (09:59 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Mon, 21 Jan 2008 09:59:58 +0000 (09:59 +0000)
src/ChangeLog
src/macterm.h

index 1ec2ad7aa85fe1cf194a1aaea3d6fe3a63be3486..1c4b08d24d7e5ba78cb35cb6dfb4fb2623c116f1 100644 (file)
@@ -1,3 +1,12 @@
+2008-01-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
+       (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
+       is set even without positional changes.
+       (x_scroll_bar_clear): Set bar->redraw_needed_p.
+
+       * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
+
 2008-01-19  Kenichi Handa  <handa@m17n.org>
 
        * coding.c (detect_coding_iso2022): New arg latin_extra_code_state.
index e596a148dcd1233f88eb35b80bce62b169817a61..69d987b0cdc6a3ebb6642519e1c159347713d3cf 100644 (file)
@@ -435,6 +435,9 @@ struct scroll_bar {
      being dragged, this is Qnil.  */
   Lisp_Object dragging;
 
+  /* t if redraw needed in the next XTset_vertical_scroll_bar call.  */
+  Lisp_Object redraw_needed_p;
+
 #ifdef USE_TOOLKIT_SCROLL_BARS
   /* The position and size of the scroll bar handle track area in
      pixels, relative to the frame.  */