[vala] clutter-1.0: avoid deprecation warning for BinLayout constructor



commit 04df63ac9e0653ad3579a5e2bc135ca9a2a06fa4
Author: Evan Nemerson <evan coeus-group com>
Date:   Thu Jan 10 01:50:13 2013 -0800

    clutter-1.0: avoid deprecation warning for BinLayout constructor

 vapi/clutter-1.0.vapi              |    6 +++++-
 vapi/metadata/Clutter-1.0.metadata |    5 +++++
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/vapi/clutter-1.0.vapi b/vapi/clutter-1.0.vapi
index 90d500e..38c6aec 100644
--- a/vapi/clutter-1.0.vapi
+++ b/vapi/clutter-1.0.vapi
@@ -5442,7 +5442,7 @@ namespace Clutter {
 	[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_bin_layout_get_type ()")]
 	public class BinLayout : Clutter.LayoutManager {
 		[CCode (has_construct_function = false, type = "ClutterLayoutManager*")]
-		public BinLayout (Clutter.BinAlignment x_align, Clutter.BinAlignment y_align);
+		public BinLayout (Clutter.BinAlignment x_align = Clutter.BinAlignment.START, Clutter.BinAlignment y_align = Clutter.BinAlignment.START);
 		[Deprecated (since = "1.12")]
 		public void add (Clutter.Actor child, Clutter.BinAlignment x_align, Clutter.BinAlignment y_align);
 		[Deprecated (since = "1.12")]
@@ -7560,10 +7560,14 @@ namespace Clutter {
 	[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_BIN_ALIGNMENT_", type_id = "clutter_bin_alignment_get_type ()")]
 	[Deprecated (since = "1.12")]
 	public enum BinAlignment {
+		[Deprecated]
 		FIXED,
+		[Deprecated]
 		FILL,
 		START,
+		[Deprecated]
 		END,
+		[Deprecated]
 		CENTER
 	}
 	[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_BIND_", type_id = "clutter_bind_coordinate_get_type ()")]
diff --git a/vapi/metadata/Clutter-1.0.metadata b/vapi/metadata/Clutter-1.0.metadata
index 0454219..2375348 100644
--- a/vapi/metadata/Clutter-1.0.metadata
+++ b/vapi/metadata/Clutter-1.0.metadata
@@ -203,5 +203,10 @@ Rect.alloc symbol_type="function"
 Size.alloc symbol_type="function"
 Vertex.alloc symbol_type="function"
 
+BinAlignment deprecated=false
+BinAlignment.* deprecated
+BinAlignment.start deprecated=false
+BinLayout.new.*_align default=Clutter.BinAlignment.START
+
 // Possibly keep
 KEY_* skip=false name="KEY_(.+)" parent="Clutter.Key"



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