summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-04-22 17:59:18 +0200
committerChristian Persch <chpe@src.gnome.org>2022-04-22 21:38:05 +0200
commitf002a1dcdd0163fdae860c31d7eb30c3b2005d63 (patch)
treeae2b1f8702362ea33cb065c29fec09daa4579ae1
parentb26cf5cbe7df2864692a99a03de38dac349b0508 (diff)
downloadgnome-terminal-f002a1dcdd0163fdae860c31d7eb30c3b2005d63.tar.gz
screen: Use same match cursor as vte hyperlink cursor.
As in vte@8d8243b2, use the "pointer" cursor for matches. https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/7900 (cherry picked from commit 3a3d84fd6c7c2c0ed937cd7cd2a7ae4eabc83060)
-rw-r--r--src/terminal-screen.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal-screen.cc b/src/terminal-screen.cc
index f60b0e32..b793ee77 100644
--- a/src/terminal-screen.cc
+++ b/src/terminal-screen.cc
@@ -62,7 +62,7 @@
#include "eggshell.hh"
-#define URL_MATCH_CURSOR (GDK_HAND2)
+#define URL_MATCH_CURSOR_NAME "pointer"
typedef struct {
volatile int refcount;
@@ -500,7 +500,7 @@ terminal_screen_init (TerminalScreen *screen)
tag_data = g_slice_new (TagData);
tag_data->flavor = url_regex_flavors[i];
tag_data->tag = vte_terminal_match_add_regex (terminal, url_regexes[i], 0);
- vte_terminal_match_set_cursor_type (terminal, tag_data->tag, URL_MATCH_CURSOR);
+ vte_terminal_match_set_cursor_name (terminal, tag_data->tag, URL_MATCH_CURSOR_NAME);
priv->match_tags = g_slist_prepend (priv->match_tags, tag_data);
}