]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-3.0: Add GDK_NONE binding
authorLuca Bruno <lucabru@src.gnome.org>
Fri, 22 Jul 2011 07:20:31 +0000 (09:20 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Fri, 22 Jul 2011 07:20:31 +0000 (09:20 +0200)
Fixes bug 655094.

vapi/gdk-3.0.vapi
vapi/packages/gdk-3.0/gdk-3.0-custom.vala

index 4fbd8a7f8870ffdfa72567374df02e40ae4bc04b..9455e4a1ed4f587319670d7b35fbd305030405df 100644 (file)
@@ -15,7 +15,7 @@ namespace Gdk {
                [CCode (cheader_filename = "gdk/gdk.h")]
                public static bool owner_set_for_display (Gdk.Display display, Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
                [CCode (cheader_filename = "gdk/gdk.h")]
-               public static int property_get (Gdk.Window requestor, uchar[] data, Gdk.Atom prop_type, int prop_format);
+               public static int property_get (Gdk.Window requestor, uchar[] data, out Gdk.Atom prop_type, int prop_format);
                [CCode (cheader_filename = "gdk/gdk.h")]
                public static void send_notify (Gdk.Window requestor, Gdk.Atom selection, Gdk.Atom target, Gdk.Atom property, uint32 time_);
                [CCode (cheader_filename = "gdk/gdk.h")]
@@ -454,6 +454,8 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        [SimpleType]
        public struct Atom {
+               [CCode (cname = "GDK_NONE")]
+               public static Gdk.Atom NONE;
                public static Gdk.Atom intern (string atom_name, bool only_if_exists);
                public static Gdk.Atom intern_static_string (string atom_name);
                public string name ();
index 9a6fad208f5661b86c2606f7f8349a98ef732d1c..877e1a11ccda36ce58dc6fe18a1ce5310d901b76 100644 (file)
@@ -25,6 +25,13 @@ namespace Gdk {
        public const Atom SELECTION_SECONDARY;
        public const Atom SELECTION_CLIPBOARD;
 
+       [CCode (cheader_filename = "gdk/gdk.h")]
+       [SimpleType]
+       public struct Atom {
+               [CCode (cname="GDK_NONE")]
+               public static Atom NONE;
+       }
+
        [CCode (ref_function = "g_object_ref", unref_function = "g_object_unref")]
        public class Bitmap {
        }