vala r1131 - in trunk: . vapi vapi/packages/gtk+-2.0 vapigen



Author: juergbi
Date: Sun Mar 16 21:58:47 2008
New Revision: 1131
URL: http://svn.gnome.org/viewvc/vala?rev=1131&view=rev

Log:
2008-03-16  Juerg Billeter  <j bitron ch>

	* vapigen/valagidlparser.vala: support hidden="0" for parameters

	* vapi/packages/gtk+-2.0/: fix gtk_action_group_add_actions
	  bindings, fixes bug 522060

	* vapi/gtk+-2.0.vapi: regenerated


Modified:
   trunk/ChangeLog
   trunk/vapi/gtk+-2.0.vapi
   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 Mar 16 21:58:47 2008
@@ -1820,8 +1820,8 @@
 	public class ActionGroup : GLib.Object, Gtk.Buildable {
 		public void add_action (Gtk.Action action);
 		public void add_action_with_accel (Gtk.Action action, string accelerator);
-		public void add_actions (Gtk.ActionEntry[] entries);
-		public void add_actions_full (Gtk.ActionEntry[] entries, GLib.DestroyNotify destroy);
+		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);
 		public void add_radio_actions_full (Gtk.RadioActionEntry[] entries, int value, GLib.Callback on_change, GLib.DestroyNotify destroy);
 		public void add_toggle_actions (Gtk.ToggleActionEntry[] entries);

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 Mar 16 21:58:47 2008
@@ -9,6 +9,8 @@
 gtk_accelerator_parse.accelerator_mods is_out="1"
 GtkAction::activate has_emitter="1"
 GtkActionEntry is_value_type="1"
+gtk_action_group_add_actions.user_data hidden="0"
+gtk_action_group_add_actions_full.user_data hidden="0"
 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 Mar 16 21:58:47 2008
@@ -1298,6 +1298,7 @@
 			var p = new FormalParameter (param_name, param_type);
 
 			bool hide_param = false;
+			bool show_param = false;
 			bool set_array_length_pos = false;
 			double array_length_pos = 0;
 			var attributes = get_attributes ("%s.%s".printf (symbol, param_node.name));
@@ -1329,6 +1330,8 @@
 					} else if (nv[0] == "hidden") {
 						if (eval (nv[1]) == "1") {
 							hide_param = true;
+						} else if (eval (nv[1]) == "0") {
+							show_param = true;
 						}
 					} else if (nv[0] == "array_length_pos") {
 						set_array_length_pos = true;
@@ -1351,7 +1354,7 @@
 				hide_param = true;
 			}
 
-			if (!hide_param) {
+			if (show_param || !hide_param) {
 				m.add_parameter (p);
 				if (set_array_length_pos) {
 					p.carray_length_parameter_position = array_length_pos;



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