]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-152 v7.0.152
authorBram Moolenaar <Bram@vim.org>
Tue, 24 Oct 2006 20:29:10 +0000 (20:29 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 24 Oct 2006 20:29:10 +0000 (20:29 +0000)
src/gui_xmebw.c
src/version.c

index 8ae3d40c4207d987da782f58e5e372ab6236b2c2..be218d1781dc9a239257a997f9633be773206483 100644 (file)
@@ -138,6 +138,19 @@ static XtResource resources[] =
     }
 };
 
+/* This is needed to work around a bug in Lesstif 2, leaving the extension
+ * NULL somehow results in getting it set to an invalid pointer. */
+XmPrimitiveClassExtRec xmEnhancedButtonPrimClassExtRec =
+{
+    /* next_extension      */ NULL,
+    /* record_type         */ NULLQUARK,
+    /* version             */ XmPrimitiveClassExtVersion,
+    /* record_size         */ sizeof(XmPrimitiveClassExtRec),
+    /* widget_baseline     */ XmInheritBaselineProc,
+    /* widget_display_rect */ XmInheritDisplayRectProc,
+    /* widget_margins      */ NULL
+};
+
 XmEnhancedButtonClassRec xmEnhancedButtonClassRec =
 {
     {
@@ -184,7 +197,7 @@ XmEnhancedButtonClassRec xmEnhancedButtonClassRec =
        /* arm and activate      */ XmInheritArmAndActivate,
        /* synthetic resources   */ NULL,
        /* number of syn res     */ 0,
-       /* extension             */ NULL,
+       /* extension             */ (XtPointer)&xmEnhancedButtonPrimClassExtRec,
     },
 
     /* label_class fields */
index c73040be7d4f36c4fa5ccfcc54a4733c8ca23b62..ea55ad36b38e69871ae9006382dff1bd56dc54a3 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    152,
 /**/
     151,
 /**/