mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
f0d7974f00
commit
57b01720db
@ -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 */
|
||||
}
|
||||
|
||||
/* =============================================== */
|
||||
|
Loading…
Reference in New Issue
Block a user