]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Feb 2015 16:28:46 +0000 (17:28 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Feb 2015 16:28:46 +0000 (17:28 +0100)
vapi/atspi-2.vapi
vapi/gdk-3.0.vapi
vapi/gio-2.0.vapi
vapi/json-glib-1.0.vapi
vapi/metadata/Gio-2.0.metadata

index 9e972112f9e44fc4ffcdbd6d40885ad81efe9ea9..938bdc1e81756156d6d0ffac9d4e1cda16672cbf 100644 (file)
@@ -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);
        }
index 1977d9964ac555e60891bf0ea22379ac5c614c7e..c3f3e6b518f1d38b34e14497e71dc3b9909b0455 100644 (file)
@@ -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 ()")]
index 53d710035ae3b02255a6c6c12b59ef44f7d206e5..ef8ced9ff9bebf2ec1dbb0f9963f63bba0f44cf9 100644 (file)
@@ -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;
index 3afb12aec11726777ccdee50f12e365098c758b2..8ddf59d28a77da10d33c21c13681772beb5cc00f 100644 (file)
@@ -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 ();
index c22dce9f16ac101c22749eeeca52a2c6a7dd7733..0f707b7a414cf3e14bd67cd73040ff5ad740d179 100644 (file)
@@ -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