Commit 5efd2419 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

don't remove first parameter of creation methods

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
parent 7d39fb89
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
......
......@@ -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);
......
......@@ -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);
......
/* 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);
......
/* 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 {
......
......@@ -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 ();
}
......
......@@ -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 ();
......
......@@ -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 ()))) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment