summaryrefslogtreecommitdiff
path: root/vapi/metadata/Gio-2.0-custom.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-01-08 13:20:38 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-01-08 16:35:54 +0100
commit1a4c4d0c3fa5424701a009a184a6628ba1b9f3b9 (patch)
tree5ce65aa028eb8acb1beb96d37e5ff6a7706ad69f /vapi/metadata/Gio-2.0-custom.vala
parentc498bf05bf55f5ff7c0e0c903db4139f536488bb (diff)
downloadvala-1a4c4d0c3fa5424701a009a184a6628ba1b9f3b9.tar.gz
gio-2.0: Add CancellableSource ctor and update PollableSource ctors
Diffstat (limited to 'vapi/metadata/Gio-2.0-custom.vala')
-rw-r--r--vapi/metadata/Gio-2.0-custom.vala9
1 files changed, 5 insertions, 4 deletions
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 1909e6b82..0fe88c90d 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -20,6 +20,11 @@ namespace GLib {
public weak GLib.SimpleActionChangeStateCallback? change_state;
}
+ public class Cancellable : GLib.Object {
+ [Version (since = "2.28", deprecated_since = "vala-0.44", replacement = "CancellableSource")]
+ public GLib.CancellableSource source_new ();
+ }
+
[Compact]
[CCode (cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
public class CancellableSource : GLib.Source {
@@ -95,10 +100,6 @@ namespace GLib {
[Compact]
[CCode (cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
public class PollableSource : GLib.Source {
- [CCode (type = "GSource*")]
- public PollableSource (GLib.Object pollable_stream);
- [CCode (type = "GSource*")]
- public PollableSource.full (GLib.Object pollable_stream, GLib.Source? child_source, GLib.Cancellable? cancellable = null);
[CCode (cname = "g_source_set_callback")]
public void set_callback ([CCode (type = "GSourceFunc")] owned PollableSourceFunc func);
}