[vala] gtk+-2.0: add scope async to Gtk.Clipboard request/set_with methods



commit bf34a9ac41c6630d3bc7c0397ceff86296ba632d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Sep 7 13:45:32 2015 +0200

    gtk+-2.0: add scope async to Gtk.Clipboard request/set_with methods

 vapi/gtk+-2.0.vapi                       |   16 ++++++++--------
 vapi/packages/gtk+-2.0/gtk+-2.0.metadata |    2 ++
 2 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi
index 7f6ceef..34f64a6 100644
--- a/vapi/gtk+-2.0.vapi
+++ b/vapi/gtk+-2.0.vapi
@@ -1173,17 +1173,17 @@ 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_uris (Gtk.ClipboardURIReceivedFunc 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 ([CCode (scope = "async")] Gtk.ClipboardURIReceivedFunc callback);
                public void set_can_store (Gtk.TargetEntry[] targets);
                public void set_image (Gdk.Pixbuf pixbuf);
                public void set_text (string text, int len);
-               public bool set_with_data (Gtk.TargetEntry[] targets, Gtk.ClipboardGetFunc get_func, 
Gtk.ClipboardClearFunc clear_func);
-               public bool set_with_owner (Gtk.TargetEntry[] targets, Gtk.ClipboardGetFunc get_func, 
Gtk.ClipboardClearFunc clear_func, GLib.Object owner);
+               public bool set_with_data (Gtk.TargetEntry[] targets, [CCode (scope = "async")] 
Gtk.ClipboardGetFunc get_func, [CCode (scope = "async")] Gtk.ClipboardClearFunc clear_func);
+               public bool set_with_owner (Gtk.TargetEntry[] targets, [CCode (scope = "async")] 
Gtk.ClipboardGetFunc get_func, [CCode (scope = "async")] Gtk.ClipboardClearFunc clear_func, GLib.Object 
owner);
                public void store ();
                public Gtk.SelectionData? wait_for_contents (Gdk.Atom target);
                public Gdk.Pixbuf? wait_for_image ();
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
index caed76d..4c7b9ab 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
@@ -148,6 +148,8 @@ GtkCList::select_row has_emitter="1"
 GtkCList::undo_selection has_emitter="1"
 GtkCList::unselect_all has_emitter="1"
 GtkCList::unselect_row has_emitter="1"
+gtk_clipboard_request_*.callback scope="async"
+gtk_clipboard_set_with_*.*_func scope="async"
 gtk_clipboard_wait_for_contents transfer_ownership="1" nullable="1"
 gtk_clipboard_wait_for_text transfer_ownership="1" nullable="1"
 gtk_clipboard_wait_for_image transfer_ownership="1" nullable="1"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]