[Xfce4-commits] [apps/xfce4-terminal] 01/01: vte_terminal_get/set_scroll_on_output are available since vte 0.51.1

noreply at xfce.org noreply at xfce.org
Tue Dec 5 22:04:59 CET 2017


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

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit b36b15e601c8208e0af35326232a19f977acad0c
Author: Igor <f2404 at yandex.ru>
Date:   Tue Dec 5 16:04:52 2017 -0500

    vte_terminal_get/set_scroll_on_output are available since vte 0.51.1
---
 terminal/terminal-screen.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index 54e5597..4425556 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -182,7 +182,7 @@ struct _TerminalScreen
 
   TerminalTitle        dynamic_title_mode;
   guint                hold : 1;
-#if !VTE_CHECK_VERSION (0, 52, 0)
+#if !VTE_CHECK_VERSION (0, 51, 1)
   guint                scroll_on_output : 1;
 #endif
 
@@ -2577,7 +2577,7 @@ gboolean
 terminal_screen_get_scroll_on_output (TerminalScreen *screen)
 {
   terminal_return_val_if_fail (TERMINAL_IS_SCREEN (screen), FALSE);
-#if VTE_CHECK_VERSION (0, 52, 0)
+#if VTE_CHECK_VERSION (0, 51, 1)
   return vte_terminal_get_scroll_on_output (VTE_TERMINAL (screen->terminal));
 #else
   return screen->scroll_on_output;
@@ -2591,10 +2591,11 @@ terminal_screen_set_scroll_on_output (TerminalScreen *screen,
                                       gboolean        enabled)
 {
   terminal_return_if_fail (TERMINAL_IS_SCREEN (screen));
-#if !VTE_CHECK_VERSION (0, 52, 0)
+#if VTE_CHECK_VERSION (0, 51, 1)
+  vte_terminal_set_scroll_on_output (VTE_TERMINAL (screen->terminal), enabled);
+#else
   screen->scroll_on_output = enabled;
 #endif
-  vte_terminal_set_scroll_on_output (VTE_TERMINAL (screen->terminal), enabled);
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list