[vala] gtk+-2.0, gtk+-3.0: Fix get_selection_bounds binding



commit 35a32b1e830072b4dbb4750ec84c72a94b0b7c3e
Author: Michal Hruby <michal mhr gmail com>
Date:   Thu Mar 10 22:39:46 2011 +0100

    gtk+-2.0, gtk+-3.0: Fix get_selection_bounds binding
    
    Fixes bug 644158.

 vapi/gtk+-2.0.vapi                       |    4 ++--
 vapi/gtk+-3.0.vapi                       |    4 ++--
 vapi/packages/gtk+-2.0/gtk+-2.0.metadata |    4 ++++
 vapi/packages/gtk+-3.0/gtk+-3.0.metadata |    4 ++++
 4 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi
index 9bf0d1c..a0116f5 100644
--- a/vapi/gtk+-2.0.vapi
+++ b/vapi/gtk+-2.0.vapi
@@ -2408,7 +2408,7 @@ namespace Gtk {
 		public uint get_mnemonic_keyval ();
 		public unowned Gtk.Widget get_mnemonic_widget ();
 		public bool get_selectable ();
-		public bool get_selection_bounds (int start, int end);
+		public bool get_selection_bounds (out int start, out int end);
 		public bool get_single_line_mode ();
 		public unowned string get_text ();
 		public bool get_track_visited_links ();
@@ -6009,7 +6009,7 @@ namespace Gtk {
 		public abstract unowned string get_chars (int start_pos, int end_pos);
 		public bool get_editable ();
 		public abstract int get_position ();
-		public abstract bool get_selection_bounds (int start_pos, int end_pos);
+		public abstract bool get_selection_bounds (out int start_pos, out int end_pos);
 		public void paste_clipboard ();
 		[CCode (vfunc_name = "set_selection_bounds")]
 		public abstract void select_region (int start_pos, int end_pos);
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 30c8d05..e64ad6f 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -2421,7 +2421,7 @@ namespace Gtk {
 		public uint get_mnemonic_keyval ();
 		public unowned Gtk.Widget get_mnemonic_widget ();
 		public bool get_selectable ();
-		public bool get_selection_bounds (int start, int end);
+		public bool get_selection_bounds (out int start, out int end);
 		public bool get_single_line_mode ();
 		public unowned string get_text ();
 		public bool get_track_visited_links ();
@@ -5832,7 +5832,7 @@ namespace Gtk {
 		public abstract unowned string get_chars (int start_pos, int end_pos);
 		public bool get_editable ();
 		public abstract int get_position ();
-		public abstract bool get_selection_bounds (int start_pos, int end_pos);
+		public abstract bool get_selection_bounds (out int start_pos, out int end_pos);
 		public void paste_clipboard ();
 		[CCode (vfunc_name = "set_selection_bounds")]
 		public abstract void select_region (int start_pos, int end_pos);
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
index 3f882bf..e5a9b76 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
@@ -161,6 +161,8 @@ GtkDialog.vbox type_name="VBox"
 GtkDialog.action_area type_name="HButtonBox"
 GtkEditable::delete_text has_emitter="1"
 GtkEditable::insert_text has_emitter="1"
+gtk_editable_get_selection_bounds.start_pos is_out="1"
+gtk_editable_get_selection_bounds.end_pos is_out="1"
 gtk_editable_select_region hidden="1"
 gtk_editable_set_selection_bounds hidden="1"
 gtk_entry_buffer_new.initial_chars type_name="uint8"
@@ -266,6 +268,8 @@ GtkItem::select has_emitter="1"
 GtkItem::toggle has_emitter="1"
 GtkLabel.text hidden="1"
 gtk_label_new.str nullable="1"
+gtk_label_get_selection_bounds.start is_out="1"
+gtk_label_get_selection_bounds.end is_out="1"
 GtkList::select_child has_emitter="1"
 GtkList::unselect_child has_emitter="1"
 GtkLayout.children type_arguments="Widget"
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
index 674354c..0cacc3d 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
@@ -175,6 +175,8 @@ GtkDialog.vbox type_name="VBox"
 GtkDialog.action_area type_name="HButtonBox"
 GtkEditable::delete_text has_emitter="1"
 GtkEditable::insert_text has_emitter="1"
+gtk_editable_get_selection_bounds.start_pos is_out="1"
+gtk_editable_get_selection_bounds.end_pos is_out="1"
 gtk_editable_select_region hidden="1"
 gtk_editable_set_selection_bounds hidden="1"
 gtk_entry_buffer_new.initial_chars type_name="uint8"
@@ -280,6 +282,8 @@ GtkItem::select has_emitter="1"
 GtkItem::toggle has_emitter="1"
 GtkLabel.text hidden="1"
 gtk_label_new.str nullable="1"
+gtk_label_get_selection_bounds.start is_out="1"
+gtk_label_get_selection_bounds.end is_out="1"
 GtkList::select_child has_emitter="1"
 GtkList::unselect_child has_emitter="1"
 GtkLayout.children type_arguments="Widget"



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