[Xfce4-commits] [apps/xfce4-terminal] 01/01: vte_terminal_match_set_cursor_type() has been deprecated

noreply at xfce.org noreply at xfce.org
Thu Apr 26 17:33:12 CEST 2018


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 75ca4bf369a5ba0581867edd1458dc5b534d0e41
Author: Igor <f2404 at yandex.ru>
Date:   Thu Apr 26 11:30:52 2018 -0400

    vte_terminal_match_set_cursor_type() has been deprecated
    
    vte_terminal_match_set_cursor_type() has been declared deprecated since GTK4
    does not support GDK_CURSOR_TYPE anymore.
    Use vte_terminal_match_set_cursor_name() instead.
---
 terminal/terminal-widget.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/terminal/terminal-widget.c b/terminal/terminal-widget.c
index 5494cff..ac191f0 100644
--- a/terminal/terminal-widget.c
+++ b/terminal/terminal-widget.c
@@ -763,7 +763,11 @@ terminal_widget_update_highlight_urls (TerminalWidget *widget)
 
           /* set the new regular expression */
           widget->regex_tags[i] = vte_terminal_match_add_gregex (VTE_TERMINAL (widget), regex, 0);
+#if VTE_CHECK_VERSION (0, 53, 00)
+          vte_terminal_match_set_cursor_name (VTE_TERMINAL (widget), widget->regex_tags[i], "grab");
+#else
           vte_terminal_match_set_cursor_type (VTE_TERMINAL (widget), widget->regex_tags[i], GDK_HAND2);
+#endif
           /* release the regex owned by vte now */
           g_regex_unref (regex);
         }

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


More information about the Xfce4-commits mailing list