[vala] gtk+-2.0, gtk+-3.0: make TextBuffer insert methods ref the iter
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtk+-2.0, gtk+-3.0: make TextBuffer insert methods ref the iter
- Date: Sat, 8 Nov 2014 13:53:10 +0000 (UTC)
commit a9a11d23aab730aa67a8be7d0fbc92e4d94beab9
Author: Luca Bruno <lucabru src gnome org>
Date: Sat Nov 8 14:50:03 2014 +0100
gtk+-2.0, gtk+-3.0: make TextBuffer insert methods ref the iter
Yes, this breaks users of this api. Can't do better, sorry.
Fixes bug 736198
vapi/gtk+-2.0.vapi | 10 +++++-----
vapi/gtk+-3.0.vapi | 10 +++++-----
vapi/packages/gtk+-2.0/gtk+-2.0.metadata | 5 +++++
vapi/packages/gtk+-3.0/gtk+-3.0.metadata | 5 +++++
4 files changed, 20 insertions(+), 10 deletions(-)
---
diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi
index 005db62..acc2e09 100644
--- a/vapi/gtk+-2.0.vapi
+++ b/vapi/gtk+-2.0.vapi
@@ -4438,12 +4438,12 @@ namespace Gtk {
public string get_text (Gtk.TextIter start, Gtk.TextIter end, bool include_hidden_chars);
public void insert (ref Gtk.TextIter iter, string text, int len);
public void insert_at_cursor (string text, int len);
- public bool insert_interactive (Gtk.TextIter iter, string text, int len, bool
default_editable);
+ public bool insert_interactive (ref Gtk.TextIter iter, string text, int len, bool
default_editable);
public bool insert_interactive_at_cursor (string text, int len, bool default_editable);
- public void insert_range (Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter end);
- public bool insert_range_interactive (Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter
end, bool default_editable);
- public void insert_with_tags (Gtk.TextIter iter, string text, int len, ...);
- public void insert_with_tags_by_name (Gtk.TextIter iter, string text, int len, ...);
+ public void insert_range (ref Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter end);
+ public bool insert_range_interactive (ref Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter
end, bool default_editable);
+ public void insert_with_tags (ref Gtk.TextIter iter, string text, int len, ...);
+ public void insert_with_tags_by_name (ref Gtk.TextIter iter, string text, int len, ...);
public void move_mark (Gtk.TextMark mark, Gtk.TextIter where);
public void move_mark_by_name (string name, Gtk.TextIter where);
public void paste_clipboard (Gtk.Clipboard clipboard, Gtk.TextIter? override_location, bool
default_editable);
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 0d36884..d07f765 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -5265,12 +5265,12 @@ namespace Gtk {
public string get_text (Gtk.TextIter start, Gtk.TextIter end, bool include_hidden_chars);
public void insert (ref Gtk.TextIter iter, string text, int len);
public void insert_at_cursor (string text, int len);
- public bool insert_interactive (Gtk.TextIter iter, string text, int len, bool
default_editable);
+ public bool insert_interactive (ref Gtk.TextIter iter, string text, int len, bool
default_editable);
public bool insert_interactive_at_cursor (string text, int len, bool default_editable);
- public void insert_range (Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter end);
- public bool insert_range_interactive (Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter
end, bool default_editable);
- public void insert_with_tags (Gtk.TextIter iter, string text, int len, ...);
- public void insert_with_tags_by_name (Gtk.TextIter iter, string text, int len, ...);
+ public void insert_range (ref Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter end);
+ public bool insert_range_interactive (ref Gtk.TextIter iter, Gtk.TextIter start, Gtk.TextIter
end, bool default_editable);
+ public void insert_with_tags (ref Gtk.TextIter iter, string text, int len, ...);
+ public void insert_with_tags_by_name (ref Gtk.TextIter iter, string text, int len, ...);
public void move_mark (Gtk.TextMark mark, Gtk.TextIter where);
public void move_mark_by_name (string name, Gtk.TextIter where);
public void paste_clipboard (Gtk.Clipboard clipboard, Gtk.TextIter? override_location, bool
default_editable);
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
index ed1104c..0838bf1 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
@@ -746,6 +746,11 @@ gtk_text_buffer_delete_interactive.end_iter is_ref="1"
gtk_text_buffer_deserialize.data type_name="uint8" is_array="1" array_length_type="gsize"
gtk_text_buffer_deserialize.length hidden="1"
gtk_text_buffer_insert.iter is_ref="1"
+gtk_text_buffer_insert_interactive.iter is_ref="1"
+gtk_text_buffer_insert_range.iter is_ref="1"
+gtk_text_buffer_insert_range_interactive.iter is_ref="1"
+gtk_text_buffer_insert_with_tags.iter is_ref="1"
+gtk_text_buffer_insert_with_tags_by_name.iter is_ref="1"
gtk_text_buffer_serialize type_name="uint8" is_array="1" transfer_ownership="1" array_length_type="gsize"
gtk_text_buffer_serialize.length hidden="1"
gtk_text_buffer_get_deserialize_formats is_array="1" transfer_ownership="1"
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
index 4861d0d..ac1128e 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
@@ -1050,6 +1050,11 @@ gtk_text_buffer_delete_interactive.end_iter is_ref="1"
gtk_text_buffer_deserialize.data type_name="uint8" is_array="1" array_length_type="gsize"
gtk_text_buffer_deserialize.length hidden="1"
gtk_text_buffer_insert.iter is_ref="1"
+gtk_text_buffer_insert_interactive.iter is_ref="1"
+gtk_text_buffer_insert_range.iter is_ref="1"
+gtk_text_buffer_insert_range_interactive.iter is_ref="1"
+gtk_text_buffer_insert_with_tags.iter is_ref="1"
+gtk_text_buffer_insert_with_tags_by_name.iter is_ref="1"
gtk_text_buffer_serialize type_name="uint8" is_array="1" transfer_ownership="1" array_length_type="gsize"
gtk_text_buffer_serialize.length hidden="1"
gtk_text_buffer_get_deserialize_formats is_array="1" transfer_ownership="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]