[vala] gtk+-2.0, gtk+-3.0: Fix Gtk.TextBuffer serialize and deserialize methods
- From: Michal Hruby <mhruby src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtk+-2.0, gtk+-3.0: Fix Gtk.TextBuffer serialize and deserialize methods
- Date: Thu, 10 Mar 2011 17:38:17 +0000 (UTC)
commit 4d85da5281762f1350540a243714185f600b6aa9
Author: Michal Hruby <michal mhr gmail com>
Date: Thu Mar 10 18:36:54 2011 +0100
gtk+-2.0, gtk+-3.0: Fix Gtk.TextBuffer serialize and deserialize methods
vapi/gtk+-2.0.vapi | 7 ++++---
vapi/gtk+-3.0.vapi | 7 ++++---
vapi/packages/gtk+-2.0/gtk+-2.0.metadata | 6 ++++++
vapi/packages/gtk+-3.0/gtk+-3.0.metadata | 6 ++++++
4 files changed, 20 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi
index 9364dab..9bf0d1c 100644
--- a/vapi/gtk+-2.0.vapi
+++ b/vapi/gtk+-2.0.vapi
@@ -4344,7 +4344,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);
@@ -4366,7 +4366,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 ();
@@ -4391,7 +4391,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/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 402f281..30c8d05 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -4209,7 +4209,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);
@@ -4231,7 +4231,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 ();
@@ -4256,7 +4256,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 1839271..3f882bf 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
@@ -546,8 +546,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"
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
index 22c7b5e..674354c 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
@@ -558,8 +558,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]