vala r2277 - in trunk: . vapi vapi/packages/gdk-2.0 vapigen



Author: juergbi
Date: Mon Jan  5 22:30:15 2009
New Revision: 2277
URL: http://svn.gnome.org/viewvc/vala?rev=2277&view=rev

Log:
2009-01-05  JÃrg Billeter  <j bitron ch>

	* vapigen/valagidlparser.vala:

	Do not accidentally generate stacked arrays

	* vapi/packages/gdk-2.0/:

	Fix gdk_keymap_get_entries_for_keyval, gdk_threads_add_idle, and
	gdk_window_remove_filter bindings, patch by Mark Lee,
	fixes bug 566679

	* vapi/gdk-2.0.vapi: regenerated


Modified:
   trunk/ChangeLog
   trunk/vapi/gdk-2.0.vapi
   trunk/vapi/packages/gdk-2.0/gdk-2.0.metadata
   trunk/vapigen/valagidlparser.vala

Modified: trunk/vapi/gdk-2.0.vapi
==============================================================================
--- trunk/vapi/gdk-2.0.vapi	(original)
+++ trunk/vapi/gdk-2.0.vapi	Mon Jan  5 22:30:15 2009
@@ -1,4 +1,4 @@
-/* gdk-2.0.vapi generated by lt-vapigen, do not modify. */
+/* gdk-2.0.vapi generated by vapigen, do not modify. */
 
 [CCode (cprefix = "Gdk", lower_case_cprefix = "gdk_")]
 namespace Gdk {
@@ -25,9 +25,9 @@
 		public weak Gdk.Visual visual;
 		public void* windowing_data;
 		public bool alloc_color (Gdk.Color color, bool writeable, bool best_match);
-		public int alloc_colors (Gdk.Color[][] colors, bool writeable, bool best_match, bool success);
+		public int alloc_colors (Gdk.Color[] colors, bool writeable, bool best_match, bool success);
 		public void change (int ncolors);
-		public void free_colors (Gdk.Color[][] colors);
+		public void free_colors (Gdk.Color[] colors);
 		public unowned Gdk.Screen get_screen ();
 		public static unowned Gdk.Colormap get_system ();
 		public unowned Gdk.Visual get_visual ();
@@ -287,8 +287,8 @@
 		public weak Gdk.Display display;
 		public static unowned Gdk.Keymap get_default ();
 		public Pango.Direction get_direction ();
-		public bool get_entries_for_keycode (uint hardware_keycode, out unowned Gdk.KeymapKey[]? keys, out unowned uint[]? keyvals, int n_entries);
-		public bool get_entries_for_keyval (uint keyval, Gdk.KeymapKey[] keys);
+		public bool get_entries_for_keycode (uint hardware_keycode, out unowned Gdk.KeymapKey[] keys, out unowned uint[] keyvals, int n_entries);
+		public bool get_entries_for_keyval (uint keyval, out unowned Gdk.KeymapKey[] keys);
 		public static unowned Gdk.Keymap get_for_display (Gdk.Display display);
 		public bool have_bidi_layouts ();
 		public uint lookup_key (Gdk.KeymapKey key);
@@ -498,7 +498,7 @@
 		public void process_updates (bool update_children);
 		public void raise ();
 		public void register_dnd ();
-		public void remove_filter (Gdk.FilterFunc function, void* data);
+		public void remove_filter (Gdk.FilterFunc function);
 		public void remove_redirection ();
 		public void reparent (Gdk.Window new_parent, int x, int y);
 		public void resize (int width, int height);
@@ -1796,7 +1796,7 @@
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public static int text_property_to_utf8_list_for_display (Gdk.Display display, Gdk.Atom encoding, int format, uchar[] text, int length, string list);
 	[CCode (cheader_filename = "gdk/gdk.h")]
-	public static uint threads_add_idle (GLib.SourceFunc function, void* data);
+	public static uint threads_add_idle (GLib.SourceFunc function);
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public static uint threads_add_idle_full (int priority, GLib.SourceFunc function, void* data, GLib.DestroyNotify notify);
 	[CCode (cheader_filename = "gdk/gdk.h")]

Modified: trunk/vapi/packages/gdk-2.0/gdk-2.0.metadata
==============================================================================
--- trunk/vapi/packages/gdk-2.0/gdk-2.0.metadata	(original)
+++ trunk/vapi/packages/gdk-2.0/gdk-2.0.metadata	Mon Jan  5 22:30:15 2009
@@ -36,8 +36,9 @@
 gdk_init.argv is_array="1" is_ref="1" array_length_pos="0.9"
 gdk_init_check.argc hidden="1"
 gdk_init_check.argv is_array="1" is_ref="1" array_length_pos="0.9"
-gdk_keymap_get_entries_for_keycode.keys is_array="1" is_out="1" nullable="1"
-gdk_keymap_get_entries_for_keycode.keyvals is_array="1" is_out="1" nullable="1"
+gdk_keymap_get_entries_for_keycode.keys is_array="1" is_out="1"
+gdk_keymap_get_entries_for_keycode.keyvals is_array="1" is_out="1"
+gdk_keymap_get_entries_for_keyval.keys is_array="1" is_out="1"
 GdkKeymapKey is_value_type="1"
 GdkNativeWindow is_value_type="1"
 GdkPangoAttr* is_value_type="1"
@@ -65,11 +66,13 @@
 GdkSpan is_value_type="1"
 gdk_spawn_on_screen.argv is_array="1" no_array_length="1"
 gdk_spawn_on_screen.envp is_array="1" no_array_length="1"
+gdk_threads_add_idle.data hidden="1"
 GdkTimeCoord is_value_type="1"
 GdkTrapezoid is_value_type="1"
 GdkVisualClass hidden="1"
 GdkWChar is_value_type="1"
 gdk_window_add_filter.data hidden="1"
+gdk_window_remove_filter.data hidden="1"
 gdk_window_at_pointer.win_x is_out="1"
 gdk_window_at_pointer.win_y is_out="1"
 gdk_window_constrain_size.new_width is_out="1"

Modified: trunk/vapigen/valagidlparser.vala
==============================================================================
--- trunk/vapigen/valagidlparser.vala	(original)
+++ trunk/vapigen/valagidlparser.vala	Mon Jan  5 22:30:15 2009
@@ -1536,10 +1536,12 @@
 			}
 
 			if (last_param != null && p.name == "n_" + last_param.name) {
-				// last_param is array, p is array length
-				last_param_type = new ArrayType (last_param_type, 1, last_param_type.source_reference);
-				last_param.parameter_type = last_param_type;
-				last_param.direction = ParameterDirection.IN;
+				if (!(last_param_type is ArrayType)) {
+					// last_param is array, p is array length
+					last_param_type = new ArrayType (last_param_type, 1, last_param_type.source_reference);
+					last_param.parameter_type = last_param_type;
+					last_param.direction = ParameterDirection.IN;
+				}
 
 				// hide array length param
 				hide_param = true;



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