[gnome-terminal] screen: Use same match cursor as vte hyperlink cursor.
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] screen: Use same match cursor as vte hyperlink cursor.
- Date: Fri, 22 Apr 2022 15:59:57 +0000 (UTC)
commit 3a3d84fd6c7c2c0ed937cd7cd2a7ae4eabc83060
Author: Christian Persch <chpe src gnome org>
Date: Fri Apr 22 17:59:18 2022 +0200
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
src/terminal-screen.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-screen.cc b/src/terminal-screen.cc
index a023aba7..dafdc71b 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;
@@ -498,7 +498,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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]