diff --git a/vapi/gedit-2.20.vapi b/vapi/gedit-2.20.vapi
index ce56a1a..da0438b 100644
--- a/vapi/gedit-2.20.vapi
+++ b/vapi/gedit-2.20.vapi
@@ -30,7 +30,7 @@ namespace Gedit {
 		public bool get_readonly ();
 		public unowned string get_search_text (uint flags);
 		public unowned string get_short_name_for_display ();
-		public unowned string get_uri ();
+		public string get_uri ();
 		public unowned string get_uri_for_display ();
 		public bool goto_line (int line);
 		public bool goto_line_offset (int line, int line_offset);
diff --git a/vapi/packages/gedit-2.20/gedit-2.20.metadata b/vapi/packages/gedit-2.20/gedit-2.20.metadata
index 83c2b1b..6364ae9 100644
--- a/vapi/packages/gedit-2.20/gedit-2.20.metadata
+++ b/vapi/packages/gedit-2.20/gedit-2.20.metadata
@@ -18,6 +18,7 @@ GeditDocument base_class="GtkSourceBuffer" cheader_filename="gedit/gedit-documen
 GeditDocument.buffer hidden="1"
 GeditDocumentSaveFlags cheader_filename="gedit/gedit-document.h"
 GeditSearchFlags cheader_filename="gedit/gedit-document.h"
+gedit_document_get_uri transfer_ownership="1"
 
 #Encoding
 #in realta' 
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
index 1764c58..cd1e918 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
@@ -551,6 +551,7 @@ gtk_text_buffer_register_deserialize_format.user_data_destroy hidden="1"
 gtk_text_buffer_register_serialize_format.function transfer_ownership="1"
 gtk_text_buffer_register_serialize_format.user_data_destroy hidden="1"
 gtk_text_buffer_new.table nullable="1"
+gtk_text_buffer_get_text transfer_ownership="1"
 GtkTextBufferDeserializeFunc.user_data hidden="1"
 GtkTextBufferDeserializeFunc has_target="1"
 GtkTextIter is_value_type="1"
