changeset 144:fc6f7cc9f793

Autosize the "Ok" buttons on some of the dialogs so the text is visible on high res Android.
author Brian Smith <brian@dbsoft.org>
date Tue, 19 Oct 2021 06:02:42 -0500
parents c45e449c78ed
children 0ded526c449a
files src/handyftp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/handyftp.c	Mon Oct 18 15:56:30 2021 -0500
+++ b/src/handyftp.c	Tue Oct 19 06:02:42 2021 -0500
@@ -2199,7 +2199,7 @@
 	okbutton = dw_button_new("Ok", 1001L);
 
 	dw_box_pack_start(buttonbox, 0, 50, 30, TRUE, FALSE, 0);
-	dw_box_pack_start(buttonbox, okbutton, 50, 40, FALSE, FALSE, 2);
+	dw_box_pack_start(buttonbox, okbutton, -1, -1, FALSE, FALSE, 2);
 	dw_box_pack_start(buttonbox, 0, 50, 30, TRUE, FALSE, 0);
 
 	param->window = infowindow;
@@ -2990,7 +2990,7 @@
 	okbutton = dw_button_new(locale_string("Ok", 67), 1001L);
 
 	dw_box_pack_start(buttonbox, 0, 50, 30, TRUE, FALSE, 0);
-	dw_box_pack_start(buttonbox, okbutton, 50, 40, FALSE, FALSE, 2);
+	dw_box_pack_start(buttonbox, okbutton, -1, -1, FALSE, FALSE, 2);
 	dw_box_pack_start(buttonbox, 0, 50, 30, TRUE, FALSE, 0);
 
 	param->window = infowindow;