patch 9.2.0634: GTK4: no minimum resize limit
Commit:
https://github.com/vim/vim/commit/991023b14f970e585c21f8ffef072815a7961013
Author: Foxe Chen <[email protected]>
Date: Sat Jun 13 18:17:35 2026 +0000
patch 9.2.0634: GTK4: no minimum resize limit
Problem: GTK4: no minimum resize limit
Solution: Set minimum vertical size to 4 rows and horizontal size to 10
columns (Foxe Chen).
closes: #20487
Signed-off-by: Foxe Chen <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/gui_gtk4_f.c b/src/gui_gtk4_f.c
index 14ff85f62..7306d78c2 100644
--- a/src/gui_gtk4_f.c
+++ b/src/gui_gtk4_f.c
@@ -254,15 +254,20 @@ vim_form_size_allocate(
static void
vim_form_measure(
GtkWidget *widget UNUSED,
- GtkOrientation orientation UNUSED,
+ GtkOrientation orientation,
int for_size UNUSED,
int *minimum,
int *natural,
int *minimum_baseline,
int *natural_baseline)
{
- *minimum = 1;
- *natural = 1;
+ if (orientation == GTK_ORIENTATION_VERTICAL)
+ // Set minimum height of form widget to 4 rows.
+ *minimum = *natural = gui.char_height * 4;
+ else
+ // Set minimum width of form widget to 10 columns.
+ *minimum = *natural = gui.char_width * 10;
+
*minimum_baseline = -1;
*natural_baseline = -1;
}
diff --git a/src/version.c b/src/version.c
index a32296a6d..756793446 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 634,
/**/
633,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1wYT7N-00DPPV-Oe%40256bit.org.