4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Compiling gui_xmebw.c fails on Dec Alpha Tru64. (Rolfe)
12 Solution: Disable some code for Motif 1.2 and older.
13 Files: src/gui_xmebw.c
16 *** ../vim-7.0.013/src/gui_xmebw.c Wed May 10 15:22:49 2006
17 --- src/gui_xmebw.c Thu May 11 19:09:32 2006
20 || (eb->core.height <= 2 * eb->primitive.highlight_thickness))
23 ! #ifndef LESSTIF_VERSION
28 || (eb->core.height <= 2 * eb->primitive.highlight_thickness))
31 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
38 Boolean replaceGC = False;
39 Boolean deadjusted = False;
40 ! #ifndef LESSTIF_VERSION
41 XmDisplay dpy = (XmDisplay)XmGetXmDisplay(XtDisplay(eb));
42 Boolean etched_in = dpy->display.enable_etched_in_menu;
46 Boolean replaceGC = False;
47 Boolean deadjusted = False;
48 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
49 XmDisplay dpy = (XmDisplay)XmGetXmDisplay(XtDisplay(eb));
50 Boolean etched_in = dpy->display.enable_etched_in_menu;
54 if ((((ShellWidget) XtParent(XtParent(eb)))->shell.popped_up)
55 && _XmGetInDragMode((Widget) eb))
57 ! #ifndef LESSTIF_VERSION
58 XmDisplay dpy = (XmDisplay) XmGetXmDisplay(XtDisplay(wid));
59 Boolean etched_in = dpy->display.enable_etched_in_menu;
62 if ((((ShellWidget) XtParent(XtParent(eb)))->shell.popped_up)
63 && _XmGetInDragMode((Widget) eb))
65 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
66 XmDisplay dpy = (XmDisplay) XmGetXmDisplay(XtDisplay(wid));
67 Boolean etched_in = dpy->display.enable_etched_in_menu;
72 if (Lab_IsMenupane(eb))
74 ! #ifndef LESSTIF_VERSION
75 XmDisplay dpy = (XmDisplay) XmGetXmDisplay(XtDisplay(wid));
76 Boolean etched_in = dpy->display.enable_etched_in_menu;
80 if (Lab_IsMenupane(eb))
82 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
83 XmDisplay dpy = (XmDisplay) XmGetXmDisplay(XtDisplay(wid));
84 Boolean etched_in = dpy->display.enable_etched_in_menu;
88 Redisplay(Widget w, XEvent *event, Region region)
90 XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget) w;
91 ! #ifndef LESSTIF_VERSION
93 XtEnum default_button_emphasis;
96 Redisplay(Widget w, XEvent *event, Region region)
98 XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget) w;
99 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
101 XtEnum default_button_emphasis;
105 if (!XtIsRealized((Widget)eb))
108 ! #ifndef LESSTIF_VERSION
109 dpy = (XmDisplay)XmGetXmDisplay(XtDisplay(eb));
110 default_button_emphasis = dpy->display.default_button_emphasis;
113 if (!XtIsRealized((Widget)eb))
116 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
117 dpy = (XmDisplay)XmGetXmDisplay(XtDisplay(eb));
118 default_button_emphasis = dpy->display.default_button_emphasis;
125 ! #ifndef LESSTIF_VERSION
127 * NOTE: PushButton has two types of shadows: primitive-shadow and
128 * default-button-shadow. If pushbutton is in a menu only primitive
133 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
135 * NOTE: PushButton has two types of shadows: primitive-shadow and
136 * default-button-shadow. If pushbutton is in a menu only primitive
139 adjust, adjust, rectwidth, rectheight, borderwidth);
142 ! #ifndef LESSTIF_VERSION
143 switch (default_button_emphasis)
145 case XmINTERNAL_HIGHLIGHT:
147 adjust, adjust, rectwidth, rectheight, borderwidth);
150 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
151 switch (default_button_emphasis)
153 case XmINTERNAL_HIGHLIGHT:
156 default_button_shadow_thickness =
157 eb->pushbutton.default_button_shadow_thickness;
159 ! #ifndef LESSTIF_VERSION
161 * Compute location of bounding box to contain the
162 * defaultButtonShadow.
164 default_button_shadow_thickness =
165 eb->pushbutton.default_button_shadow_thickness;
167 ! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
169 * Compute location of bounding box to contain the
170 * defaultButtonShadow.
171 *** ../vim-7.0.013/src/version.c Fri May 12 19:10:03 2006
172 --- src/version.c Fri May 12 19:23:12 2006
176 { /* Add new patch number below this line */
182 hundred-and-one symptoms of being an internet addict:
183 126. You brag to all of your friends about your date Saturday night...but
184 you don't tell them it was only in a chat room.
186 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
187 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
188 \\\ download, build and distribute -- http://www.A-A-P.org ///
189 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///