[vala] pango: Fix LayoutLine.index_to_x and x_to_index bindings



commit 4d645f26281d36d58cc5f68fa107b287fdfdd22b
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Aug 31 20:43:20 2011 +0200

    pango: Fix LayoutLine.index_to_x and x_to_index bindings

 vapi/packages/pango/pango.metadata |    3 +++
 vapi/pango.vapi                    |    4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/vapi/packages/pango/pango.metadata b/vapi/packages/pango/pango.metadata
index 4ce3075..ad5d019 100644
--- a/vapi/packages/pango/pango.metadata
+++ b/vapi/packages/pango/pango.metadata
@@ -141,6 +141,9 @@ pango_layout_index_to_line_x.line is_out="1"
 pango_layout_index_to_line_x.x_pos is_out="1"
 pango_layout_get_font_description nullable="1"
 pango_layout_set_font_description.desc nullable="1"
+pango_layout_line_index_to_x.x_pos is_out="1"
+pango_layout_line_x_to_index.index_ is_out="1"
+pango_layout_line_x_to_index.trailing is_out="1"
 pango_layout_move_cursor_visually.new_index is_out="1"
 pango_layout_move_cursor_visually.new_trailing is_out="1"
 pango_layout_xy_to_index.index_ is_out="1"
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index cae9f72..b947030 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -404,8 +404,8 @@ namespace Pango {
 		public void get_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
 		public void get_pixel_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
 		public void get_x_ranges (int start_index, int end_index, int[] ranges);
-		public void index_to_x (int index_, bool trailing, int x_pos);
-		public bool x_to_index (int x_pos, int index_, int trailing);
+		public void index_to_x (int index_, bool trailing, out int x_pos);
+		public bool x_to_index (int x_pos, out int index_, out int trailing);
 	}
 	[CCode (cheader_filename = "pango/pango.h")]
 	[Compact]



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