]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
fix g_rand*_int and g_rand*_double bindings, patch Ondrej Jirman, fixes
authorJuerg Billeter <j@bitron.ch>
Fri, 2 May 2008 19:31:06 +0000 (19:31 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 2 May 2008 19:31:06 +0000 (19:31 +0000)
2008-05-02  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: fix g_rand*_int and g_rand*_double bindings,
patch Ondrej Jirman, fixes bug 530207

svn path=/trunk/; revision=1333

ChangeLog
vapi/glib-2.0.vapi

index ae7f23a489991b45c2511501507b2be39e1055a7..cb377c51af2df88e2554f17e0a6569131ee2ce68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-02  Jürg Billeter  <j@bitron.ch>
+
+       * vapi/glib-2.0.vapi: fix g_rand*_int and g_rand*_double bindings,
+       patch Ondrej Jirman, fixes bug 530207
+
 2008-05-02  Jürg Billeter  <j@bitron.ch>
 
        * gobject-introspection/scanner.c: (g_igenerator_add_symbol):
index 210835615990419232982f9b76489be21f4860f6..2fa39e1d1088b33d2d366e1d97fdd79aff45e454 100644 (file)
@@ -1690,8 +1690,10 @@ namespace GLib {
                [NoArrayLength ()]
                public void set_seed_array (uint32[] seed, uint seed_length);
                public bool boolean ();
+               [CCode (cname = "g_rand_int")]
                public uint32 next_int ();
                public int32 int_range (int32 begin, int32 end);
+               [CCode (cname = "g_rand_double")]
                public double next_double ();
                public double double_range (double begin, double end);
        }
@@ -1699,8 +1701,10 @@ namespace GLib {
        public static class Random {
                public static void set_seed (uint32 seed);
                public static bool boolean ();
+               [CCode (cname = "g_random_int")]
                public static uint32 next_int ();
                public static int32 int_range (int32 begin, int32 end);
+               [CCode (cname = "g_random_double")]
                public static double next_double ();
                public static double double_range (double begin, double end);
        }