[vala] gtksourceview-2.0: Fix gtksourceview's guess_language method.



commit 447faae6d1433f37abd02fb207d13c2f99e26f9f
Author: James Campos <james r campos gmail com>
Date:   Mon Nov 16 11:05:02 2009 -0800

    gtksourceview-2.0: Fix gtksourceview's guess_language method.
    
    Fixes bug 601934.

 vapi/gtksourceview-2.0.vapi                        |    2 +-
 .../gtksourceview-2.0/gtksourceview-2.0.metadata   |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gtksourceview-2.0.vapi b/vapi/gtksourceview-2.0.vapi
index 98dcf26..3452795 100644
--- a/vapi/gtksourceview-2.0.vapi
+++ b/vapi/gtksourceview-2.0.vapi
@@ -66,7 +66,7 @@ namespace Gtk {
 		public unowned string[]? get_language_ids ();
 		[CCode (array_length = false, array_null_terminated = true)]
 		public unowned string[]? get_search_path ();
-		public unowned Gtk.SourceLanguage guess_language (string filename, string content_type);
+		public unowned Gtk.SourceLanguage? guess_language (string? filename, string? content_type);
 		public void set_search_path ([CCode (array_length = false)] string[]? dirs);
 		[CCode (array_length = false, array_null_terminated = true)]
 		public string[] language_ids { get; }
diff --git a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
index 1956e1e..9ac97f0 100644
--- a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
+++ b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
@@ -14,6 +14,9 @@ GtkSourceContextEngine hidden="1"
 GtkSourceContextReplace hidden="1"
 GtkSourceEngine hidden="1"
 GtkSourceLanguageManager cheader_filename="gtksourceview/gtksourcelanguagemanager.h"
+gtk_source_language_manager_guess_language nullable="1"
+gtk_source_language_manager_guess_language.filename nullable="1"
+gtk_source_language_manager_guess_language.content_type nullable="1"
 gtk_source_language_manager_get_language_ids is_array="1" nullable="1" array_null_terminated="1"
 gtk_source_language_manager_get_search_path is_array="1" nullable="1" array_null_terminated="1"
 gtk_source_language_manager_set_search_path.dirs is_array="1" nullable="1" array_null_terminated="1"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]