changeset 28015:0794d93da030

(make_menubar): Set XmNresizeHeight and XmNresizeWidth resources only if LESSTIF_VERSION is defined.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 06 Mar 2000 22:50:06 +0000
parents 19422c062ade
children 668aa57aa4bc
files lwlib/lwlib-Xm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Mon Mar 06 12:48:03 2000 +0000
+++ b/lwlib/lwlib-Xm.c	Mon Mar 06 22:50:06 2000 +0000
@@ -1492,11 +1492,13 @@
   ac = 0;
   XtSetArg(al[ac], XmNmenuAccelerator, 0); ++ac;
 
+#ifdef LESSTIF_VERSION
   /* As of 2000-01-17, the LessTif menu bar resizes to height 0 when
      all its children are removed, causing an annoying flickering
      behavior.  Prevent that by not allowing resizing.  */
   XtSetArg(al[ac], XmNresizeHeight, False); ++ac;
   XtSetArg(al[ac], XmNresizeWidth, False); ++ac;
+#endif
   
   return XmCreateMenuBar (instance->parent, instance->info->name, al, ac);
 }