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 ae7f23a..cb377c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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):
 
        Do not add duplicate symbols,
index 2108356..2fa39e1 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);
        }