Commit c2dc6bb2 authored by Christian Persch's avatar Christian Persch

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.
parent 0a96716b
......@@ -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)
......
......@@ -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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment