gnome-terminal r2821 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2821 - trunk/src
- Date: Thu, 29 May 2008 19:57:25 +0000 (UTC)
Author: chpe
Date: Thu May 29 19:57:25 2008
New Revision: 2821
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2821&view=rev
Log:
Bug 105986 â Change mouse cursor shape over URLs
Modified:
trunk/src/terminal-screen.c
Modified: trunk/src/terminal-screen.c
==============================================================================
--- trunk/src/terminal-screen.c (original)
+++ trunk/src/terminal-screen.c Thu May 29 19:57:25 2008
@@ -42,6 +42,9 @@
#define HTTP_PROXY_DIR "/system/http_proxy"
+#define URL_MATCH_CURSOR (GDK_HAND2)
+#define SKEY_MATCH_CURSOR (GDK_HAND2)
+
typedef struct
{
int tag;
@@ -2131,10 +2134,12 @@
int flavor)
{
TerminalScreenPrivate *priv = screen->priv;
+ VteTerminal *terminal = VTE_TERMINAL (screen);
TagData *tag_data;
int tag;
- tag = vte_terminal_match_add (VTE_TERMINAL (screen), regexp);
+ tag = vte_terminal_match_add (terminal, regexp);
+ vte_terminal_match_set_cursor_type (terminal, tag, URL_MATCH_CURSOR);
tag_data = g_slice_new (TagData);
tag_data->tag = tag;
@@ -2144,15 +2149,17 @@
}
static void
-terminal_screen_skey_match_add (TerminalScreen *screen,
- const char *regexp,
- int flavor)
+terminal_screen_skey_match_add (TerminalScreen *screen,
+ const char *regexp,
+ int flavor)
{
TerminalScreenPrivate *priv = screen->priv;
+ VteTerminal *terminal = VTE_TERMINAL (screen);
TagData *tag_data;
int tag;
- tag = vte_terminal_match_add ( VTE_TERMINAL (screen), regexp);
+ tag = vte_terminal_match_add (terminal, regexp);
+ vte_terminal_match_set_cursor_type (terminal, tag, SKEY_MATCH_CURSOR);
tag_data = g_slice_new (TagData);
tag_data->tag = tag;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]