gnucash maint: Silence 'Negative content width -2' warning.
John Ralls
jralls at code.gnucash.org
Fri Mar 22 16:36:16 EDT 2019
Updated via https://github.com/Gnucash/gnucash/commit/4e3bd4f7 (commit)
from https://github.com/Gnucash/gnucash/commit/d209fec4 (commit)
commit 4e3bd4f7bce85e8fd8ae6e2ea10bb6652e01a85c
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Mar 22 13:36:07 2019 -0700
Silence 'Negative content width -2' warning.
Seems buttons have grown.
diff --git a/gnucash/register/register-gnome/gnucash-item-edit.c b/gnucash/register/register-gnome/gnucash-item-edit.c
index c4799a2bc..f57f49fd3 100644
--- a/gnucash/register/register-gnome/gnucash-item-edit.c
+++ b/gnucash/register/register-gnome/gnucash-item-edit.c
@@ -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;
}
Summary of changes:
gnucash/register/register-gnome/gnucash-item-edit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list