[vte] widget: Deprecate vte_terminal_match_set_cursor_type
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Deprecate vte_terminal_match_set_cursor_type
- Date: Mon, 23 Apr 2018 18:53:04 +0000 (UTC)
commit 71a3550e5372b6636fc276dab1f48fd9418179d4
Author: Christian Persch <chpe src gnome org>
Date: Mon Apr 23 20:51:18 2018 +0200
widget: Deprecate vte_terminal_match_set_cursor_type
GdkCursorType is gone from gtk4, so deprecate its use here
also on gtk3 already.
doc/reference/vte-sections.txt | 2 +-
src/vte/vtedeprecated.h | 6 ++++++
src/vte/vteterminal.h | 4 ----
src/vtegtk.cc | 4 +++-
4 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index 414c136..e76ac3a 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -75,7 +75,6 @@ vte_terminal_match_remove
vte_terminal_match_remove_all
vte_terminal_match_check
vte_terminal_match_check_event
-vte_terminal_match_set_cursor_type
vte_terminal_match_set_cursor_name
vte_terminal_set_cjk_ambiguous_width
vte_terminal_get_cjk_ambiguous_width
@@ -142,6 +141,7 @@ vte_terminal_get_current_file_uri
<SUBSECTION Deprecated>
vte_terminal_copy_clipboard
vte_terminal_match_set_cursor
+vte_terminal_match_set_cursor_type
vte_terminal_match_add_gregex
vte_terminal_search_get_gregex
vte_terminal_search_set_gregex
diff --git a/src/vte/vtedeprecated.h b/src/vte/vtedeprecated.h
index d154145..8e8a289 100644
--- a/src/vte/vtedeprecated.h
+++ b/src/vte/vtedeprecated.h
@@ -48,6 +48,12 @@ void vte_terminal_match_set_cursor(VteTerminal *terminal,
_VTE_DEPRECATED
_VTE_PUBLIC
+void vte_terminal_match_set_cursor_type(VteTerminal *terminal,
+ int tag,
+ GdkCursorType cursor_type) _VTE_GNUC_NONNULL(1);
+
+_VTE_DEPRECATED
+_VTE_PUBLIC
char *vte_terminal_match_check(VteTerminal *terminal,
glong column, glong row,
int *tag) _VTE_GNUC_NONNULL(1) G_GNUC_MALLOC;
diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
index d468f66..8c493bc 100644
--- a/src/vte/vteterminal.h
+++ b/src/vte/vteterminal.h
@@ -390,10 +390,6 @@ int vte_terminal_match_add_regex(VteTerminal *terminal,
guint32 flags) _VTE_GNUC_NONNULL(1) _VTE_GNUC_NONNULL(2);
/* Set the cursor to be used when the pointer is over a given match. */
_VTE_PUBLIC
-void vte_terminal_match_set_cursor_type(VteTerminal *terminal,
- int tag,
- GdkCursorType cursor_type) _VTE_GNUC_NONNULL(1);
-_VTE_PUBLIC
void vte_terminal_match_set_cursor_name(VteTerminal *terminal,
int tag,
const char *cursor_name) _VTE_GNUC_NONNULL(1) _VTE_GNUC_NONNULL(3);
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 9524c44..4d74b21 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -2088,7 +2088,7 @@ vte_terminal_event_check_gregex_simple(VteTerminal *terminal,
* 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.
+ * Deprecated: 0.40: Use vte_terminal_match_set_cursor_name() instead.
*/
void
vte_terminal_match_set_cursor(VteTerminal *terminal,
@@ -2107,6 +2107,8 @@ vte_terminal_match_set_cursor(VteTerminal *terminal,
*
* Sets which cursor the terminal will use if the pointer is over the pattern
* specified by @tag.
+ *
+ * Deprecated: 0.54: Use vte_terminal_match_set_cursor_name() instead.
*/
void
vte_terminal_match_set_cursor_type(VteTerminal *terminal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]