[Vala] Minor modifications



Hello,

I think i've found some minor issues during testing vala, here is the
patch, which I've done:


Index: gtk+-2.0.vala
===================================================================
--- gtk+-2.0.vala       (revision 296)
+++ gtk+-2.0.vala       (working copy)
@@ -2499,7 +2499,7 @@
               public void prepend (ref Gtk.TreeIter iter);
               public bool remove (ref Gtk.TreeIter iter);
               public void reorder (int new_order);
-               public void @set (ref Gtk.TreeIter iter);
+               public void @set (ref Gtk.TreeIter iter, ...);
               public void set_column_types (int n_columns, GLib.Type types);
               public void set_valist (ref Gtk.TreeIter iter, pointer
var_args);
               public void set_value (ref Gtk.TreeIter iter, int
column, GLib.Value value);
Index: glib-2.0.vala
===================================================================
--- glib-2.0.vala       (revision 296)
+++ glib-2.0.vala       (working copy)
@@ -426,7 +426,7 @@
[ReferenceType (dup_function = "g_strdup", free_function = "g_free",
type_id = "G_TYPE_STRING")]
[CCode (cname = "char", const_cname = "const char", cheader_filename
= "stdlib.h,string.h,glib.h", type_id = "G_TYPE_STRING",
marshaller_type_name = "STRING", get_value_function =
"g_value_get_string", set_value_function = "g_value_set_string")]
public struct string {
-       [CCode (cname = "g_strstr")]
+       [CCode (cname = "strstr")]
       public weak string str (string! needle);
       [CCode (cname = "g_str_has_prefix")]
       public bool has_prefix (string! prefix);
@@ -495,6 +495,10 @@
       public int64 to_int64 (out string endptr = null, int _base = 0);
       [CCode (cname = "strlen")]
       public long size ();
+
+       [CCode (cname = "G_TYPE_STRING")]
+       public static GLib.Type get_type();
+
}

[Import ()]



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