From: Michal Hruby Date: Thu, 10 Mar 2011 21:39:46 +0000 (+0100) Subject: gtk+-2.0: Fix get_selection_bounds binding X-Git-Tag: 0.10.4~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae6a0e863f1193fe173302bfd10e9545d34bfc50;p=thirdparty%2Fvala.git gtk+-2.0: Fix get_selection_bounds binding Fixes bug 644158. --- diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi index 191388b5f..1b3e92613 100644 --- a/vapi/gtk+-2.0.vapi +++ b/vapi/gtk+-2.0.vapi @@ -2187,7 +2187,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 (); @@ -5788,7 +5788,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 f4ede2c53..215630cef 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" GtkEntryCompletion::insert_prefix has_emitter="1" @@ -262,6 +264,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"