From xemacs-m  Mon Apr 21 15:56:56 1997
Received: from beethoven.cs.colostate.edu (beethoven.cs.colostate.edu [129.82.102.183])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id PAA29978
	for <xemacs-beta@xemacs.org>; Mon, 21 Apr 1997 15:56:55 -0500 (CDT)
Received: (from ginis@localhost)
	by beethoven.cs.colostate.edu (8.8.5/8.8.5) id OAA10815
	for xemacs-beta@xemacs.org; Mon, 21 Apr 1997 14:56:32 -0600 (MDT)
From: michael ginis <ginis@CS.ColoState.EDU>
Message-Id: <199704212056.OAA10815@beethoven.cs.colostate.edu>
Subject: Patch for Lucid Menu Widget
To: xemacs-beta@xemacs.org
Date: Mon, 21 Apr 1997 14:56:31 -0600 (MDT)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

As Hrvoje suggested, I am sending a patch for what seems to be a bug
in the lucid menu widget if it is compiled without Motif.

The problem is that in the resource settings for the menu widget, the
Motif resource values XmRVerticalDimension and XmRHorizontalDimension
were being used, and there is no converter for these resources in Xt
if you don't use Motif.  Setting these two to XtRDimension instead
should perform the same function. (It seems that the separate Motif
resources are redundant anyway!)

Mike

patch for xlwmenu.c:

79c79
<   {XmNmarginWidth, XmCMarginWidth, XmRHorizontalDimension, sizeof(Dimension),
---
>   {XmNmarginWidth, XmCMarginWidth, XtRDimension, sizeof(Dimension),
81c81
<   {XmNmarginHeight, XmCMarginHeight, XmRVerticalDimension, sizeof(Dimension),
---
>   {XmNmarginHeight, XmCMarginHeight, XtRDimension, sizeof(Dimension),
83c83
<   {XmNspacing, XmCSpacing, XmRHorizontalDimension,  sizeof(Dimension),
---
>   {XmNspacing, XmCSpacing, XtRDimension,  sizeof(Dimension),
87c87
<   {XmNshadowThickness, XmCShadowThickness, XmRHorizontalDimension,
---
>   {XmNshadowThickness, XmCShadowThickness, XtRDimension,

