File valencia-fix-build.patch of Package valencia
Index: valencia/trunk/valencia.vala
===================================================================
--- a/valencia/trunk/valencia.vala
+++ b/valencia/trunk/valencia.vala
@@ -908,5 +908,5 @@
}
- void get_buffer_contents_and_position(string filename, out unowned string source, out int pos) {
+ void get_buffer_contents_and_position(string filename, out string source, out int pos) {
reparse_modified_documents(filename);
@@ -935,5 +935,5 @@
return;
- weak string source;
+ string source;
int pos;
get_buffer_contents_and_position(filename, out source, out pos);
@@ -960,5 +960,5 @@
return;
- weak string source;
+ string source;
int pos;
get_buffer_contents_and_position(filename, out source, out pos);
@@ -1308,5 +1308,5 @@
Gedit.Document document = window.get_active_document();
- weak string source = buffer_contents(document);
+ string source = buffer_contents(document);
Gtk.TextIter insert = get_insert_iter(document);
int pos = insert.get_offset();
@@ -1386,5 +1386,5 @@
string? filename = active_filename();
- weak string source;
+ string source;
get_buffer_contents_and_position(filename, out source, out cursor_pos);
Index: valencia/trunk/gtk_util.vala
===================================================================
--- a/valencia/trunk/gtk_util.vala
+++ b/valencia/trunk/gtk_util.vala
@@ -51,5 +51,5 @@
}
-unowned string buffer_contents(Gtk.TextBuffer buffer) {
+string buffer_contents(Gtk.TextBuffer buffer) {
Gtk.TextIter start;
Gtk.TextIter end;