mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Silence 'Negative content width -2' warning.
Seems buttons have grown.
This commit is contained in:
parent
d209fec4c9
commit
4e3bd4f7bc
@ -114,8 +114,8 @@ gnc_item_edit_tb_get_preferred_width (GtkWidget *widget,
|
||||
gint x, y, w, h = 2, width = 0;
|
||||
gnc_item_edit_get_pixel_coords (GNC_ITEM_EDIT (item_edit), &x, &y, &w, &h);
|
||||
width = ((h - 2)*2)/3;
|
||||
if (width < 20) // minimum size for a button
|
||||
width = 20;
|
||||
if (width < 22) // minimum size for a button
|
||||
width = 22;
|
||||
*minimal_width = *natural_width = width;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user