[vala/0.10] gtk+-2.0: Fix Gtk.TextBuffer serialize and deserialize methods



commit df467b3c942483f21126be5e038f70033470fe1e
Author: Michal Hruby <michal mhr gmail com>
Date:   Thu Mar 10 18:36:54 2011 +0100

    gtk+-2.0: Fix Gtk.TextBuffer serialize and deserialize methods

 vapi/gtk+-2.0.vapi                       |    7 ++++---
 vapi/packages/gtk+-2.0/gtk+-2.0.metadata |    6 ++++++
 2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi
index 4e381fb..191388b 100644
--- a/vapi/gtk+-2.0.vapi
+++ b/vapi/gtk+-2.0.vapi
@@ -4123,7 +4123,7 @@ namespace Gtk {
 		public void delete_mark (Gtk.TextMark mark);
 		public void delete_mark_by_name (string name);
 		public bool delete_selection (bool interactive, bool default_editable);
-		public bool deserialize (Gtk.TextBuffer content_buffer, Gdk.Atom format, Gtk.TextIter iter, uchar data, size_t length) throws GLib.Error;
+		public bool deserialize (Gtk.TextBuffer content_buffer, Gdk.Atom format, Gtk.TextIter iter, [CCode (array_length_type = "gsize")] uint8[] data) throws GLib.Error;
 		public bool deserialize_get_can_create_tags (Gdk.Atom format);
 		public void deserialize_set_can_create_tags (Gdk.Atom format, bool can_create_tags);
 		public void get_bounds (out Gtk.TextIter start, out Gtk.TextIter end);
@@ -4145,7 +4145,7 @@ namespace Gtk {
 		public unowned Gtk.TargetList get_paste_target_list ();
 		public unowned Gtk.TextMark get_selection_bound ();
 		public bool get_selection_bounds (out Gtk.TextIter start, out Gtk.TextIter end);
-		public Gdk.Atom get_serialize_formats (int n_formats);
+		public Gdk.Atom[] get_serialize_formats ();
 		public unowned string get_slice (Gtk.TextIter start, Gtk.TextIter end, bool include_hidden_chars);
 		public void get_start_iter (out Gtk.TextIter iter);
 		public unowned Gtk.TextTagTable get_tag_table ();
@@ -4170,7 +4170,8 @@ namespace Gtk {
 		public void remove_selection_clipboard (Gtk.Clipboard clipboard);
 		public void remove_tag_by_name (string name, Gtk.TextIter start, Gtk.TextIter end);
 		public void select_range (Gtk.TextIter ins, Gtk.TextIter bound);
-		public uchar serialize (Gtk.TextBuffer content_buffer, Gdk.Atom format, Gtk.TextIter start, Gtk.TextIter end, size_t length);
+		[CCode (array_length_type = "gsize")]
+		public uint8[] serialize (Gtk.TextBuffer content_buffer, Gdk.Atom format, Gtk.TextIter start, Gtk.TextIter end);
 		public void set_modified (bool setting);
 		public void set_text (string text, int len = -1);
 		public void unregister_deserialize_format (Gdk.Atom format);
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
index 64d3ee2..f4ede2c 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
@@ -538,8 +538,14 @@ gtk_target_list_add_table.targets is_array="1"
 gtk_target_list_new.targets is_array="1"
 gtk_target_list_new.ntargets hidden="1"
 gtk_text_attributes_copy transfer_ownership="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_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"
 gtk_text_buffer_get_deserialize_formats.n_formats hidden="1"
+gtk_text_buffer_get_serialize_formats is_array="1" transfer_ownership="1"
+gtk_text_buffer_get_serialize_formats.n_formats hidden="1"
 gtk_text_buffer_set_text.len default_value="-1"
 gtk_text_child_anchor_get_widgets transfer_ownership="1" type_arguments="unowned Widget"
 gtk_text_tag_table_foreach.data hidden="1"



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