From: Alberto Fanjul Date: Tue, 29 Oct 2019 08:17:26 +0000 (+0100) Subject: gtksourceview-2.0: Fix iter parameter in SourceBuffer.backward/forward/... X-Git-Tag: 0.47.1~37 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fmerge-requests%2F86%2Fhead;p=thirdparty%2Fvala.git gtksourceview-2.0: Fix iter parameter in SourceBuffer.backward/forward/... --- diff --git a/vapi/gtksourceview-2.0.vapi b/vapi/gtksourceview-2.0.vapi index 1a6cd86ae..b71663096 100644 --- a/vapi/gtksourceview-2.0.vapi +++ b/vapi/gtksourceview-2.0.vapi @@ -5,12 +5,12 @@ namespace Gtk { public class SourceBuffer : Gtk.TextBuffer { [CCode (has_construct_function = false)] public SourceBuffer (Gtk.TextTagTable? table); - public bool backward_iter_to_source_mark (Gtk.TextIter iter, string category); + public bool backward_iter_to_source_mark (ref Gtk.TextIter iter, string category); public void begin_not_undoable_action (); public unowned Gtk.SourceMark create_source_mark (string name, string category, Gtk.TextIter where); public void end_not_undoable_action (); public void ensure_highlight (Gtk.TextIter start, Gtk.TextIter end); - public bool forward_iter_to_source_mark (Gtk.TextIter iter, string category); + public bool forward_iter_to_source_mark (ref Gtk.TextIter iter, string category); public unowned string get_context_classes_at_iter (Gtk.TextIter iter); public bool get_highlight_matching_brackets (); public bool get_highlight_syntax (); @@ -20,8 +20,8 @@ namespace Gtk { public unowned GLib.SList get_source_marks_at_line (int line, string category); public unowned Gtk.SourceStyleScheme get_style_scheme (); public unowned Gtk.SourceUndoManager get_undo_manager (); - public bool iter_backward_to_context_class_toggle (Gtk.TextIter iter, string context_class); - public bool iter_forward_to_context_class_toggle (Gtk.TextIter iter, string context_class); + public bool iter_backward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class); + public bool iter_forward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class); public bool iter_has_context_class (Gtk.TextIter iter, string context_class); public void remove_source_marks (Gtk.TextIter start, Gtk.TextIter end, string category); public void set_highlight_matching_brackets (bool highlight); diff --git a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata index e7ae2354a..85dcd10de 100644 --- a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata +++ b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata @@ -10,6 +10,10 @@ gtk_source_iter_forward_search.limit nullable="1" GtkSourceBuffer::redo has_emitter="1" GtkSourceBuffer::undo has_emitter="1" gtk_source_buffer_new.table nullable="1" +gtk_source_buffer_backward_iter_to_source_mark.iter is_ref="1" +gtk_source_buffer_forward_iter_to_source_mark.iter is_ref="1" +gtk_source_buffer_iter_backward_to_context_class_toggle.iter is_ref="1" +gtk_source_buffer_iter_forward_to_context_class_toggle.iter is_ref="1" GtkSourceCompletion::hide has_emitter="1" GtkSourceCompletion::show has_emitter="1" gtk_source_completion_create_context.position nullable="1" default_value="null"