[vte] widget: Deprecated vte_terminal_match_set_cursor



commit c2dc6bb2e2d4a99fade8e97d127bd1a91ef1585c
Author: Christian Persch <chpe gnome org>
Date:   Mon Nov 3 18:38:30 2014 +0100

    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.

 src/vte.c           |    2 ++
 src/vtedeprecated.h |    5 +++++
 src/vteterminal.h   |    3 ---
 3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 9374fe6..c19b565 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 c5fdfd6..05bfd54 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 88e21b8..59f8ce7 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]