vala r1760 - in trunk: . vapi vapi/packages/gdk-2.0



Author: tvermeir
Date: Sun Aug 24 19:11:06 2008
New Revision: 1760
URL: http://svn.gnome.org/viewvc/vala?rev=1760&view=rev

Log:
	* vapi/packages/gdk-2.0/gdk-2.0-custom.vala:
	Add Bitmap class to prevent it from being a compact class
	* vapi/packages/gdk-2.0/gdk-2.0.metadata:
	transfer ownership on gdk_bitmap_create_from_data
	* vapi/gdk-2.0.vapi: Regenerated



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

Modified: trunk/vapi/gdk-2.0.vapi
==============================================================================
--- trunk/vapi/gdk-2.0.vapi	(original)
+++ trunk/vapi/gdk-2.0.vapi	Sun Aug 24 19:11:06 2008
@@ -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 {
@@ -530,11 +530,12 @@
 		ABOVE,
 		BELOW
 	}
-	[Compact]
-	[CCode (cheader_filename = "gdk/gdk.h")]
+	[CCode (ref_function = "g_object_ref", unref_function = "g_object_unref", cheader_filename = "gdk/gdk.h")]
 	public class Bitmap {
 		public weak GLib.Object parent_instance;
-		public static weak Gdk.Bitmap create_from_data (Gdk.Drawable drawable, string data, int width, int height);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
+		public Bitmap ();
+		public static Gdk.Bitmap create_from_data (Gdk.Drawable drawable, string data, int width, int height);
 	}
 	[Compact]
 	[CCode (cheader_filename = "gdk/gdk.h")]
@@ -558,6 +559,7 @@
 		public void get_clipbox (out Gdk.Rectangle rectangle);
 		public void get_rectangles (Gdk.Rectangle[] rectangles);
 		public void intersect (Gdk.Region source2);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Region ();
 		public void offset (int dx, int dy);
 		public bool point_in (int x, int y);
@@ -578,10 +580,15 @@
 		public uint ref_count;
 		public weak Gdk.Display get_display ();
 		public weak Gdk.Pixbuf get_image ();
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Cursor (Gdk.CursorType cursor_type);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Cursor.for_display (Gdk.Display display, Gdk.CursorType cursor_type);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Cursor.from_name (Gdk.Display display, string name);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Cursor.from_pixbuf (Gdk.Display display, Gdk.Pixbuf pixbuf, int x, int y);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Cursor.from_pixmap (Gdk.Pixmap source, Gdk.Pixmap mask, Gdk.Color fg, Gdk.Color bg, int x, int y);
 	}
 	[Compact]
@@ -597,6 +604,7 @@
 	}
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public class AppLaunchContext : GLib.AppLaunchContext {
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public AppLaunchContext ();
 		public void set_desktop (int desktop);
 		public void set_display (Gdk.Display display);
@@ -618,6 +626,7 @@
 		public weak Gdk.Screen get_screen ();
 		public static weak Gdk.Colormap get_system ();
 		public weak Gdk.Visual get_visual ();
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Colormap (Gdk.Visual visual, bool allocate);
 		public void query_color (ulong pixel, out Gdk.Color _result);
 	}
@@ -724,6 +733,7 @@
 		public Gdk.DragAction action;
 		public uint start_time;
 		public void* windowing_data;
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public DragContext ();
 	}
 	[CCode (cheader_filename = "gdk/gdk.h")]
@@ -784,7 +794,9 @@
 		public void copy (Gdk.GC src_gc);
 		public weak Gdk.Colormap get_colormap ();
 		public weak Gdk.Screen get_screen ();
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public GC (Gdk.Drawable drawable);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public GC.with_values (Gdk.Drawable drawable, Gdk.GCValues values, Gdk.GCValuesMask values_mask);
 		public void offset (int x_offset, int y_offset);
 		public void set_background (Gdk.Color color);
@@ -824,6 +836,7 @@
 		public void* windowing_data;
 		public weak Gdk.Colormap get_colormap ();
 		public uint get_pixel (int x, int y);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Image (Gdk.ImageType type, Gdk.Visual visual, int width, int height);
 		public void put_pixel (int x, int y, uint pixel);
 		public void set_colormap (Gdk.Colormap colormap);
@@ -845,7 +858,7 @@
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public class PangoRenderer : Pango.Renderer {
 		public static weak Pango.Renderer get_default (Gdk.Screen screen);
-		[CCode (type = "PangoRenderer*")]
+		[CCode (array_length_pos = 0, delegate_target_pos = 0, type = "PangoRenderer*")]
 		public PangoRenderer (Gdk.Screen screen);
 		public void set_drawable (Gdk.Drawable drawable);
 		public void set_gc (Gdk.GC gc);
@@ -866,6 +879,7 @@
 		public static weak Gdk.Pixmap foreign_new_for_screen (Gdk.Screen screen, Gdk.NativeWindow anid, int width, int height, int depth);
 		public static weak Gdk.Pixmap lookup (Gdk.NativeWindow anid);
 		public static weak Gdk.Pixmap lookup_for_display (Gdk.Display display, Gdk.NativeWindow anid);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Pixmap (Gdk.Drawable drawable, int width, int height, int depth);
 	}
 	[CCode (cheader_filename = "gdk/gdk.h")]
@@ -1007,6 +1021,7 @@
 		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);
+		[CCode (array_length_pos = 0, delegate_target_pos = 0)]
 		public Window (Gdk.Window parent, Gdk.WindowAttr attributes, int attributes_mask);
 		public weak GLib.List peek_children ();
 		public static void process_all_updates ();
@@ -1331,21 +1346,21 @@
 	public struct PangoAttrEmbossColor {
 		public weak Pango.Attribute attr;
 		public Pango.Color color;
-		[CCode (cname = "gdk_pango_attr_emboss_color_new")]
+		[CCode (cname = "gdk_pango_attr_emboss_color_new", array_length_pos = 0, delegate_target_pos = 0)]
 		public PangoAttrEmbossColor (Gdk.Color color);
 	}
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public struct PangoAttrEmbossed {
 		public weak Pango.Attribute attr;
 		public bool embossed;
-		[CCode (cname = "gdk_pango_attr_embossed_new")]
+		[CCode (cname = "gdk_pango_attr_embossed_new", array_length_pos = 0, delegate_target_pos = 0)]
 		public PangoAttrEmbossed (bool embossed);
 	}
 	[CCode (cheader_filename = "gdk/gdk.h")]
 	public struct PangoAttrStipple {
 		public weak Pango.Attribute attr;
 		public weak Gdk.Bitmap stipple;
-		[CCode (cname = "gdk_pango_attr_stipple_new")]
+		[CCode (cname = "gdk_pango_attr_stipple_new", array_length_pos = 0, delegate_target_pos = 0)]
 		public PangoAttrStipple (Gdk.Bitmap stipple);
 	}
 	[CCode (cheader_filename = "gdk/gdk.h")]
@@ -1360,7 +1375,7 @@
 		public int n_colors;
 		public weak GLib.SList info_list;
 		public void free ();
-		[CCode (cname = "gdk_rgb_cmap_new")]
+		[CCode (cname = "gdk_rgb_cmap_new", array_length_pos = 0, delegate_target_pos = 0)]
 		public RgbCmap (uint[] colors);
 	}
 	[CCode (cheader_filename = "gdk/gdk.h")]
@@ -1466,7 +1481,7 @@
 		public bool get_state (out Gdk.ModifierType state);
 		public uint get_time ();
 		public static void handler_set (Gdk.EventFunc func, void* data, GLib.DestroyNotify notify);
-		[CCode (cname = "gdk_event_new")]
+		[CCode (cname = "gdk_event_new", array_length_pos = 0, delegate_target_pos = 0)]
 		public Event (Gdk.EventType type);
 		public static Gdk.Event peek ();
 		public void put ();

Modified: trunk/vapi/packages/gdk-2.0/gdk-2.0-custom.vala
==============================================================================
--- trunk/vapi/packages/gdk-2.0/gdk-2.0-custom.vala	(original)
+++ trunk/vapi/packages/gdk-2.0/gdk-2.0-custom.vala	Sun Aug 24 19:11:06 2008
@@ -24,4 +24,8 @@
 	public const Atom SELECTION_PRIMARY;
 	public const Atom SELECTION_SECONDARY;
 	public const Atom SELECTION_CLIPBOARD;
+
+  [CCode (ref_function = "g_object_ref", unref_function = "g_object_unref")]
+  public class Bitmap {
+  }
 }

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	Sun Aug 24 19:11:06 2008
@@ -1,6 +1,7 @@
 Gdk cheader_filename="gdk/gdk.h"
 GdkAppLaunchContextClass hidden="1"
 GdkAtom is_value_type="1" simple_type="1"
+gdk_bitmap_create_from_data transfer_ownership="1"
 gdk_cairo_create transfer_ownership="1"
 GdkColor is_value_type="1"
 gdk_color_parse.color is_out="1"



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