]>
Commit | Line | Data |
---|---|---|
f3c378e8 AG |
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 | + | |
37 | XmEnhancedButtonClassRec xmEnhancedButtonClassRec = | |
38 | { | |
39 | { | |
40 | *************** | |
41 | *** 184,190 **** | |
42 | /* arm and activate */ XmInheritArmAndActivate, | |
43 | /* synthetic resources */ NULL, | |
44 | /* number of syn res */ 0, | |
45 | ! /* extension */ NULL, | |
46 | }, | |
47 | ||
48 | /* label_class fields */ | |
49 | --- 197,203 ---- | |
50 | /* arm and activate */ XmInheritArmAndActivate, | |
51 | /* synthetic resources */ NULL, | |
52 | /* number of syn res */ 0, | |
53 | ! /* extension */ (XtPointer)&xmEnhancedButtonPrimClassExtRec, | |
54 | }, | |
55 | ||
56 | /* label_class fields */ | |
57 | *** ../vim-7.0.151/src/version.c Tue Oct 24 22:01:55 2006 | |
58 | --- src/version.c Tue Oct 24 22:30:40 2006 | |
59 | *************** | |
60 | *** 668,669 **** | |
61 | --- 668,671 ---- | |
62 | { /* Add new patch number below this line */ | |
63 | + /**/ | |
64 | + 152, | |
65 | /**/ | |
66 | ||
67 | -- | |
68 | hundred-and-one symptoms of being an internet addict: | |
69 | 110. You actually volunteer to become your employer's webmaster. | |
70 | ||
71 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
72 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
73 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
74 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |