work around some lesstif bugs

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1779 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1999-06-21 04:17:00 +00:00
parent f0d7974f00
commit 57b01720db

View File

@ -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 */
}
/* =============================================== */