summaryrefslogtreecommitdiffstats
path: root/src/gui_xmebw.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-10-24 20:29:10 +0000
committerBram Moolenaar <Bram@vim.org>2006-10-24 20:29:10 +0000
commit8b610cfc7cc2daf6715e60d033c82d118f97f04b (patch)
tree9b1951547f258159a3d7a4d4ced627f705a3bb47 /src/gui_xmebw.c
parentd13506289a58f3895531d38240ab5401244237e6 (diff)
updated for version 7.0-152v7.0.152
Diffstat (limited to 'src/gui_xmebw.c')
-rw-r--r--src/gui_xmebw.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gui_xmebw.c b/src/gui_xmebw.c
index 8ae3d40c42..be218d1781 100644
--- a/src/gui_xmebw.c
+++ b/src/gui_xmebw.c
@@ -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 */