This is an automated email from the git hooks/post-receive script.

f2404 pushed a 
commit to branch 
master
in repository apps/xfce4-terminal.

commit a1362b24fb9a283049911f2512e98f5be91deb33
Author: Igor <f2...@yandex.ru>
Date:   Thu Feb 20 10:23:41 2020 -0500

    Allow to create window with 1 line height
    
    Should also disable the scrollbar (--hide-scrollbar) to get 1 row window.
    
    Fixes bug #16447
---
 terminal/terminal-screen.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index b6f52ad..dc5c85f 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -65,6 +65,10 @@
 /* taken from gnome-terminal (terminal-screen.c) */
 #define SPAWN_TIMEOUT (30 * 1000 /* 30 s*/)
 
+/* minimum terminal dimensions */
+#define MIN_COLUMNS 4
+#define MIN_ROWS    1
+
 
 
 enum
@@ -2143,8 +2147,8 @@ terminal_screen_set_window_geometry_hints (TerminalScreen 
*screen,
 
   hints.width_inc = char_width;
   hints.height_inc = char_height;
-  hints.min_width = hints.base_width + hints.width_inc * 4;
-  hints.min_height = hints.base_height + hints.height_inc * 2;
+  hints.min_width = hints.base_width + hints.width_inc * MIN_COLUMNS;
+  hints.min_height = hints.base_height + hints.height_inc * MIN_ROWS;
 
   gtk_window_set_geometry_hints (window,
 #if GTK_CHECK_VERSION (3, 19, 5)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to