diff options
| author | Gerd Moellmann | 2000-01-17 09:29:10 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-01-17 09:29:10 +0000 |
| commit | 1f0cf6ee91e56826bc005ce769acf4027a6c90df (patch) | |
| tree | 8798625fb15334f21e3bbc679dd975b8a33b4061 | |
| parent | 52b8dbf903af0e5caa834888f532f65db368e6b3 (diff) | |
| download | emacs-1f0cf6ee91e56826bc005ce769acf4027a6c90df.tar.gz emacs-1f0cf6ee91e56826bc005ce769acf4027a6c90df.zip | |
(make_menubar): Set XmNresizeHeight and XmNresizeWidth to False.
| -rw-r--r-- | lwlib/lwlib-Xm.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index 95660d411b5..266d1e0aab4 100644 --- a/lwlib/lwlib-Xm.c +++ b/lwlib/lwlib-Xm.c | |||
| @@ -1474,12 +1474,19 @@ static Widget | |||
| 1474 | make_menubar (instance) | 1474 | make_menubar (instance) |
| 1475 | widget_instance* instance; | 1475 | widget_instance* instance; |
| 1476 | { | 1476 | { |
| 1477 | Arg al[1]; | 1477 | Arg al[3]; |
| 1478 | int ac; | 1478 | int ac; |
| 1479 | 1479 | ||
| 1480 | ac = 0; | 1480 | ac = 0; |
| 1481 | XtSetArg(al[0], XmNmenuAccelerator, 0); | 1481 | XtSetArg(al[ac], XmNmenuAccelerator, 0); ++ac; |
| 1482 | return XmCreateMenuBar (instance->parent, instance->info->name, al, 1); | 1482 | |
| 1483 | /* As of 2000-01-17, the LessTif menu bar resizes to height 0 when | ||
| 1484 | all its children are removed, causing an annoying flickering | ||
| 1485 | behavior. Prevent that by not allowing resizing. */ | ||
| 1486 | XtSetArg(al[ac], XmNresizeHeight, False); ++ac; | ||
| 1487 | XtSetArg(al[ac], XmNresizeWidth, False); ++ac; | ||
| 1488 | |||
| 1489 | return XmCreateMenuBar (instance->parent, instance->info->name, al, ac); | ||
| 1483 | } | 1490 | } |
| 1484 | 1491 | ||
| 1485 | static void | 1492 | static void |