[vala/staging] vapi: Update GIR-based bindings



commit d3e66db2f27d5907b872832785dc13c6aee01ebc
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Nov 6 13:25:48 2019 +0100

    vapi: Update GIR-based bindings

 vapi/gtk4.vapi                  | 20 ++++++++++++++++++++
 vapi/libpeas-1.0.vapi           |  4 ++++
 vapi/metadata/Peas-1.0.metadata |  2 ++
 3 files changed, 26 insertions(+)
---
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 701d1abaf..3279be691 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -10902,6 +10902,7 @@ namespace Gtk {
                public void add_selection_clipboard (Gdk.Clipboard clipboard);
                public void apply_tag_by_name (string name, Gtk.TextIter start, Gtk.TextIter end);
                public bool backspace (ref Gtk.TextIter iter, bool interactive, bool default_editable);
+               public void begin_irreversible_action ();
                public void copy_clipboard (Gdk.Clipboard clipboard);
                public unowned Gtk.TextChildAnchor create_child_anchor (Gtk.TextIter iter);
                public unowned Gtk.TextMark create_mark (string? mark_name, Gtk.TextIter where, bool 
left_gravity);
@@ -10912,8 +10913,12 @@ 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 void end_irreversible_action ();
                public void get_bounds (out Gtk.TextIter start, out Gtk.TextIter end);
+               public bool get_can_redo ();
+               public bool get_can_undo ();
                public int get_char_count ();
+               public bool get_enable_undo ();
                public void get_end_iter (out Gtk.TextIter iter);
                public bool get_has_selection ();
                public unowned Gtk.TextMark get_insert ();
@@ -10925,6 +10930,7 @@ namespace Gtk {
                public void get_iter_at_offset (out Gtk.TextIter iter, int char_offset);
                public int get_line_count ();
                public unowned Gtk.TextMark? get_mark (string name);
+               public uint get_max_undo_levels ();
                public bool get_modified ();
                public unowned Gtk.TextMark get_selection_bound ();
                public bool get_selection_bounds (out Gtk.TextIter start, out Gtk.TextIter end);
@@ -10949,12 +10955,17 @@ namespace Gtk {
                public void remove_selection_clipboard (Gdk.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 void set_enable_undo (bool enable_undo);
+               public void set_max_undo_levels (uint max_undo_levels);
                public void set_modified (bool setting);
                public void set_text (string text, int len = -1);
+               public bool can_redo { get; }
+               public bool can_undo { get; }
                [NoAccessorMethod]
                public Gdk.ContentFormats copy_target_list { owned get; }
                [NoAccessorMethod]
                public int cursor_position { get; }
+               public bool enable_undo { get; set; }
                public bool has_selection { get; }
                [NoAccessorMethod]
                public Gdk.ContentFormats paste_target_list { owned get; }
@@ -10979,7 +10990,11 @@ namespace Gtk {
                public virtual signal void modified_changed ();
                public virtual signal void paste_done (Gdk.Clipboard clipboard);
                [HasEmitter]
+               public virtual signal void redo ();
+               [HasEmitter]
                public virtual signal void remove_tag (Gtk.TextTag tag, Gtk.TextIter start, Gtk.TextIter end);
+               [HasEmitter]
+               public virtual signal void undo ();
        }
        [CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_text_cell_accessible_get_type 
()")]
        public class TextCellAccessible : Gtk.RendererCellAccessible, Atk.Action, Atk.Component, 
Atk.TableCell, Atk.Text {
@@ -12415,6 +12430,7 @@ namespace Gtk {
                public float get_alignment ();
                public string get_chars (int start_pos = 0, int end_pos = -1);
                public bool get_editable ();
+               public bool get_enable_undo ();
                public int get_max_width_chars ();
                public int get_position ();
                public abstract bool get_selection_bounds (out int start_pos, out int end_pos);
@@ -12426,6 +12442,7 @@ namespace Gtk {
                public abstract void select_region (int start_pos, int end_pos);
                public void set_alignment (float xalign);
                public void set_editable (bool is_editable);
+               public void set_enable_undo (bool enable_undo);
                public void set_max_width_chars (int n_chars);
                public void set_position (int position);
                public void set_text (string text);
@@ -12435,6 +12452,8 @@ namespace Gtk {
                [ConcreteAccessor]
                public abstract bool editable { get; set; }
                [ConcreteAccessor]
+               public abstract bool enable_undo { get; set; }
+               [ConcreteAccessor]
                public abstract int max_width_chars { get; set; }
                [NoAccessorMethod]
                public abstract int selection_bound { get; }
@@ -13117,6 +13136,7 @@ namespace Gtk {
                PROP_WIDTH_CHARS,
                PROP_MAX_WIDTH_CHARS,
                PROP_XALIGN,
+               PROP_ENABLE_UNDO,
                NUM_PROPERTIES
        }
        [CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_ENTRY_ICON_", type_id = 
"gtk_entry_icon_position_get_type ()")]
diff --git a/vapi/libpeas-1.0.vapi b/vapi/libpeas-1.0.vapi
index 194ee3d2b..75f659813 100644
--- a/vapi/libpeas-1.0.vapi
+++ b/vapi/libpeas-1.0.vapi
@@ -8,6 +8,8 @@ namespace Peas {
                public Engine ();
                public void add_search_path (string module_dir, string? data_dir);
                public Peas.Extension create_extension (Peas.PluginInfo info, GLib.Type extension_type, ...);
+               [Version (since = "1.24")]
+               public Peas.Extension create_extension_with_properties (Peas.PluginInfo info, GLib.Type 
extension_type, [CCode (array_length_cname = "n_properties", array_length_pos = 2.5, array_length_type = 
"guint")] string[] prop_names, [CCode (array_length_cname = "n_properties", array_length_pos = 2.5, 
array_length_type = "guint")] GLib.Value[] prop_values);
                public Peas.Extension create_extensionv (Peas.PluginInfo info, GLib.Type extension_type, 
[CCode (array_length_cname = "n_parameters", array_length_pos = 2.5, array_length_type = "guint")] 
GLib.Parameter[]? parameters);
                public void enable_loader (string loader_name);
                public void garbage_collect ();
@@ -62,6 +64,8 @@ namespace Peas {
                public unowned Peas.Extension get_extension (Peas.PluginInfo info);
                [CCode (cname = "peas_extension_set_newv", has_construct_function = false)]
                public ExtensionSet.newv (Peas.Engine? engine, GLib.Type exten_type, [CCode 
(array_length_cname = "n_parameters", array_length_pos = 2.5, array_length_type = "guint")] GLib.Parameter[] 
parameters);
+               [CCode (has_construct_function = false)]
+               public ExtensionSet.with_properties (Peas.Engine? engine, GLib.Type exten_type, [CCode 
(array_length_cname = "n_properties", array_length_pos = 2.5, array_length_type = "guint")] string[] 
prop_names, [CCode (array_length_cname = "n_properties", array_length_pos = 2.5, array_length_type = 
"guint")] GLib.Value[] prop_values);
                [NoAccessorMethod]
                public void* construct_properties { construct; }
                [NoAccessorMethod]
diff --git a/vapi/metadata/Peas-1.0.metadata b/vapi/metadata/Peas-1.0.metadata
index bcc44c9ac..958a0c553 100644
--- a/vapi/metadata/Peas-1.0.metadata
+++ b/vapi/metadata/Peas-1.0.metadata
@@ -1,5 +1,6 @@
 Engine
        .create_extension skip=false unowned=false
+       .create_extensionv skip=false
        .get_plugin_info unowned=true
        .load_plugin#method name="try_load_plugin"
        .unload_plugin#method name="try_unload_plugin"
@@ -7,4 +8,5 @@ ExtensionBase
        .get_plugin_info unowned=true
 ExtensionSet
        .new skip=false
+       .newv skip=false
 ExtensionSetForeachFunc.data closure=3


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