don't remove first parameter of creation methods
authorJuerg Billeter <j@bitron.ch>
Thu, 13 Sep 2007 18:34:17 +0000 (18:34 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Thu, 13 Sep 2007 18:34:17 +0000 (18:34 +0000)
2007-09-13  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: don't remove first parameter of creation
  methods

* vapi/gdk-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
  vapi/gtksourceview-2.0.vala, vapi/libsoup-2.2.vala, vapi/pango.vala:
  regenerated

svn path=/trunk/; revision=601

ChangeLog
vapi/gdk-2.0.vala
vapi/gstreamer-0.10.vala
vapi/gtk+-2.0.vala
vapi/gtksourceview-2.0.vala
vapi/libsoup-2.2.vala
vapi/pango.vala
vapigen/valagidlparser.vala

index 653b4b9..e0e2143 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-09-13  Jürg Billeter  <j@bitron.ch>
+
+       * vapigen/valagidlparser.vala: don't remove first parameter of creation
+         methods
+
+       * vapi/gdk-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
+         vapi/gtksourceview-2.0.vala, vapi/libsoup-2.2.vala, vapi/pango.vala:
+         regenerated
+
 2007-09-10  Jürg Billeter  <j@bitron.ch>
 
        * doc/vala/structs.xml: document struct declarations
index 5fa6c53..a935628 100644 (file)
@@ -862,7 +862,7 @@ namespace Gdk {
                public Pixbuf.from_inline (int data_length, uchar[] data, bool copy_pixels) throws GLib.Error;
                [NoArrayLength]
                public Pixbuf.from_xpm_data (string[] data);
-               public Pixbuf.subpixbuf (int src_x, int src_y, int width, int height);
+               public Pixbuf.subpixbuf (Gdk.Pixbuf src_pixbuf, int src_x, int src_y, int width, int height);
                public void render_pixmap_and_mask (Gdk.Pixmap pixmap_return, Gdk.Bitmap mask_return, int alpha_threshold);
                public void render_pixmap_and_mask_for_colormap (Gdk.Colormap colormap, Gdk.Pixmap pixmap_return, Gdk.Bitmap mask_return, int alpha_threshold);
                public void render_threshold_alpha (Gdk.Bitmap bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold);
@@ -1086,7 +1086,7 @@ namespace Gdk {
                public void move (int x, int y);
                public void move_region (Gdk.Region region, int dx, int dy);
                public void move_resize (int x, int y, int width, int height);
-               public Window (out Gdk.WindowAttr attributes, int attributes_mask);
+               public Window (Gdk.Window parent, out Gdk.WindowAttr attributes, int attributes_mask);
                public weak GLib.List peek_children ();
                public static void process_all_updates ();
                public void process_updates (bool update_children);
index fdbe586..cd9ce8c 100644 (file)
@@ -586,8 +586,8 @@ namespace Gst {
                public static void id_unschedule (pointer id);
                public static Gst.ClockReturn id_wait (pointer id, int64 jitter);
                public static Gst.ClockReturn id_wait_async (pointer id, Gst.ClockCallback func, pointer user_data);
-               public Clock.periodic_id (uint64 start_time, uint64 interval);
-               public Clock.single_shot_id (uint64 time);
+               public Clock.periodic_id (Gst.Clock clock, uint64 start_time, uint64 interval);
+               public Clock.single_shot_id (Gst.Clock clock, uint64 time);
                public void set_calibration (uint64 internal, uint64 external, uint64 rate_num, uint64 rate_denom);
                public bool set_master (Gst.Clock master);
                public uint64 set_resolution (uint64 resolution);
@@ -754,7 +754,7 @@ namespace Gst {
                public static GLib.Type get_type ();
                public virtual bool get_writer_id (Gst.Object writer, int id);
                public Index ();
-               public Index.group ();
+               public Index.group (Gst.Index index);
                public void set_certainty (Gst.IndexCertainty certainty);
                public void set_filter (Gst.IndexFilter filter, pointer user_data);
                public void set_filter_full (Gst.IndexFilter filter, pointer user_data, GLib.DestroyNotify user_data_destroy);
index 2f462d5..81e7ae8 100644 (file)
@@ -1,4 +1,4 @@
-/* gtk+-2.0.vala generated by vapigen, do not modify. */
+/* gtk+-2.0.vala generated by lt-vapigen, do not modify. */
 
 [CCode (cprefix = "Gtk", lower_case_cprefix = "gtk_")]
 namespace Gtk {
@@ -908,6 +908,7 @@ namespace Gtk {
                public void set_flags (Gtk.WidgetFlags flags);
                [CCode (cname = "GTK_WIDGET_UNSET_FLAGS")]
                public void unset_flags (Gtk.WidgetFlags flags);
+               public Widget ();
                public bool activate ();
                public void add_accelerator (string accel_signal, Gtk.AccelGroup accel_group, uint accel_key, Gdk.ModifierType accel_mods, Gtk.AccelFlags accel_flags);
                public void add_events (int events);
@@ -3466,11 +3467,11 @@ namespace Gtk {
                public weak GLib.SList get_group ();
                public static GLib.Type get_type ();
                public RadioButton (GLib.SList group);
-               public RadioButton.from_widget ();
+               public RadioButton.from_widget (Gtk.RadioButton radio_group_member);
                public RadioButton.with_label (GLib.SList group, string label);
-               public RadioButton.with_label_from_widget (string label);
+               public RadioButton.with_label_from_widget (Gtk.RadioButton radio_group_member, string label);
                public RadioButton.with_mnemonic (GLib.SList group, string label);
-               public RadioButton.with_mnemonic_from_widget (string label);
+               public RadioButton.with_mnemonic_from_widget (Gtk.RadioButton radio_group_member, string label);
                public void set_group (GLib.SList group);
                public weak Gtk.RadioButton group { set; }
                public signal void group_changed ();
@@ -3480,11 +3481,11 @@ namespace Gtk {
                public weak GLib.SList get_group ();
                public static GLib.Type get_type ();
                public RadioMenuItem (GLib.SList group);
-               public RadioMenuItem.from_widget ();
+               public RadioMenuItem.from_widget (Gtk.RadioMenuItem group);
                public RadioMenuItem.with_label (GLib.SList group, string label);
-               public RadioMenuItem.with_label_from_widget (string label);
+               public RadioMenuItem.with_label_from_widget (Gtk.RadioMenuItem group, string label);
                public RadioMenuItem.with_mnemonic (GLib.SList group, string label);
-               public RadioMenuItem.with_mnemonic_from_widget (string label);
+               public RadioMenuItem.with_mnemonic_from_widget (Gtk.RadioMenuItem group, string label);
                public void set_group (GLib.SList group);
                public weak Gtk.RadioMenuItem group { set; }
                public signal void group_changed ();
@@ -3495,8 +3496,8 @@ namespace Gtk {
                public static GLib.Type get_type ();
                public RadioToolButton (GLib.SList group);
                public RadioToolButton.from_stock (GLib.SList group, string stock_id);
-               public RadioToolButton.from_widget ();
-               public RadioToolButton.with_stock_from_widget (string stock_id);
+               public RadioToolButton.from_widget (Gtk.RadioToolButton group);
+               public RadioToolButton.with_stock_from_widget (Gtk.RadioToolButton group, string stock_id);
                public void set_group (GLib.SList group);
                public weak Gtk.RadioToolButton group { set; }
        }
@@ -4744,7 +4745,7 @@ namespace Gtk {
                public virtual weak Gtk.Widget get_widget (string path);
                public void insert_action_group (Gtk.ActionGroup action_group, int pos);
                public UIManager ();
-               public UIManager.merge_id ();
+               public UIManager.merge_id (Gtk.UIManager self);
                public void remove_action_group (Gtk.ActionGroup action_group);
                public void remove_ui (uint merge_id);
                public void set_add_tearoffs (bool add_tearoffs);
index d08b250..e0dee6c 100644 (file)
@@ -1,4 +1,4 @@
-/* gtksourceview-2.0.vala generated by vapigen, do not modify. */
+/* gtksourceview-2.0.vala generated by lt-vapigen, do not modify. */
 
 [CCode (cprefix = "Gtk", lower_case_cprefix = "gtk_")]
 namespace Gtk {
index f9f8db3..596a53f 100644 (file)
@@ -542,7 +542,7 @@ namespace Soup {
                public static weak string encode (string part, string escape_extra);
                public bool equal (Soup.Uri uri2);
                public Uri (string uri_string);
-               public Uri.with_base (string uri_string);
+               public Uri.with_base (Soup.Uri @base, string uri_string);
                public weak string to_string (bool just_path);
                public bool uses_default_port ();
        }
index b3c5e3a..5f92c82 100644 (file)
@@ -214,6 +214,7 @@ namespace Pango {
        [CCode (cheader_filename = "pango/pango.h")]
        public class Language : GLib.Boxed {
                public weak string! to_string ();
+               public Language ();
                public static weak Pango.Language from_string (string language);
                public static weak Pango.Language get_default ();
                public weak string get_sample_string ();
index 9032f78..cf8b967 100644 (file)
@@ -1036,7 +1036,8 @@ public class Vala.GIdlParser : CodeVisitor {
                        
                        if (first) {
                                first = false;
-                               if (current_data_type != null &&
+                               if (!(m is CreationMethod) &&
+                                   current_data_type != null &&
                                    param.type.is_interface &&
                                    (param_node.name == "self" ||
                                     param.type.@interface.has_suffix (current_data_type.get_cname ()))) {