diff lwlib/lwlib-Xm.c @ 27345:15a661269a09

(make_menubar): Set XmNresizeHeight and XmNresizeWidth to False.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 17 Jan 2000 09:29:10 +0000
parents a5bceda5d689
children 5c5bb4b1ff45
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c	Mon Jan 17 09:16:13 2000 +0000
+++ b/lwlib/lwlib-Xm.c	Mon Jan 17 09:29:10 2000 +0000
@@ -1474,12 +1474,19 @@
 make_menubar (instance)
      widget_instance* instance;
 {
-  Arg al[1];
+  Arg al[3];
   int ac;
 
   ac = 0;
-  XtSetArg(al[0], XmNmenuAccelerator, 0);
-  return XmCreateMenuBar (instance->parent, instance->info->name, al, 1);
+  XtSetArg(al[ac], XmNmenuAccelerator, 0); ++ac;
+
+  /* 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;
+  
+  return XmCreateMenuBar (instance->parent, instance->info->name, al, ac);
 }
 
 static void