[vala] gtk+-3.0: add scope async to Gtk.Clipboard request methods
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtk+-3.0: add scope async to Gtk.Clipboard request methods
- Date: Mon, 7 Sep 2015 10:07:28 +0000 (UTC)
commit 2bc6a43ae79420ce034a51c989ac732933cdc461
Author: Luca Bruno <lucabru src gnome org>
Date: Mon Sep 7 12:06:52 2015 +0200
gtk+-3.0: add scope async to Gtk.Clipboard request methods
vapi/gtk+-3.0.vapi | 12 ++++++------
vapi/packages/gtk+-3.0/gtk+-3.0.metadata | 5 +++++
vapigen/valagidlparser.vala | 2 ++
3 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 6f8a57c..8c63edc 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -1,4 +1,4 @@
-/* gtk+-3.0.vapi generated by vapigen, do not modify. */
+/* gtk+-3.0.vapi generated by lt-vapigen, do not modify. */
[CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "3.0", lower_case_cprefix = "gtk_")]
namespace Gtk {
@@ -1402,11 +1402,11 @@ namespace Gtk {
public unowned Gdk.Display get_display ();
public static unowned Gtk.Clipboard get_for_display (Gdk.Display display, Gdk.Atom selection);
public unowned GLib.Object get_owner ();
- public void request_contents (Gdk.Atom target, Gtk.ClipboardReceivedFunc callback);
- public void request_image (Gtk.ClipboardImageReceivedFunc callback);
- public void request_rich_text (Gtk.TextBuffer buffer, Gtk.ClipboardRichTextReceivedFunc
callback);
- public void request_targets (Gtk.ClipboardTargetsReceivedFunc callback);
- public void request_text (Gtk.ClipboardTextReceivedFunc callback);
+ public void request_contents (Gdk.Atom target, [CCode (scope = "async")]
Gtk.ClipboardReceivedFunc callback);
+ public void request_image ([CCode (scope = "async")] Gtk.ClipboardImageReceivedFunc callback);
+ public void request_rich_text (Gtk.TextBuffer buffer, [CCode (scope = "async")]
Gtk.ClipboardRichTextReceivedFunc callback);
+ public void request_targets ([CCode (scope = "async")] Gtk.ClipboardTargetsReceivedFunc
callback);
+ public void request_text ([CCode (scope = "async")] Gtk.ClipboardTextReceivedFunc callback);
public void request_uris (Gtk.ClipboardURIReceivedFunc callback);
public void set_can_store (Gtk.TargetEntry[]? targets);
public void set_image (Gdk.Pixbuf pixbuf);
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
index 144a26b..8b229e8 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
@@ -264,6 +264,11 @@ gtk_clipboard_wait_for_rich_text.length hidden="1"
gtk_clipboard_wait_for_uris is_array="1" no_array_length="1" array_null_terminated="1"
transfer_ownership="1" nullable="1"
gtk_clipboard_wait_for_targets.targets is_out="1" is_array="1" transfer_ownership="1"
gtk_clipboard_wait_for_targets.n_targets hidden="1"
+gtk_clipboard_request_contents.callback scope="async"
+gtk_clipboard_request_image.callback scope="async"
+gtk_clipboard_request_text.callback scope="async"
+gtk_clipboard_request_targets.callback scope="async"
+gtk_clipboard_request_rich_text.callback scope="async"
GtkClipboardTextReceivedFunc.text nullable="1"
GtkClipboardTargetsReceivedFunc.atoms is_array="1"
GtkClipboardTargetsReceivedFunc.n_atoms hidden="1"
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 0dc7fe7..f89885f 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -2502,6 +2502,8 @@ public class Vala.GIdlParser : CodeVisitor {
p.variable_type = param_type = parse_type_from_string (eval
(nv[1]), false);
} else if (nv[0] == "ctype") {
p.set_attribute_string ("CCode", "type", eval (nv[1]));
+ } else if (nv[0] == "scope") {
+ p.set_attribute_string ("CCode", "scope", eval (nv[1]));
} else if (nv[0] == "type_arguments") {
parse_type_arguments_from_string (param_type, eval (nv[1]));
} else if (nv[0] == "default_value") {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]