summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2015-02-10 17:28:46 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2015-02-10 17:28:46 +0100
commite88063dd63c20b3c67002a51e9f02845c166797e (patch)
tree901cd3ab4f50df01c8da491b5ae8c59b23c613c7 /vapi
parent1a9de03c7f5d7015c4a08958d120c0b0fe11b3fa (diff)
downloadvala-e88063dd63c20b3c67002a51e9f02845c166797e.tar.gz
vapi: Update GIR-based bindings
Diffstat (limited to 'vapi')
-rw-r--r--vapi/atspi-2.vapi4
-rw-r--r--vapi/gdk-3.0.vapi12
-rw-r--r--vapi/gio-2.0.vapi23
-rw-r--r--vapi/json-glib-1.0.vapi2
-rw-r--r--vapi/metadata/Gio-2.0.metadata1
5 files changed, 38 insertions, 4 deletions
diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi
index 9e972112f..938bdc1e8 100644
--- a/vapi/atspi-2.vapi
+++ b/vapi/atspi-2.vapi
@@ -692,6 +692,10 @@ namespace Atspi {
RATING,
TIMER,
STATIC,
+ MATH_FRACTION,
+ MATH_ROOT,
+ SUBSCRIPT,
+ SUPERSCRIPT,
LAST_DEFINED;
public static string get_name (Atspi.Role role);
}
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index 1977d9964..c3f3e6b51 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -5073,14 +5073,21 @@ namespace Gdk {
protected GLContext ();
public static void clear_current ();
public static unowned Gdk.GLContext get_current ();
+ public bool get_debug_enabled ();
public unowned Gdk.Display get_display ();
+ public bool get_forward_compatible ();
public Gdk.GLProfile get_profile ();
+ public void get_required_version (out int? major, out int? minor);
+ public unowned Gdk.GLContext get_shared_context ();
public unowned Gdk.Window get_window ();
public void make_current ();
+ public bool realize () throws GLib.Error;
+ public void set_debug_enabled (bool enabled);
+ public void set_forward_compatible (bool compatible);
+ public void set_required_version (int major, int minor);
public Gdk.Display display { get; construct; }
public Gdk.GLProfile profile { get; construct; }
- [NoAccessorMethod]
- public Gdk.GLContext shared_context { owned get; construct; }
+ public Gdk.GLContext shared_context { get; construct; }
public Gdk.Window window { get; construct; }
}
[CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_keymap_get_type ()")]
@@ -5678,7 +5685,6 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_GL_PROFILE_", type_id = "gdk_gl_profile_get_type ()")]
public enum GLProfile {
DEFAULT,
- LEGACY,
@3_2_CORE
}
[CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_OWNERSHIP_", type_id = "gdk_grab_ownership_get_type ()")]
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 53d710035..ef8ced9ff 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1377,6 +1377,17 @@ namespace GLib {
public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.IOError;
public virtual async ssize_t skip_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
}
+ [CCode (cheader_filename = "gio/gio.h", type_id = "g_list_store_get_type ()")]
+ public class ListStore : GLib.Object, GLib.ListModel {
+ [CCode (has_construct_function = false)]
+ public ListStore (GLib.Type item_type);
+ public void append (void* item);
+ public void insert (uint position, void* item);
+ public void remove (uint position);
+ public void remove_all ();
+ [NoAccessorMethod]
+ public GLib.Type item_type { get; construct; }
+ }
[CCode (cheader_filename = "gio/gio.h", type_id = "g_memory_input_stream_get_type ()")]
public class MemoryInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.Seekable {
[CCode (has_construct_function = false, type = "GInputStream*")]
@@ -1809,6 +1820,8 @@ namespace GLib {
public GLib.SettingsSchemaKey get_key (string name);
public unowned string get_path ();
public bool has_key (string name);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public string[] list_children ();
public GLib.SettingsSchema @ref ();
public void unref ();
}
@@ -1817,6 +1830,7 @@ namespace GLib {
public class SettingsSchemaKey {
public GLib.Variant get_default_value ();
public unowned string get_description ();
+ public unowned string get_name ();
public GLib.Variant get_range ();
public unowned string get_summary ();
public unowned GLib.VariantType get_value_type ();
@@ -1842,6 +1856,7 @@ namespace GLib {
public SimpleAction (string name, GLib.VariantType? parameter_type);
public void set_enabled (bool enabled);
public void set_state (GLib.Variant value);
+ public void set_state_hint (GLib.Variant? state_hint);
[CCode (has_construct_function = false)]
public SimpleAction.stateful (string name, GLib.VariantType? parameter_type, GLib.Variant state);
public signal void activate (GLib.Variant? parameter);
@@ -2741,6 +2756,14 @@ namespace GLib {
public static GLib.Object new_valist (GLib.Type object_type, string first_property_name, va_list var_args, GLib.Cancellable? cancellable = null) throws GLib.Error;
public static GLib.Object newv (GLib.Type object_type, [CCode (array_length_cname = "n_parameters", array_length_pos = 1.5, array_length_type = "guint")] GLib.Parameter[] parameters, GLib.Cancellable? cancellable = null) throws GLib.Error;
}
+ [CCode (cheader_filename = "gio/gio.h", type_cname = "GListModelInterface", type_id = "g_list_model_get_type ()")]
+ public interface ListModel : GLib.Object {
+ public abstract GLib.Type get_item_type ();
+ public abstract uint get_n_items ();
+ public GLib.Object? get_object (uint position);
+ [HasEmitter]
+ public signal void items_changed (uint position, uint removed, uint added);
+ }
[CCode (cheader_filename = "gio/gio.h", type_id = "g_loadable_icon_get_type ()")]
public interface LoadableIcon : GLib.Icon, GLib.Object {
public abstract GLib.InputStream load (int size, out string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi
index 3afb12aec..8ddf59d28 100644
--- a/vapi/json-glib-1.0.vapi
+++ b/vapi/json-glib-1.0.vapi
@@ -42,7 +42,7 @@ namespace Json {
public unowned Json.Builder add_int_value (int64 value);
public unowned Json.Builder add_null_value ();
public unowned Json.Builder add_string_value (string value);
- public unowned Json.Builder add_value (Json.Node node);
+ public unowned Json.Builder add_value (owned Json.Node node);
public unowned Json.Builder begin_array ();
public unowned Json.Builder begin_object ();
public unowned Json.Builder end_array ();
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index c22dce9f1..0f707b7a4 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -355,6 +355,7 @@ DataInputStream
.read_line.length default=null
// Forward upstream
+*_autoptr skip
content_type_from_mime_type nullable
content_type_get_mime_type nullable
ActionGroup