[anjuta] Adapt the language-support-vala plugin to the new IAnjutaEditorAssist API



commit 70b16e81ee6e7cfe31cfd87177da5713c2377715
Author: Moritz LÃdecke <ritze skweez net>
Date:   Mon Jul 23 17:48:45 2012 +0200

    Adapt the language-support-vala plugin to the new IAnjutaEditorAssist API

 plugins/language-support-vala/libanjuta-3.0.vapi |  280 ++++++++++++++--------
 plugins/language-support-vala/provider.vala      |    2 +-
 2 files changed, 177 insertions(+), 105 deletions(-)
---
diff --git a/plugins/language-support-vala/libanjuta-3.0.vapi b/plugins/language-support-vala/libanjuta-3.0.vapi
index 8a77a28..d12d218 100644
--- a/plugins/language-support-vala/libanjuta-3.0.vapi
+++ b/plugins/language-support-vala/libanjuta-3.0.vapi
@@ -1,4 +1,4 @@
-/* libanjuta.vapi generated by vapigen, do not modify. */
+/* libanjuta-3.0.vapi generated by vapigen, do not modify. */
 
 [CCode (cprefix = "Anjuta", gir_namespace = "Anjuta", gir_version = "3.0", lower_case_cprefix = "anjuta_")]
 namespace Anjuta {
@@ -28,6 +28,19 @@ namespace Anjuta {
 	[Compact]
 	public class AsyncNotifyPriv {
 	}
+	[CCode (cheader_filename = "libanjuta/libanjuta.h", type_id = "anjuta_autogen_get_type ()")]
+	public class Autogen : GLib.Object {
+		[CCode (has_construct_function = false)]
+		public Autogen ();
+		public void clear_library_path ();
+		public bool execute (Anjuta.AutogenFunc? func) throws GLib.Error;
+		public unowned GLib.List<string> get_library_paths ();
+		public bool set_input_file (string filename, string? start_marker, string? end_marker);
+		public void set_library_path (string directory);
+		public bool set_output_callback (owned Anjuta.AutogenOutputFunc func);
+		public bool set_output_file (string filename);
+		public bool write_definition_file (GLib.HashTable<string,string> values) throws GLib.Error;
+	}
 	[CCode (cheader_filename = "libanjuta/libanjuta.h", lower_case_csuffix = "c_module", type_id = "anjuta_c_module_get_type ()")]
 	public class CModule : GLib.TypeModule, GLib.TypePlugin {
 		[CCode (has_construct_function = false)]
@@ -209,6 +222,15 @@ namespace Anjuta {
 		[CCode (has_construct_function = false)]
 		protected GluePlugin ();
 	}
+	[CCode (cheader_filename = "libanjuta/libanjuta.h", type_id = "anjuta_language_provider_get_type ()")]
+	public class LanguageProvider : GLib.Object {
+		[CCode (has_construct_function = false)]
+		protected LanguageProvider ();
+	}
+	[CCode (cheader_filename = "libanjuta/libanjuta.h")]
+	[Compact]
+	public class LanguageProviderPriv {
+	}
 	[CCode (cheader_filename = "libanjuta/libanjuta.h", type_id = "anjuta_launcher_get_type ()")]
 	public class Launcher : GLib.Object {
 		[CCode (has_construct_function = false)]
@@ -353,7 +375,7 @@ namespace Anjuta {
 	[CCode (cheader_filename = "libanjuta/libanjuta.h", type_id = "anjuta_preferences_get_type ()")]
 	public class Preferences : GLib.Object {
 		[CCode (has_construct_function = false)]
-		public Preferences (Anjuta.PluginManager plugin_manager);
+		public Preferences (Anjuta.PluginManager plugin_manager, string common_schema_id);
 		public void add_from_builder (Gtk.Builder builder, GLib.Settings settings, string glade_widget_name, string stitle, string icon_filename);
 		public bool is_dialog_created ();
 		public void register_all_properties_from_builder_xml (Gtk.Builder builder, GLib.Settings settings, Gtk.Widget parent);
@@ -538,6 +560,7 @@ namespace Anjuta {
 		public void clear_section (string section);
 		public float get_float (string section, string key);
 		public int get_int (string section, string key);
+		public string get_relative_uri_from_file (GLib.File file, string fragment);
 		public unowned string get_session_directory ();
 		public string get_session_filename ();
 		public string get_string (string section, string key);
@@ -603,7 +626,7 @@ namespace Anjuta {
 		public int get_flags ();
 		public size_t get_length ();
 		public unowned string get_string ();
-		public static int get_type (Anjuta.Token token);
+		public int get_type ();
 		public bool is_empty ();
 		public void remove_item ();
 		public void set_flags (int flags);
@@ -638,7 +661,7 @@ namespace Anjuta {
 		public void update (Anjuta.Token list);
 	}
 	[CCode (cheader_filename = "libanjuta/libanjuta.h", type_id = "anjuta_tree_combo_box_get_type ()")]
-	public class TreeComboBox : Gtk.ToggleButton, Atk.Implementor, Gtk.Activatable, Gtk.Buildable, Gtk.CellLayout {
+	public class TreeComboBox : Gtk.ToggleButton, Atk.Implementor, Gtk.Actionable, Gtk.Activatable, Gtk.Buildable, Gtk.CellLayout {
 		[CCode (has_construct_function = false, type = "GtkWidget*")]
 		public TreeComboBox ();
 		public bool get_active_iter (Gtk.TreeIter iter);
@@ -794,11 +817,13 @@ namespace Anjuta {
 		GENMARSHAL,
 		SCRIPT,
 		ROOT_GROUP,
+		LT_MODULE,
 		PROXY,
 		PROJECT,
 		PRIMARY,
 		EXECUTABLE,
 		READ_ONLY,
+		FRAME,
 		ID_MASK,
 		FLAG_MASK,
 		TYPE_MASK,
@@ -943,6 +968,10 @@ namespace Anjuta {
 		EXIST;
 		public static GLib.Quark quark ();
 	}
+	[CCode (cheader_filename = "libanjuta/libanjuta.h", has_target = false)]
+	public delegate void AutogenFunc (Anjuta.Autogen autogen, void* data);
+	[CCode (cheader_filename = "libanjuta/libanjuta.h", has_target = false)]
+	public delegate void AutogenOutputFunc (string output, void* data);
 	[CCode (cheader_filename = "libanjuta/libanjuta.h", instance_pos = 3.9)]
 	public delegate void LauncherOutputCallback (Anjuta.Launcher launcher, Anjuta.LauncherOutputType output_type, string chars);
 	[CCode (cheader_filename = "libanjuta/libanjuta.h", has_target = false)]
@@ -984,6 +1013,8 @@ namespace Anjuta {
 	[CCode (cheader_filename = "libanjuta/libanjuta.h")]
 	public static void cclosure_marshal_VOID__STRING_POINTER (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
 	[CCode (cheader_filename = "libanjuta/libanjuta.h")]
+	public static bool check_autogen ();
+	[CCode (cheader_filename = "libanjuta/libanjuta.h")]
 	public static string convert_from_utf8 (string content, size_t len, Anjuta.Encoding encoding, size_t new_len) throws GLib.Error;
 	[CCode (cheader_filename = "libanjuta/libanjuta.h")]
 	public static string convert_to_utf8 (string content, size_t len, Anjuta.Encoding encoding, size_t new_len) throws GLib.Error;
@@ -1248,6 +1279,7 @@ namespace IAnjuta {
 		public virtual signal void char_added (IAnjuta.Iterable position, char ch);
 		public virtual signal void code_added (IAnjuta.Iterable position, string code);
 		public virtual signal void cursor_moved ();
+		public virtual signal void glade_callback_add (string widget_typename, string signal_name, string handler_name, string object, bool swap, bool after, string filename);
 		public virtual signal void glade_member_add (string widget_typename, string widget_name, string filename);
 		public virtual signal void line_marks_gutter_clicked (int location);
 	}
@@ -1256,7 +1288,7 @@ namespace IAnjuta {
 		public abstract void add (IAnjuta.Provider provider) throws GLib.Error;
 		public static GLib.Quark error_quark ();
 		public abstract void invoke (IAnjuta.Provider provider) throws GLib.Error;
-		public abstract void proposals (IAnjuta.Provider provider, GLib.List<IAnjuta.EditorAssistProposal> proposals, bool finished) throws GLib.Error;
+		public abstract void proposals (IAnjuta.Provider provider, GLib.List<IAnjuta.EditorAssistProposal> proposals, string pre_word, bool finished) throws GLib.Error;
 		public abstract void remove (IAnjuta.Provider provider) throws GLib.Error;
 		public virtual signal void cancelled ();
 	}
@@ -1383,6 +1415,7 @@ namespace IAnjuta {
 		public static GLib.Quark error_quark ();
 		public abstract GLib.File get_file () throws GLib.Error;
 		public abstract void open (GLib.File file) throws GLib.Error;
+		public virtual signal void opened ();
 	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", type_id = "ianjuta_file_loader_get_type ()")]
 	public interface FileLoader : IAnjuta.Loader, GLib.Object {
@@ -1457,6 +1490,14 @@ namespace IAnjuta {
 		public abstract unowned string get_name (IAnjuta.LanguageId id) throws GLib.Error;
 		public abstract unowned string get_name_from_editor (IAnjuta.EditorLanguage editor) throws GLib.Error;
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", type_id = "ianjuta_language_provider_get_type ()")]
+	public interface LanguageProvider : IAnjuta.Provider, GLib.Object {
+		public static GLib.Quark error_quark ();
+		public abstract GLib.List<weak string> get_calltip_cache (string call_context) throws GLib.Error;
+		public abstract string get_calltip_context (IAnjuta.Iterable iter) throws GLib.Error;
+		public abstract void new_calltip (string call_context, IAnjuta.Iterable iter) throws GLib.Error;
+		public abstract IAnjuta.Iterable populate_language (IAnjuta.Iterable iter) throws GLib.Error;
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", type_id = "ianjuta_loader_get_type ()")]
 	public interface Loader : GLib.Object {
 		public static GLib.Quark error_quark ();
@@ -1544,7 +1585,7 @@ namespace IAnjuta {
 		public abstract GLib.File add_target (string name, GLib.File? default_group) throws GLib.Error;
 		public static GLib.Quark error_quark ();
 		public abstract uint get_capabilities () throws GLib.Error;
-		public abstract GLib.List<GLib.File> get_children (GLib.File element) throws GLib.Error;
+		public abstract GLib.List<GLib.File> get_children (GLib.File parent, int children_type) throws GLib.Error;
 		public abstract unowned IAnjuta.Project get_current_project () throws GLib.Error;
 		public abstract GLib.List<GLib.File> get_elements (Anjuta.ProjectNodeType element_type) throws GLib.Error;
 		public abstract GLib.List<weak string> get_packages () throws GLib.Error;
@@ -1719,6 +1760,14 @@ namespace IAnjuta {
 	[SimpleType]
 	public struct LanguageId : int {
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", has_type_id = false)]
+	public struct LanguageProviderProposalData {
+		public weak string name;
+		public weak string info;
+		public bool is_func;
+		public bool has_para;
+		public IAnjuta.SymbolType type;
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_BUILDABLE_")]
 	public enum BuildableCommand {
 		COMMAND_COMPILE,
@@ -1732,8 +1781,22 @@ namespace IAnjuta {
 		COMMAND_IS_BUILT,
 		COMMAND_AUTORECONF,
 		COMMAND_DISTCLEAN,
+		COMMAND_CHECK,
 		N_COMMANDS
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_BUILDER_")]
+	public enum BuilderError {
+		SUCCEED,
+		FAILED,
+		CANCELED,
+		ABORTED,
+		INTERRUPTED,
+		TERMINATED,
+		UNKNOWN_TARGET,
+		UNKNOWN_ERROR,
+		OTHER_ERROR;
+		public static GLib.Quark quark ();
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_DEBUGGER_BREAKPOINT_")]
 	public enum DebuggerBreakpointMethod {
 		SET_AT_ADDRESS,
@@ -1759,6 +1822,30 @@ namespace IAnjuta {
 		WITH_PENDING
 	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_DEBUGGER_")]
+	public enum DebuggerError {
+		OK,
+		NOT_READY,
+		NOT_RUNNING,
+		NOT_STOPPED,
+		NOT_LOADED,
+		NOT_STARTED,
+		NOT_CONNECTED,
+		NOT_IMPLEMENTED,
+		CANCEL,
+		UNABLE_TO_CREATE_VARIABLE,
+		UNABLE_TO_ACCESS_MEMORY,
+		UNABLE_TO_OPEN_FILE,
+		UNSUPPORTED_FILE_TYPE,
+		UNSUPPORTED_VERSION,
+		UNABLE_TO_FIND_DEBUGGER,
+		ALREADY_DONE,
+		PROGRAM_NOT_FOUND,
+		UNABLE_TO_CONNECT,
+		UNKNOWN_ERROR,
+		OTHER_ERROR;
+		public static GLib.Quark quark ();
+	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_DEBUGGER_")]
 	public enum DebuggerOutputType {
 		OUTPUT,
 		WARNING_OUTPUT,
@@ -1774,6 +1861,12 @@ namespace IAnjuta {
 		PROGRAM_STOPPED,
 		PROGRAM_RUNNING
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_DOCUMENT_MANAGER_DOESNT_")]
+	public enum DocumentManagerError {
+		[CCode (cname = "IANJUTA_DOCUMENT_MANAGER_DOESNT_EXIST")]
+		DOESNT_EXIST;
+		public static GLib.Quark quark ();
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_EDITOR_")]
 	public enum EditorAttribute {
 		TEXT,
@@ -1781,12 +1874,24 @@ namespace IAnjuta {
 		COMMENT,
 		STRING
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_EDITOR_DOESNT_")]
+	public enum EditorError {
+		[CCode (cname = "IANJUTA_EDITOR_DOESNT_EXIST")]
+		DOESNT_EXIST;
+		public static GLib.Quark quark ();
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_EDITOR_LINE_MODE_")]
 	public enum EditorLineModeType {
 		LF,
 		CR,
 		CRLF
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_ENVIRONMENT_")]
+	public enum EnvironmentError {
+		CONFIG,
+		OTHER_ERROR;
+		public static GLib.Quark quark ();
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_INDICABLE_")]
 	public enum IndicableIndicator {
 		NONE,
@@ -1794,6 +1899,12 @@ namespace IAnjuta {
 		WARNING,
 		CRITICAL
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_MARKABLE_INVALID_")]
+	public enum MarkableError {
+		[CCode (cname = "IANJUTA_MARKABLE_INVALID_LOCATION")]
+		INVALID_LOCATION;
+		public static GLib.Quark quark ();
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_MARKABLE_")]
 	public enum MarkableMarker {
 		LINEMARKER,
@@ -1803,6 +1914,12 @@ namespace IAnjuta {
 		BREAKPOINT_ENABLED,
 		PROGRAM_COUNTER
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_MESSAGE_MANAGER_DOESNT_")]
+	public enum MessageManagerError {
+		[CCode (cname = "IANJUTA_MESSAGE_MANAGER_DOESNT_EXIST")]
+		DOESNT_EXIST;
+		public static GLib.Quark quark ();
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_MESSAGE_VIEW_TYPE_")]
 	public enum MessageViewType {
 		[CCode (cname = "IANJUTA_MESSAGE_VIEW_TYPE_NORMAL")]
@@ -1814,6 +1931,38 @@ namespace IAnjuta {
 		[CCode (cname = "IANJUTA_MESSAGE_VIEW_TYPE_ERROR")]
 		TYPE_ERROR
 	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_PLUGIN_FACTORY_")]
+	public enum PluginFactoryError {
+		OK,
+		MISSING_LOCATION,
+		MISSING_TYPE,
+		MISSING_MODULE,
+		INVALID_MODULE,
+		MISSING_FUNCTION,
+		INVALID_TYPE,
+		UNKNOWN_ERROR;
+		public static GLib.Quark quark ();
+	}
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_PROJECT_ERROR_")]
+	public enum ProjectError {
+		[CCode (cname = "IANJUTA_PROJECT_ERROR_SUCCESS")]
+		ERROR_SUCCESS,
+		[CCode (cname = "IANJUTA_PROJECT_ERROR_DOESNT_EXIST")]
+		ERROR_DOESNT_EXIST,
+		[CCode (cname = "IANJUTA_PROJECT_ERROR_ALREADY_EXISTS")]
+		ERROR_ALREADY_EXISTS,
+		[CCode (cname = "IANJUTA_PROJECT_ERROR_VALIDATION_FAILED")]
+		ERROR_VALIDATION_FAILED,
+		[CCode (cname = "IANJUTA_PROJECT_ERROR_PROJECT_MALFORMED")]
+		ERROR_PROJECT_MALFORMED,
+		[CCode (cname = "IANJUTA_PROJECT_ERROR_WRONG_PARENT")]
+		ERROR_WRONG_PARENT,
+		[CCode (cname = "IANJUTA_PROJECT_ERROR_NOT_SUPPORTED")]
+		ERROR_NOT_SUPPORTED,
+		[CCode (cname = "IANJUTA_PROJECT_ERROR_GENERAL_FAILURE")]
+		ERROR_GENERAL_FAILURE;
+		public static GLib.Quark quark ();
+	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_PROJECT_PROBE_")]
 	public enum ProjectProbe {
 		[CCode (cname = "IANJUTA_PROJECT_PROBE_FILES")]
@@ -1932,105 +2081,8 @@ namespace IAnjuta {
 		[CCode (cname = "IANJUTA_SYMBOL_TYPE_MAX")]
 		TYPE_MAX
 	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_BUILDER_")]
-	public errordomain BuilderError {
-		SUCCEED,
-		FAILED,
-		CANCELED,
-		ABORTED,
-		INTERRUPTED,
-		TERMINATED,
-		UNKNOWN_TARGET,
-		UNKNOWN_ERROR,
-		OTHER_ERROR;
-		public static GLib.Quark quark ();
-	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_DEBUGGER_")]
-	public errordomain DebuggerError {
-		OK,
-		NOT_READY,
-		NOT_RUNNING,
-		NOT_STOPPED,
-		NOT_LOADED,
-		NOT_STARTED,
-		NOT_CONNECTED,
-		NOT_IMPLEMENTED,
-		CANCEL,
-		UNABLE_TO_CREATE_VARIABLE,
-		UNABLE_TO_ACCESS_MEMORY,
-		UNABLE_TO_OPEN_FILE,
-		UNSUPPORTED_FILE_TYPE,
-		UNSUPPORTED_VERSION,
-		UNABLE_TO_FIND_DEBUGGER,
-		ALREADY_DONE,
-		PROGRAM_NOT_FOUND,
-		UNABLE_TO_CONNECT,
-		UNKNOWN_ERROR,
-		OTHER_ERROR;
-		public static GLib.Quark quark ();
-	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_DOCUMENT_MANAGER_DOESNT_")]
-	public errordomain DocumentManagerError {
-		[CCode (cname = "IANJUTA_DOCUMENT_MANAGER_DOESNT_EXIST")]
-		DOESNT_EXIST;
-		public static GLib.Quark quark ();
-	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_EDITOR_DOESNT_")]
-	public errordomain EditorError {
-		[CCode (cname = "IANJUTA_EDITOR_DOESNT_EXIST")]
-		DOESNT_EXIST;
-		public static GLib.Quark quark ();
-	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_ENVIRONMENT_")]
-	public errordomain EnvironmentError {
-		CONFIG,
-		OTHER_ERROR;
-		public static GLib.Quark quark ();
-	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_MARKABLE_INVALID_")]
-	public errordomain MarkableError {
-		[CCode (cname = "IANJUTA_MARKABLE_INVALID_LOCATION")]
-		INVALID_LOCATION;
-		public static GLib.Quark quark ();
-	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_MESSAGE_MANAGER_DOESNT_")]
-	public errordomain MessageManagerError {
-		[CCode (cname = "IANJUTA_MESSAGE_MANAGER_DOESNT_EXIST")]
-		DOESNT_EXIST;
-		public static GLib.Quark quark ();
-	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_PLUGIN_FACTORY_")]
-	public errordomain PluginFactoryError {
-		OK,
-		MISSING_LOCATION,
-		MISSING_TYPE,
-		MISSING_MODULE,
-		INVALID_MODULE,
-		MISSING_FUNCTION,
-		INVALID_TYPE,
-		UNKNOWN_ERROR;
-		public static GLib.Quark quark ();
-	}
-	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_PROJECT_ERROR_")]
-	public errordomain ProjectError {
-		[CCode (cname = "IANJUTA_PROJECT_ERROR_SUCCESS")]
-		ERROR_SUCCESS,
-		[CCode (cname = "IANJUTA_PROJECT_ERROR_DOESNT_EXIST")]
-		ERROR_DOESNT_EXIST,
-		[CCode (cname = "IANJUTA_PROJECT_ERROR_ALREADY_EXISTS")]
-		ERROR_ALREADY_EXISTS,
-		[CCode (cname = "IANJUTA_PROJECT_ERROR_VALIDATION_FAILED")]
-		ERROR_VALIDATION_FAILED,
-		[CCode (cname = "IANJUTA_PROJECT_ERROR_PROJECT_MALFORMED")]
-		ERROR_PROJECT_MALFORMED,
-		[CCode (cname = "IANJUTA_PROJECT_ERROR_NOT_SUPPORTED")]
-		ERROR_NOT_SUPPORTED,
-		[CCode (cname = "IANJUTA_PROJECT_ERROR_GENERAL_FAILURE")]
-		ERROR_GENERAL_FAILURE;
-		public static GLib.Quark quark ();
-	}
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cprefix = "IANJUTA_VCS_UNKOWN_")]
-	public errordomain VcsError {
+	public enum VcsError {
 		[CCode (cname = "IANJUTA_VCS_UNKOWN_ERROR")]
 		UNKOWN_ERROR;
 		public static GLib.Quark quark ();
@@ -2065,8 +2117,26 @@ namespace IAnjuta {
 	public const string BUILDER_ROOT_URI;
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_DOCUMENT_MANAGER_CURRENT_DOCUMENT")]
 	public const string DOCUMENT_MANAGER_CURRENT_DOCUMENT;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_EDITOR_INDENT_WIDTH_KEY")]
+	public const string EDITOR_INDENT_WIDTH_KEY;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_EDITOR_PREF_SCHEMA")]
+	public const string EDITOR_PREF_SCHEMA;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_EDITOR_TAB_WIDTH_KEY")]
+	public const string EDITOR_TAB_WIDTH_KEY;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_EDITOR_USE_TABS_KEY")]
+	public const string EDITOR_USE_TABS_KEY;
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_FILE_MANAGER_SELECTED_FILE")]
 	public const string FILE_MANAGER_SELECTED_FILE;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_LANGUAGE_PROVIDER_PREF_AUTOCOMPLETE_BRACE_AFTER_FUNC")]
+	public const string LANGUAGE_PROVIDER_PREF_AUTOCOMPLETE_BRACE_AFTER_FUNC;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_LANGUAGE_PROVIDER_PREF_AUTOCOMPLETE_CLOSEBRACE_AFTER_FUNC")]
+	public const string LANGUAGE_PROVIDER_PREF_AUTOCOMPLETE_CLOSEBRACE_AFTER_FUNC;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_LANGUAGE_PROVIDER_PREF_AUTOCOMPLETE_ENABLE")]
+	public const string LANGUAGE_PROVIDER_PREF_AUTOCOMPLETE_ENABLE;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_LANGUAGE_PROVIDER_PREF_AUTOCOMPLETE_SPACE_AFTER_FUNC")]
+	public const string LANGUAGE_PROVIDER_PREF_AUTOCOMPLETE_SPACE_AFTER_FUNC;
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_LANGUAGE_PROVIDER_PREF_CALLTIP_ENABLE")]
+	public const string LANGUAGE_PROVIDER_PREF_CALLTIP_ENABLE;
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_PROJECT_MANAGER_CURRENT_PROJECT")]
 	public const string PROJECT_MANAGER_CURRENT_PROJECT;
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h", cname = "IANJUTA_PROJECT_MANAGER_CURRENT_URI")]
@@ -2144,6 +2214,8 @@ namespace IAnjuta {
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h")]
 	public static GLib.Quark language_error_quark ();
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h")]
+	public static GLib.Quark language_provider_error_quark ();
+	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h")]
 	public static GLib.Quark loader_error_quark ();
 	[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h")]
 	public static GLib.Quark message_view_error_quark ();
diff --git a/plugins/language-support-vala/provider.vala b/plugins/language-support-vala/provider.vala
index 6fc5d58..815fc42 100644
--- a/plugins/language-support-vala/provider.vala
+++ b/plugins/language-support-vala/provider.vala
@@ -82,7 +82,7 @@ public class ValaProvider : Object, IAnjuta.Provider {
 			proposals.prepend(prop);
 		}
 		proposals.reverse();
-		editor.proposals(this, proposals, true);
+		editor.proposals(this, proposals, null, true);
 	}
 	public unowned IAnjuta.Iterable get_start_iter () throws GLib.Error {
 		return start_pos;



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