[vte] widget: Move some public API to its own file
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Move some public API to its own file
- Date: Wed, 18 Nov 2015 20:21:22 +0000 (UTC)
commit 44a098bb8418afd5a5f306b0d3e7de2c0c4bb06b
Author: Christian Persch <chpe gnome org>
Date: Wed Nov 18 21:15:45 2015 +0100
widget: Move some public API to its own file
src/vte.cc | 22 ----------------------
src/vtegtk.cc | 24 ++++++++++++++++++++++++
2 files changed, 24 insertions(+), 22 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index b9587da..69f8696 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7060,28 +7060,6 @@ _vte_terminal_attributes_to_html(VteTerminal *terminal,
return g_string_free(string, FALSE);
}
-/**
- * vte_terminal_get_cursor_position:
- * @terminal: a #VteTerminal
- * @column: (out) (allow-none): a location to store the column, or %NULL
- * @row: (out) (allow-none): a location to store the row, or %NULL
- *
- * Reads the location of the insertion cursor and returns it. The row
- * coordinate is absolute.
- */
-void
-vte_terminal_get_cursor_position(VteTerminal *terminal,
- glong *column, glong *row)
-{
- g_return_if_fail(VTE_IS_TERMINAL(terminal));
- if (column) {
- *column = terminal->pvt->cursor.col;
- }
- if (row) {
- *row = terminal->pvt->cursor.row;
- }
-}
-
/* Place the selected text onto the clipboard. Do this asynchronously so that
* we get notified when the selection we placed on the clipboard is replaced. */
void
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 1b58236..b51d349 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -1746,6 +1746,30 @@ vte_terminal_unselect_all(VteTerminal *terminal)
}
/**
+ * vte_terminal_get_cursor_position:
+ * @terminal: a #VteTerminal
+ * @column: (out) (allow-none): a location to store the column, or %NULL
+ * @row: (out) (allow-none): a location to store the row, or %NULL
+ *
+ * Reads the location of the insertion cursor and returns it. The row
+ * coordinate is absolute.
+ */
+void
+vte_terminal_get_cursor_position(VteTerminal *terminal,
+ long *column,
+ long *row)
+{
+ g_return_if_fail(VTE_IS_TERMINAL(terminal));
+
+ if (column) {
+ *column = terminal->pvt->cursor.col;
+ }
+ if (row) {
+ *row = terminal->pvt->cursor.row;
+ }
+}
+
+/**
* vte_terminal_set_size:
* @terminal: a #VteTerminal
* @columns: the desired number of columns
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]