[vala] vte, vte-2.90: fix Vte.Terminal.match_check binding



commit 0533f093161983be161cf4768df9b1a279f3a576
Author: Jacques-Pascal Deplaix <jp deplaix gmail com>
Date:   Tue Jun 5 14:46:42 2012 -0700

    vte, vte-2.90: fix Vte.Terminal.match_check binding
    
    Fixes bug 676882.

 vapi/metadata/Vte-2.90.metadata |    8 ++++++--
 vapi/packages/vte/vte.metadata  |    2 ++
 vapi/vte-2.90.vapi              |    2 +-
 vapi/vte.vapi                   |    2 +-
 4 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/vapi/metadata/Vte-2.90.metadata b/vapi/metadata/Vte-2.90.metadata
index b4fcf1c..0cc8d37 100644
--- a/vapi/metadata/Vte-2.90.metadata
+++ b/vapi/metadata/Vte-2.90.metadata
@@ -1,9 +1,13 @@
 // Deprecated from start
 Terminal.pty skip
 
+Terminal
+  .match_check nullable
+  .match_set_cursor.cursor nullable
+
 // Report upstream
 Vte cheader_filename="vte/vte.h"
 Pty.new_foreign.fd owned=false
-Terminal.get_cursor_position.* out
-Terminal.match_set_cursor.cursor nullable
+Terminal
+  .get_cursor_position.* out
 SelectionFunc.data closure=3
diff --git a/vapi/packages/vte/vte.metadata b/vapi/packages/vte/vte.metadata
index 68e33eb..2ce4418 100644
--- a/vapi/packages/vte/vte.metadata
+++ b/vapi/packages/vte/vte.metadata
@@ -17,4 +17,6 @@ vte_terminal_get_cursor_position.column is_out="1"
 vte_terminal_get_cursor_position.row is_out="1"
 vte_terminal_set_colors.palette is_array="1"
 vte_terminal_set_colors.palette_size hidden="1"
+vte_terminal_match_check nullable="1" transfer_ownership="1"
+vte_terminal_match_check.tag is_out="1"
 vte_terminal_pty_new transfer_ownership="1"
diff --git a/vapi/vte-2.90.vapi b/vapi/vte-2.90.vapi
index f5460b5..e298db7 100644
--- a/vapi/vte-2.90.vapi
+++ b/vapi/vte-2.90.vapi
@@ -54,7 +54,7 @@ namespace Vte {
 		public void im_append_menuitems (Gtk.MenuShell menushell);
 		public bool is_word_char (unichar c);
 		public int match_add_gregex (GLib.Regex regex, GLib.RegexMatchFlags flags);
-		public string match_check (long column, long row, out int tag);
+		public string? match_check (long column, long row, out int tag);
 		public void match_clear_all ();
 		public void match_remove (int tag);
 		public void match_set_cursor (int tag, Gdk.Cursor? cursor);
diff --git a/vapi/vte.vapi b/vapi/vte.vapi
index 66f6090..dae520e 100644
--- a/vapi/vte.vapi
+++ b/vapi/vte.vapi
@@ -95,7 +95,7 @@ namespace Vte {
 		public bool is_word_char (unichar c);
 		public int match_add (string match);
 		public int match_add_gregex (GLib.Regex regex, GLib.RegexMatchFlags flags);
-		public unowned string match_check (long column, long row, int tag);
+		public string? match_check (long column, long row, out int tag);
 		public void match_clear_all ();
 		public void match_remove (int tag);
 		public void match_set_cursor (int tag, Gdk.Cursor cursor);



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