[vala] gdk-2.0: add many missing type_arguments



commit 8fbc82a7314ed46df0f9e2371f065ddfc0282c9a
Author: Evan Nemerson <evan coeus-group com>
Date:   Fri Apr 2 13:46:28 2010 -0700

    gdk-2.0: add many missing type_arguments
    
    Partially fixes bug 609875.

 vapi/gdk-2.0.vapi                      |   20 ++++++++++----------
 vapi/packages/gdk-2.0/gdk-2.0.metadata |   11 +++++++++++
 2 files changed, 21 insertions(+), 10 deletions(-)
---
diff --git a/vapi/gdk-2.0.vapi b/vapi/gdk-2.0.vapi
index 1974209..4b93e27 100644
--- a/vapi/gdk-2.0.vapi
+++ b/vapi/gdk-2.0.vapi
@@ -117,7 +117,7 @@ namespace Gdk {
 		public virtual unowned Gdk.Screen get_screen (int screen_num);
 		public unowned Gdk.Window get_window_at_pointer (int win_x, int win_y);
 		public void keyboard_ungrab (uint32 time_);
-		public unowned GLib.List list_devices ();
+		public unowned GLib.List<Gdk.Device> list_devices ();
 		public static unowned Gdk.Display open (string display_name);
 		public static unowned Gdk.Display open_default_libgtk_only ();
 		public Gdk.Event peek_event ();
@@ -144,7 +144,7 @@ namespace Gdk {
 	public class DisplayManager : GLib.Object {
 		public static unowned Gdk.DisplayManager @get ();
 		public unowned Gdk.Display get_default_display ();
-		public unowned GLib.SList list_displays ();
+		public GLib.SList<weak Gdk.Display> list_displays ();
 		public void set_default_display (Gdk.Display display);
 		public Gdk.Display default_display { get; set; }
 		public virtual signal void display_opened (Gdk.Display display);
@@ -467,14 +467,14 @@ namespace Gdk {
 		public bool get_setting (string name, GLib.Value value);
 		public unowned Gdk.Colormap get_system_colormap ();
 		public unowned Gdk.Visual get_system_visual ();
-		public unowned GLib.List get_toplevel_windows ();
+		public GLib.List<weak Gdk.Window> get_toplevel_windows ();
 		public int get_width ();
 		public int get_width_mm ();
-		public unowned GLib.List get_window_stack ();
+		public GLib.List<Gdk.Window>? get_window_stack ();
 		public static int height ();
 		public static int height_mm ();
 		public bool is_composited ();
-		public unowned GLib.List list_visuals ();
+		public GLib.List<weak Gdk.Visual> list_visuals ();
 		public unowned string make_display_name ();
 		public void set_default_colormap (Gdk.Colormap colormap);
 		public void set_font_options (Cairo.FontOptions options);
@@ -541,7 +541,7 @@ namespace Gdk {
 		public void freeze_updates ();
 		public void fullscreen ();
 		public void geometry_changed ();
-		public unowned GLib.List get_children ();
+		public GLib.List<weak Gdk.Window> get_children ();
 		public unowned Gdk.Cursor? get_cursor ();
 		public bool get_decorations (out Gdk.WMDecoration decorations);
 		public bool get_deskrelative_origin (out int x, out int y);
@@ -581,7 +581,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 unowned GLib.List peek_children ();
+		public unowned GLib.List<Gdk.Window> peek_children ();
 		public static void process_all_updates ();
 		public void process_updates (bool update_children);
 		public void raise ();
@@ -607,7 +607,7 @@ namespace Gdk {
 		public void set_geometry_hints (Gdk.Geometry geometry, Gdk.WindowHints geom_mask);
 		public void set_group (Gdk.Window leader);
 		public void set_icon (Gdk.Window icon_window, Gdk.Pixmap pixmap, Gdk.Bitmap mask);
-		public void set_icon_list (GLib.List pixbufs);
+		public void set_icon_list (GLib.List<Gdk.Pixbuf> pixbufs);
 		public void set_icon_name (string name);
 		public void set_keep_above (bool setting);
 		public void set_keep_below (bool setting);
@@ -1601,7 +1601,7 @@ namespace Gdk {
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public static void colors_free (Gdk.Colormap colormap, ulong pixels, int npixels, ulong planes);
 	[CCode (cheader_filename = "gdk/gdk.h")]
-	public static unowned GLib.List devices_list ();
+	public static unowned GLib.List<Gdk.Device> devices_list ();
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public static void drag_abort (Gdk.DragContext context, uint32 time_);
 	[CCode (cheader_filename = "gdk/gdk.h")]
@@ -1731,7 +1731,7 @@ namespace Gdk {
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public static uint keyval_to_upper (uint keyval);
 	[CCode (cheader_filename = "gdk/gdk.h")]
-	public static unowned GLib.List list_visuals ();
+	public static GLib.List<weak Gdk.Visual> list_visuals ();
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public static void notify_startup_complete ();
 	[CCode (cheader_filename = "gdk/gdk.h")]
diff --git a/vapi/packages/gdk-2.0/gdk-2.0.metadata b/vapi/packages/gdk-2.0/gdk-2.0.metadata
index afb7b4e..da1f70f 100644
--- a/vapi/packages/gdk-2.0/gdk-2.0.metadata
+++ b/vapi/packages/gdk-2.0/gdk-2.0.metadata
@@ -27,7 +27,9 @@ gdk_display_get_maximal_cursor_size.height is_out="1"
 gdk_display_get_pointer.x is_out="1"
 gdk_display_get_pointer.y is_out="1"
 gdk_display_get_pointer.mask is_out="1"
+gdk_display_list_devices type_arguments="Device"
 gdk_display_peek_event transfer_ownership="1"
+gdk_display_manager_list_displays type_arguments="unowned Display" transfer_ownership="1"
 gdk_drawable_draw_* hidden="1"
 gdk_drawable_get_size.width is_out="1"
 gdk_drawable_get_size.height is_out="1"
@@ -93,6 +95,9 @@ gdk_region_polygon transfer_ownership="1"
 gdk_rgb_find_color.color is_ref="1"
 GdkRgbCmap is_value_type="1"
 gdk_screen_get_monitor_geometry.dest is_out="1"
+gdk_screen_get_toplevel_windows type_arguments="unowned Window" transfer_ownership="1"
+gdk_screen_get_window_stack type_arguments="Window" transfer_ownership="1" nullable="1"
+gdk_screen_list_visuals type_arguments="unowned Visual" transfer_ownership="1"
 GdkSegment is_value_type="1"
 GdkSpan is_value_type="1"
 gdk_spawn_on_screen.working_directory nullable="1"
@@ -133,6 +138,7 @@ GdkWindowClass common_prefix="GDK_"
 GdkWindowObject hidden="1"
 GdkWindowObjectClass hidden="1"
 GdkWindowRedirect is_value_type="1"
+gdk_window_get_children type_arguments="unowned Window" transfer_ownership="1"
 gdk_window_get_cursor nullable="1"
 gdk_window_get_geometry.x is_out="1"
 gdk_window_get_geometry.y is_out="1"
@@ -151,5 +157,10 @@ gdk_window_get_root_origin.x is_out="1"
 gdk_window_get_root_origin.y is_out="1"
 gdk_window_invalidate_rect.rect nullable="1"
 gdk_window_new.parent nullable="1"
+gdk_window_peek_children type_arguments="Window"
 gdk_window_set_back_pixmap.pixmap nullable="1"
+gdk_window_set_icon_list.pixbufs type_arguments="Pixbuf"
 GdkXEvent is_value_type="1"
+
+gdk_devices_list type_arguments="Device"
+gdk_list_visuals type_arguments="unowned Visual" transfer_ownership="1"



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