+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
+
2009-01-05 Jürg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/:
-/* 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 {
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 ();
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);
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);
[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")]
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"
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"
}
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;