[latexila] Vala 0.14: bug fix for Gtk.TextBuffer.delete()
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Vala 0.14: bug fix for Gtk.TextBuffer.delete()
- Date: Sat, 8 Oct 2011 12:50:20 +0000 (UTC)
commit da73c339eb0c3dd78bbed6b99f8887057cfabe03
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Fri Oct 7 23:59:08 2011 +0200
Vala 0.14: bug fix for Gtk.TextBuffer.delete()
See https://bugzilla.gnome.org/show_bug.cgi?id=661232
src/document.vala | 6 +++---
src/document_structure.vala | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/document.vala b/src/document.vala
index 2d6f044..8f30f27 100644
--- a/src/document.vala
+++ b/src/document.vala
@@ -474,7 +474,7 @@ public class Document : Gtk.SourceBuffer
get_iter_at_line_offset (out start, i, start_delete);
get_iter_at_line_offset (out end, i, stop_delete);
- this.delete (start, end);
+ this.delete (ref start, ref end);
}
end_user_action ();
@@ -1110,7 +1110,7 @@ public class Document : Gtk.SourceBuffer
get_iter_at_mark (out end, get_mark ("search_selected_end"));
begin_user_action ();
- this.delete (start, end);
+ this.delete (ref start, ref end);
this.insert (ref start, text, -1);
end_user_action ();
@@ -1132,7 +1132,7 @@ public class Document : Gtk.SourceBuffer
while (iter_forward_search (start, null, out match_start, out match_end))
{
- this.delete (match_start, match_end);
+ this.delete (ref match_start, ref match_end);
this.insert (ref match_start, text, -1);
start = match_start;
}
diff --git a/src/document_structure.vala b/src/document_structure.vala
index d20f447..136a05a 100644
--- a/src/document_structure.vala
+++ b/src/document_structure.vala
@@ -781,7 +781,7 @@ public class DocumentStructure : GLib.Object
if (action_type == StructAction.DELETE || action_type == StructAction.CUT)
{
_doc.begin_user_action ();
- _doc.delete (start_iter, end_iter);
+ _doc.delete (ref start_iter, ref end_iter);
_doc.end_user_action ();
_model.delete (tree_iter);
@@ -1130,7 +1130,7 @@ public class DocumentStructure : GLib.Object
_doc.get_iter_at_line_index (out end_markup_name_iter, line_num,
after_backslash_index + markup_name.length);
- _doc.delete (begin_markup_name_iter, end_markup_name_iter);
+ _doc.delete (ref begin_markup_name_iter, ref end_markup_name_iter);
_doc.insert (ref begin_markup_name_iter, new_markup_name, -1);
doc_modified = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]