]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-2.0: Add GDK_NONE binding
authorJim Nelson <jim@yorba.org>
Wed, 16 Jun 2010 20:02:41 +0000 (22:02 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 16 Jun 2010 20:02:41 +0000 (22:02 +0200)
Fixes bug 621318.

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

index d5f4f16730984e9add375a93bcb35aa5568b1d95..feaf6d432a131c78225006ebe1ce7871abbabb7a 100644 (file)
@@ -643,6 +643,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 unowned string name ();
@@ -1809,7 +1811,7 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static bool selection_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 selection_property_get (Gdk.Window requestor, uchar[] data, Gdk.Atom prop_type, int prop_format);
+       public static int selection_property_get (Gdk.Window requestor, uchar[] data, out Gdk.Atom prop_type, int prop_format);
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static void selection_send_notify (Gdk.NativeWindow requestor, Gdk.Atom selection, Gdk.Atom target, Gdk.Atom property, uint32 time_);
        [CCode (cheader_filename = "gdk/gdk.h")]
@@ -1835,9 +1837,9 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static bool spawn_on_screen_with_pipes (Gdk.Screen screen, string? working_directory, [CCode (array_length = false)] string[] argv, [CCode (array_length = false)] string[] envp, GLib.SpawnFlags flags, GLib.SpawnChildSetupFunc? child_setup, out int child_pid, out int standard_input, out int standard_output, out int standard_error) throws GLib.Error;
        [CCode (cheader_filename = "gdk/gdk.h")]
-       public static int string_to_compound_text (string str, Gdk.Atom encoding, int format, uchar[] ctext, int length);
+       public static int string_to_compound_text (string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
        [CCode (cheader_filename = "gdk/gdk.h")]
-       public static int string_to_compound_text_for_display (Gdk.Display display, string str, Gdk.Atom encoding, int format, uchar[] ctext, int length);
+       public static int string_to_compound_text_for_display (Gdk.Display display, string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static void test_render_sync (Gdk.Window window);
        [CCode (cheader_filename = "gdk/gdk.h")]
@@ -1875,9 +1877,9 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static uint unicode_to_keyval (uint32 wc);
        [CCode (cheader_filename = "gdk/gdk.h")]
-       public static bool utf8_to_compound_text (string str, Gdk.Atom encoding, int format, uchar[] ctext, int length);
+       public static bool utf8_to_compound_text (string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
        [CCode (cheader_filename = "gdk/gdk.h")]
-       public static bool utf8_to_compound_text_for_display (Gdk.Display display, string str, Gdk.Atom encoding, int format, uchar[] ctext, int length);
+       public static bool utf8_to_compound_text_for_display (Gdk.Display display, string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static unowned string utf8_to_string_target (string str);
 }
index 9a34e359084b3eb5b620d89a11fa9b2f1e750ffb..a55ba7f75ddde5c123c1267b20eea2168f954943 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 {
        }