From 57b01720dbf7d36a29ac40777aae606e0aacc931 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Mon, 21 Jun 1999 04:17:00 +0000 Subject: [PATCH] work around some lesstif bugs git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1779 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/combocell-motif.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/register/combocell-motif.c b/src/register/combocell-motif.c index 58718f4307..0d8d2903c2 100644 --- a/src/register/combocell-motif.c +++ b/src/register/combocell-motif.c @@ -317,6 +317,21 @@ void realizeCombo (BasicCell *bcell, void *w, int pixel_width) menustr = cell->menuitems[i]; } } + + /* work around some current lesstif bugs. + * Currently there appear to be two: + * (1) the combobox is too big, and + * (2) the dropdown is 1 pixel high when no drop-down item is selected. + * At this point all lesstif versions seem to be affected ... */ +// #if (defined (LesstifVersion)) || (88 < LesstifVersion) +#if (defined (LesstifVersion)) + XtVaSetValues (combobox, XmNdropDownHeight, 100, NULL); + { + int hi; + hi = XbaeMatrixGetRowPixelHeight (box->parent); + XtVaSetValues (combobox, XmNheight, hi, NULL); + } +#endif /* LESSTIF_VERSION */ } /* =============================================== */