summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2014-11-03 18:38:30 +0100
committerChristian Persch <chpe@gnome.org>2014-11-03 18:38:30 +0100
commitc2dc6bb2e2d4a99fade8e97d127bd1a91ef1585c (patch)
tree541bf18aa8eca7ecc52598d2f0469ab2bb0695a4
parent0a96716b8fe1a68d397862fc4dbb60dad5625c52 (diff)
downloadvte-c2dc6bb2e2d4a99fade8e97d127bd1a91ef1585c.tar.gz
widget: Deprecated vte_terminal_match_set_cursor
The cursor is specific to a display, and can't be changed when the widget's display changes. Use a GdkCursorType or named cursor instead.
-rw-r--r--src/vte.c2
-rw-r--r--src/vtedeprecated.h5
-rw-r--r--src/vteterminal.h3
3 files changed, 7 insertions, 3 deletions
diff --git a/src/vte.c b/src/vte.c
index 9374fe63..c19b565f 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1297,6 +1297,8 @@ vte_terminal_match_add_gregex(VteTerminal *terminal, GRegex *regex, GRegexMatchF
*
* Sets which cursor the terminal will use if the pointer is over the pattern
* specified by @tag. The terminal keeps a reference to @cursor.
+ *
+ * Deprecated: 0.40: Use vte_terminal_match_set_cursor_type or vte_terminal_match_set_cursor_named instead.
*/
void
vte_terminal_match_set_cursor(VteTerminal *terminal, int tag, GdkCursor *cursor)
diff --git a/src/vtedeprecated.h b/src/vtedeprecated.h
index c5fdfd6a..05bfd546 100644
--- a/src/vtedeprecated.h
+++ b/src/vtedeprecated.h
@@ -31,6 +31,11 @@
G_BEGIN_DECLS
+_VTE_DEPRECATED
+void vte_terminal_match_set_cursor(VteTerminal *terminal,
+ int tag,
+ GdkCursor *cursor) _VTE_GNUC_NONNULL(1);
+
G_END_DECLS
#undef _VTE_DEPRECATED
diff --git a/src/vteterminal.h b/src/vteterminal.h
index 88e21b86..59f8ce70 100644
--- a/src/vteterminal.h
+++ b/src/vteterminal.h
@@ -282,9 +282,6 @@ int vte_terminal_match_add_gregex(VteTerminal *terminal,
GRegex *regex,
GRegexMatchFlags flags) _VTE_GNUC_NONNULL(1);
/* Set the cursor to be used when the pointer is over a given match. */
-void vte_terminal_match_set_cursor(VteTerminal *terminal,
- int tag,
- GdkCursor *cursor) _VTE_GNUC_NONNULL(1);
void vte_terminal_match_set_cursor_type(VteTerminal *terminal,
int tag,
GdkCursorType cursor_type) _VTE_GNUC_NONNULL(1);