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 / patches / 7.0 / 7.0.152 < prev    next >
Encoding:
Internet Message Format  |  2006-10-23  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.152
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.152
  11. Problem:    Crash when using lesstif 2.
  12. Solution:   Fill in the extension field. (Ben Hutchings)
  13. Files:        src/gui_xmebw.c
  14.  
  15.  
  16. *** ../vim-7.0.151/src/gui_xmebw.c    Sat May 13 17:26:10 2006
  17. --- src/gui_xmebw.c    Tue Oct 24 22:27:53 2006
  18. ***************
  19. *** 138,143 ****
  20. --- 138,156 ----
  21.       }
  22.   };
  23.   
  24. + /* This is needed to work around a bug in Lesstif 2, leaving the extension
  25. +  * NULL somehow results in getting it set to an invalid pointer. */
  26. + XmPrimitiveClassExtRec xmEnhancedButtonPrimClassExtRec =
  27. + {
  28. +     /* next_extension      */ NULL,
  29. +     /* record_type         */ NULLQUARK,
  30. +     /* version             */ XmPrimitiveClassExtVersion,
  31. +     /* record_size         */ sizeof(XmPrimitiveClassExtRec),
  32. +     /* widget_baseline     */ XmInheritBaselineProc,
  33. +     /* widget_display_rect */ XmInheritDisplayRectProc,
  34. +     /* widget_margins      */ NULL
  35. + };
  36.   XmEnhancedButtonClassRec xmEnhancedButtonClassRec =
  37.   {
  38.       {
  39. ***************
  40. *** 184,190 ****
  41.       /* arm and activate     */ XmInheritArmAndActivate,
  42.       /* synthetic resources     */ NULL,
  43.       /* number of syn res     */ 0,
  44. !     /* extension         */ NULL,
  45.       },
  46.   
  47.       /* label_class fields */
  48. --- 197,203 ----
  49.       /* arm and activate     */ XmInheritArmAndActivate,
  50.       /* synthetic resources     */ NULL,
  51.       /* number of syn res     */ 0,
  52. !     /* extension         */ (XtPointer)&xmEnhancedButtonPrimClassExtRec,
  53.       },
  54.   
  55.       /* label_class fields */
  56. *** ../vim-7.0.151/src/version.c    Tue Oct 24 22:01:55 2006
  57. --- src/version.c    Tue Oct 24 22:30:40 2006
  58. ***************
  59. *** 668,669 ****
  60. --- 668,671 ----
  61.   {   /* Add new patch number below this line */
  62. + /**/
  63. +     152,
  64.   /**/
  65.  
  66. -- 
  67. hundred-and-one symptoms of being an internet addict:
  68. 110. You actually volunteer to become your employer's webmaster.
  69.  
  70.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  71. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  72. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  73.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  74.