diff options
author | Christian Persch <chpe@gnome.org> | 2014-11-03 18:38:30 +0100 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2014-11-03 18:38:30 +0100 |
commit | c2dc6bb2e2d4a99fade8e97d127bd1a91ef1585c (patch) | |
tree | 541bf18aa8eca7ecc52598d2f0469ab2bb0695a4 | |
parent | 0a96716b8fe1a68d397862fc4dbb60dad5625c52 (diff) | |
download | vte-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.c | 2 | ||||
-rw-r--r-- | src/vtedeprecated.h | 5 | ||||
-rw-r--r-- | src/vteterminal.h | 3 |
3 files changed, 7 insertions, 3 deletions
@@ -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); |