home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unreleased / patches / 6.0ax.018 < prev    next >
Encoding:
Internet Message Format  |  2001-09-24  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0ax.018
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 6.0ax.018
  8. Problem:    GTK: After dragging a scrollbar, switching to another window
  9.         doesn't update the scrollbar. (Cristiano De Michele)
  10. Solution:   Reset the flag that tells the scrollbar is still being dragged.
  11. Files:        src/gui.c
  12.  
  13.  
  14. *** ../vim60ax.17/src/gui.c    Sun Sep 16 17:30:30 2001
  15. --- src/gui.c    Tue Sep 25 10:58:10 2001
  16. ***************
  17. *** 1539,1544 ****
  18. --- 1539,1549 ----
  19.       if (can_update_cursor && force_cursor)
  20.       gui_update_cursor(force_cursor, TRUE);
  21.   
  22. +     /* When switching to another window the dragging must have stopped.
  23. +      * Required for GTK, dragged_sb isn't reset. */
  24. +     if (old_curwin != curwin)
  25. +     gui.dragged_sb = SBAR_NONE;
  26.       /* Update the scrollbars after clearing the screen or when switched
  27.        * to another window.
  28.        * Update the horizontal scrollbar always, it's difficult to check all
  29. ***************
  30. *** 1551,1559 ****
  31.   
  32.       /*
  33.        * We need to make sure this is cleared since Athena doesn't tell us when
  34. !      * he is done dragging.
  35.        */
  36. ! #ifdef FEAT_GUI_ATHENA
  37.       gui.dragged_sb = SBAR_NONE;
  38.   #endif
  39.   
  40. --- 1556,1564 ----
  41.   
  42.       /*
  43.        * We need to make sure this is cleared since Athena doesn't tell us when
  44. !      * he is done dragging.  Do the same for GTK.
  45.        */
  46. ! #if defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_GTK)
  47.       gui.dragged_sb = SBAR_NONE;
  48.   #endif
  49.   
  50. *** ../vim60ax.17/src/version.c    Mon Sep 24 23:06:43 2001
  51. --- src/version.c    Tue Sep 25 11:29:14 2001
  52. ***************
  53. *** 608,609 ****
  54. --- 608,611 ----
  55.   {   /* Add new patch number below this line */
  56. + /**/
  57. +     18,
  58.   /**/
  59.  
  60. -- 
  61. BEDEVERE: Wait.  Wait ... tell me, what also floats on water?
  62. ALL:      Bread?  No, no, no.  Apples .... gravy ... very small rocks ...
  63. ARTHUR:   A duck.
  64.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  65.  
  66.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  67. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  68.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  69.