13
0

Work around over-sized ComboBoxes in the Prefs. dialog

This commit is contained in:
Robin Gareus 2021-02-24 21:36:22 +01:00
parent d2cb383965
commit 6a7cc2a3e9
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -348,6 +348,20 @@ public:
{
_options.push_back (e);
_combo->append_text (o);
/* Remove excess space.
* gtk_combo_box_size_requet() does the following:
* {
* gtk_widget_size_request (GTK_BIN (widget)->child, &bin_req);
* gtk_combo_box_remeasure (combo_box);
* bin_req.width = MAX (bin_req.width, priv->width);
* }
*
* - gtk_combo_box_remeasure() measures the extents of all children
* correctly using gtk_cell_view_get_size_of_row() and sets priv->width.
* - The direct child (current active item as entry) is however too large.
* Likely because Ardour's clearlooks.rc.in does not correctly set this up).
*/
_combo->get_child()->set_size_request (20, -1);
}
void clear ()