summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-08-21 10:50:42 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-08-21 10:51:49 +0200
commit1878c4fe58c751a1e99afc192361512407d828d8 (patch)
treebd1df42b13167ab68584b6e7bdcd8e1ceb64776f
parent917d457e7d9d8be7af4160c094b2a26b9987bcff (diff)
downloadvala-1878c4fe58c751a1e99afc192361512407d828d8.tar.gz
vapi: Update GIR-based bindings
-rw-r--r--vapi/gstreamer-1.0.vapi21
-rw-r--r--vapi/gtk+-4.0.vapi39
-rw-r--r--vapi/metadata/Gst-1.0.metadata6
3 files changed, 39 insertions, 27 deletions
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 92e3c897f..79abbb526 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1126,6 +1126,7 @@ namespace Gst {
[CCode (cname = "gst_device_provider_class_add_static_metadata")]
public class void add_static_metadata (string key, owned string value);
public bool can_monitor ();
+ public class unowned string class_get_metadata (string key);
public void device_add (Gst.Device device);
public void device_remove (Gst.Device device);
public Gst.Bus get_bus ();
@@ -1134,8 +1135,8 @@ namespace Gst {
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.6")]
public string[] get_hidden_providers ();
- [CCode (cname = "gst_device_provider_class_get_metadata")]
- public class unowned string get_metadata (string key);
+ [Version (since = "1.14")]
+ public unowned string get_metadata (string key);
[Version (since = "1.6")]
public void hide_provider (string name);
public static bool register (Gst.Plugin? plugin, string name, uint rank, GLib.Type type);
@@ -1219,6 +1220,9 @@ namespace Gst {
[Version (since = "1.10")]
public void call_async (owned Gst.ElementCallAsyncFunc func);
public virtual Gst.StateChangeReturn change_state (Gst.StateChange transition);
+ public class unowned string class_get_metadata (string key);
+ public class unowned Gst.PadTemplate? class_get_pad_template (string name);
+ public class unowned GLib.List<Gst.PadTemplate> class_get_pad_template_list ();
public Gst.StateChangeReturn continue_state (Gst.StateChangeReturn ret);
public void create_all_pads ();
public Gst.ClockTime get_base_time ();
@@ -1233,12 +1237,12 @@ namespace Gst {
[Version (since = "1.8")]
public GLib.List<Gst.Context> get_contexts ();
public unowned Gst.ElementFactory get_factory ();
- [CCode (cname = "gst_element_class_get_metadata")]
- public class unowned string get_metadata (string key);
- [CCode (cname = "gst_element_class_get_pad_template")]
- public class unowned Gst.PadTemplate? get_pad_template (string name);
- [CCode (cname = "gst_element_class_get_pad_template_list")]
- public class unowned GLib.List<Gst.PadTemplate> get_pad_template_list ();
+ [Version (since = "1.14")]
+ public unowned string get_metadata (string key);
+ [Version (since = "1.14")]
+ public unowned Gst.PadTemplate? get_pad_template (string name);
+ [Version (since = "1.14")]
+ public unowned GLib.List<Gst.PadTemplate> get_pad_template_list ();
public Gst.Pad? get_request_pad (string name);
public Gst.ClockTime get_start_time ();
public virtual Gst.StateChangeReturn get_state (out Gst.State state, out Gst.State pending, Gst.ClockTime timeout);
@@ -3474,7 +3478,6 @@ namespace Gst {
PLAYING
}
[CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STATE_CHANGE_", type_id = "gst_state_change_get_type ()")]
- [Flags]
public enum StateChange {
NULL_TO_READY,
READY_TO_PAUSED,
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi
index 7f0eb451b..1d9891508 100644
--- a/vapi/gtk+-4.0.vapi
+++ b/vapi/gtk+-4.0.vapi
@@ -4628,6 +4628,8 @@ namespace Gdk {
public void error_trap_pop_ignored ();
[Version (since = "3.0")]
public void error_trap_push ();
+ [Version (since = "3.16")]
+ public static bool get_glx_version (Gdk.Display display, out int major, out int minor);
[Version (since = "2.12")]
public unowned string get_startup_notification_id ();
[Version (since = "2.8")]
@@ -4660,6 +4662,12 @@ namespace Gdk {
[CCode (has_construct_function = false)]
protected DragContext ();
}
+ [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_gl_context_get_type ()")]
+ [GIR (name = "X11GLContext")]
+ public class GLContext : Gdk.GLContext {
+ [CCode (has_construct_function = false)]
+ protected GLContext ();
+ }
[CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_keymap_get_type ()")]
[GIR (name = "X11Keymap")]
public class Keymap : Gdk.Keymap {
@@ -4670,6 +4678,13 @@ namespace Gdk {
[Version (since = "3.6")]
public bool key_is_modifier (uint keycode);
}
+ [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_monitor_get_type ()")]
+ [GIR (name = "X11Monitor")]
+ public class Monitor : Gdk.Monitor {
+ [CCode (has_construct_function = false)]
+ protected Monitor ();
+ public static X.ID get_output (Gdk.Monitor monitor);
+ }
[CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_screen_get_type ()")]
[GIR (name = "X11Screen")]
public class Screen : Gdk.Screen {
@@ -5706,8 +5721,6 @@ namespace Gdk {
[Version (since = "2.10")]
public double get_resolution ();
[Version (since = "2.2")]
- public unowned Gdk.Window get_root_window ();
- [Version (since = "2.2")]
public bool get_setting (string name, GLib.Value value);
[Version (since = "2.2")]
public GLib.List<weak Gdk.Window> get_toplevel_windows ();
@@ -5876,9 +5889,6 @@ namespace Gdk {
public bool has_native ();
public void hide ();
public void iconify ();
- [CCode (has_construct_function = false)]
- [Version (since = "3.90")]
- public Window.input (Gdk.Window parent, int event_mask, Gdk.Rectangle position);
[Version (since = "2.10")]
public void input_shape_combine_region (Cairo.Region shape_region, int offset_x, int offset_y);
public void invalidate_maybe_recurse (Cairo.Region region, Gdk.WindowChildFunc? child_func);
@@ -6776,8 +6786,6 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h")]
public static void flush ();
[CCode (cheader_filename = "gdk/gdk.h")]
- public static unowned Gdk.Window get_default_root_window ();
- [CCode (cheader_filename = "gdk/gdk.h")]
[Version (since = "2.2")]
public static unowned string? get_display_arg_name ();
[CCode (cheader_filename = "gdk/gdk.h")]
@@ -7025,7 +7033,7 @@ namespace Gsk {
public float dy;
public float radius;
}
- [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_BLEND_MODE_", has_type_id = false)]
+ [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_BLEND_MODE_", type_id = "gsk_blend_mode_get_type ()")]
[Version (since = "3.90")]
public enum BlendMode {
DEFAULT,
@@ -7045,14 +7053,14 @@ namespace Gsk {
SATURATION,
LUMINOSITY
}
- [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_CORNER_", has_type_id = false)]
+ [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_CORNER_", type_id = "gsk_corner_get_type ()")]
public enum Corner {
TOP_LEFT,
TOP_RIGHT,
BOTTOM_RIGHT,
BOTTOM_LEFT
}
- [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_", has_type_id = false)]
+ [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_", type_id = "gsk_render_node_type_get_type ()")]
[Version (since = "3.90")]
public enum RenderNodeType {
NOT_A_RENDER_NODE,
@@ -7075,7 +7083,7 @@ namespace Gsk {
BLEND_NODE,
CROSS_FADE_NODE
}
- [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_SCALING_FILTER_", has_type_id = false)]
+ [CCode (cheader_filename = "gsk/gsk.h", cprefix = "GSK_SCALING_FILTER_", type_id = "gsk_scaling_filter_get_type ()")]
[Version (since = "3.90")]
public enum ScalingFilter {
LINEAR,
@@ -9046,6 +9054,8 @@ namespace Gtk {
public string secondary_icon_tooltip_text { owned get; set; }
[NoAccessorMethod]
public int selection_bound { get; }
+ [NoAccessorMethod]
+ public bool show_emoji_icon { get; set; }
public Pango.TabArray tabs { get; set; }
public string text { get; set; }
[Version (since = "2.14")]
@@ -14557,7 +14567,6 @@ namespace Gtk {
public void set_realized (bool realized);
[Version (since = "2.18")]
public void set_receives_default (bool receives_default);
- public void set_redraw_on_allocate (bool redraw_on_allocate);
public void set_sensitive (bool sensitive);
public void set_size_request (int width, int height);
[Version (since = "3.0")]
@@ -17417,12 +17426,6 @@ namespace Gtk {
[CCode (cheader_filename = "gtk/gtk.h")]
public static void main_quit ();
[CCode (cheader_filename = "gtk/gtk.h")]
- [Version (since = "2.10")]
- public static Gtk.PageSetup print_run_page_setup_dialog (Gtk.Window? parent, Gtk.PageSetup? page_setup, Gtk.PrintSettings settings);
- [CCode (cheader_filename = "gtk/gtk.h")]
- [Version (since = "2.10")]
- public static void print_run_page_setup_dialog_async (Gtk.Window? parent, Gtk.PageSetup? page_setup, Gtk.PrintSettings settings, [CCode (scope = "async")] Gtk.PageSetupDoneFunc done_cb);
- [CCode (cheader_filename = "gtk/gtk.h")]
public static void propagate_event (Gtk.Widget widget, Gdk.Event event);
[CCode (cheader_filename = "gtk/gtk.h")]
[Version (since = "2.14")]
diff --git a/vapi/metadata/Gst-1.0.metadata b/vapi/metadata/Gst-1.0.metadata
index dbafd3687..c34eeb6c6 100644
--- a/vapi/metadata/Gst-1.0.metadata
+++ b/vapi/metadata/Gst-1.0.metadata
@@ -237,6 +237,12 @@ ControlSource
.get_value_array#field name="get_value_array_func"
.control_source_get_value name="get_value"
.control_source_get_value_array name="get_value_array"
+DeviceProviderClass
+ .get_metadata#method name="class_get_metadata"
+ElementClass
+ .get_metadata#method name="class_get_metadata"
+ .get_pad_template#method name="class_get_pad_template"
+ .get_pad_template_list#method name="class_get_pad_template_list"
// Backwards compatibility
Structure.new_from_string skip