[vala/0.10] pango: Fix PangoAnalysis binding



commit 0e48140ba4f39b11819fa7c41597aca813680642
Author: Jürg Billeter <j bitron ch>
Date:   Mon Oct 25 14:28:31 2010 +0200

    pango: Fix PangoAnalysis binding

 vapi/packages/pango/pango.metadata |    1 +
 vapi/pango.vapi                    |   27 +++++++++++++--------------
 2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/vapi/packages/pango/pango.metadata b/vapi/packages/pango/pango.metadata
index 38ec377..d271c2c 100644
--- a/vapi/packages/pango/pango.metadata
+++ b/vapi/packages/pango/pango.metadata
@@ -1,4 +1,5 @@
 Pango cheader_filename="pango/pango.h" gir_namespace="Pango" gir_version="1.0"
+PangoAnalysis is_value_type="1"
 pango_attribute_copy transfer_ownership="1"
 PangoAttrColor base_class="PangoAttribute" free_function="pango_attribute_destroy"
 PangoAttrColor.attr hidden="1"
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index 53f0359..784319b 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -21,19 +21,6 @@ namespace Pango {
 	}
 	[Compact]
 	[CCode (cheader_filename = "pango/pango.h")]
-	public class Analysis {
-		public weak GLib.SList extra_attrs;
-		public uchar flags;
-		public weak Pango.Font font;
-		public uchar gravity;
-		public weak Pango.EngineLang lang_engine;
-		public weak Pango.Language language;
-		public uchar level;
-		public uchar script;
-		public weak Pango.EngineShape shape_engine;
-	}
-	[Compact]
-	[CCode (cheader_filename = "pango/pango.h")]
 	public class AttrClass {
 		public weak GLib.Callback copy;
 		public weak GLib.Callback destroy;
@@ -311,7 +298,7 @@ namespace Pango {
 	[Compact]
 	[CCode (copy_function = "pango_item_copy", type_id = "PANGO_TYPE_ITEM", cheader_filename = "pango/pango.h")]
 	public class Item {
-		public weak Pango.Analysis analysis;
+		public Pango.Analysis analysis;
 		public int length;
 		public int num_chars;
 		public int offset;
@@ -492,6 +479,18 @@ namespace Pango {
 		[CCode (has_construct_function = false)]
 		public TabArray.with_positions (int size, bool positions_in_pixels, Pango.TabAlign first_alignment, ...);
 	}
+	[CCode (type_id = "PANGO_TYPE_ANALYSIS", cheader_filename = "pango/pango.h")]
+	public struct Analysis {
+		public weak Pango.EngineShape shape_engine;
+		public weak Pango.EngineLang lang_engine;
+		public weak Pango.Font font;
+		public uchar level;
+		public uchar gravity;
+		public uchar flags;
+		public uchar script;
+		public weak Pango.Language language;
+		public weak GLib.SList extra_attrs;
+	}
 	[CCode (type_id = "PANGO_TYPE_COLOR", cheader_filename = "pango/pango.h")]
 	public struct Color {
 		public uint16 red;



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