]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-2.0: Fix Gtk.TextBuffer serialize and deserialize methods
authorMichal Hruby <michal.mhr@gmail.com>
Thu, 10 Mar 2011 17:36:54 +0000 (18:36 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 12 Mar 2011 15:07:10 +0000 (16:07 +0100)
vapi/gtk+-2.0.vapi
vapi/packages/gtk+-2.0/gtk+-2.0.metadata

index 4e381fb35c2db8d9dd74db8f49e8b136fa7c7b07..191388b5fa8b979db7c3ead521fb5b6f8b759327 100644 (file)
@@ -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);
index 64d3ee2dda13aafaba2310b33878c37c2f8a5362..f4ede2c535ea71b66d671c6cf8b14da4993362ec 100644 (file)
@@ -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"