vala r1197 - in trunk: . vapi vapi/packages/gtk+-2.0 vapigen
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1197 - in trunk: . vapi vapi/packages/gtk+-2.0 vapigen
- Date: Sun, 13 Apr 2008 12:19:25 +0100 (BST)
Author: juergbi
Date: Sun Apr 13 12:19:25 2008
New Revision: 1197
URL: http://svn.gnome.org/viewvc/vala?rev=1197&view=rev
Log:
2008-04-13 Juerg Billeter <j bitron ch>
* vapigen/valagidlparser.vala: support type_name metadata attribute
for method parameters
* vapi/packages/gtk+-2.0/: fix gtk_action_group_add_radio_actions
binding, fixes bug 526871
* vapi/gtk+-2.0.vapi: regenerated
Modified:
trunk/ChangeLog
trunk/vapi/gtk+-2.0.vapi
trunk/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala
trunk/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
trunk/vapigen/valagidlparser.vala
Modified: trunk/vapi/gtk+-2.0.vapi
==============================================================================
--- trunk/vapi/gtk+-2.0.vapi (original)
+++ trunk/vapi/gtk+-2.0.vapi Sun Apr 13 12:19:25 2008
@@ -1822,8 +1822,8 @@
public void add_action_with_accel (Gtk.Action action, string accelerator);
public void add_actions (Gtk.ActionEntry[] entries, pointer user_data);
public void add_actions_full (Gtk.ActionEntry[] entries, pointer user_data, GLib.DestroyNotify destroy);
- public void add_radio_actions (Gtk.RadioActionEntry[] entries, int value, GLib.Callback on_change, pointer user_data);
- public void add_radio_actions_full (Gtk.RadioActionEntry[] entries, int value, GLib.Callback on_change, pointer user_data, GLib.DestroyNotify destroy);
+ public void add_radio_actions (Gtk.RadioActionEntry[] entries, int value, Gtk.RadioActionCallback on_change);
+ public void add_radio_actions_full (Gtk.RadioActionEntry[] entries, int value, Gtk.RadioActionCallback on_change, GLib.DestroyNotify destroy);
public void add_toggle_actions (Gtk.ToggleActionEntry[] entries, pointer user_data);
public void add_toggle_actions_full (Gtk.ToggleActionEntry[] entries, pointer user_data, GLib.DestroyNotify destroy);
public weak string get_name ();
@@ -6273,6 +6273,8 @@
[CCode (cheader_filename = "gtk/gtk.h")]
public delegate void ActionCallback (Gtk.Action action);
[CCode (cheader_filename = "gtk/gtk.h")]
+ public delegate void RadioActionCallback (Gtk.Action action, Gtk.Action current);
+ [CCode (cheader_filename = "gtk/gtk.h")]
public delegate void AboutDialogActivateLinkFunc (Gtk.AboutDialog about, string link_);
[CCode (cheader_filename = "gtk/gtk.h")]
public static delegate bool AccelGroupActivate (Gtk.AccelGroup accel_group, GLib.Object acceleratable, uint keyval, Gdk.ModifierType modifier);
Modified: trunk/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala
==============================================================================
--- trunk/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala (original)
+++ trunk/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala Sun Apr 13 12:19:25 2008
@@ -51,4 +51,6 @@
public static delegate void CallbackMarshal (Object object, pointer data, Arg[] args);
public delegate void ActionCallback (Action action);
+
+ public delegate void RadioActionCallback (Action action, Action current);
}
Modified: trunk/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
==============================================================================
--- trunk/vapi/packages/gtk+-2.0/gtk+-2.0.metadata (original)
+++ trunk/vapi/packages/gtk+-2.0/gtk+-2.0.metadata Sun Apr 13 12:19:25 2008
@@ -18,8 +18,8 @@
gtk_action_group_add_actions_full.user_data hidden="0"
gtk_action_group_add_toggle_actions.user_data hidden="0"
gtk_action_group_add_toggle_actions_full.user_data hidden="0"
-gtk_action_group_add_radio_actions.user_data hidden="0"
-gtk_action_group_add_radio_actions_full.user_data hidden="0"
+gtk_action_group_add_radio_actions.on_change type_name="RadioActionCallback"
+gtk_action_group_add_radio_actions_full.on_change type_name="RadioActionCallback"
GtkAdjustment::changed has_emitter="1"
GtkAdjustment::value_changed has_emitter="1"
GtkAllocation is_value_type="1"
Modified: trunk/vapigen/valagidlparser.vala
==============================================================================
--- trunk/vapigen/valagidlparser.vala (original)
+++ trunk/vapigen/valagidlparser.vala Sun Apr 13 12:19:25 2008
@@ -1344,6 +1344,8 @@
} else if (nv[0] == "array_length_pos") {
set_array_length_pos = true;
array_length_pos = eval (nv[1]).to_double ();
+ } else if (nv[0] == "type_name") {
+ param_type.unresolved_symbol = new UnresolvedSymbol (null, eval (nv[1]));
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]