Update gtksourceview vapi with latest

This commit is contained in:
Jesse van den Kieboom 2015-08-26 20:39:16 +02:00 committed by Ignacio Casal Quinteiro
parent 99eca15797
commit 29cd2d203d

View file

@ -25,11 +25,11 @@ namespace Gtk {
public bool get_highlight_matching_brackets ();
public bool get_highlight_syntax ();
public bool get_implicit_trailing_newline ();
public unowned Gtk.SourceLanguage get_language ();
public unowned Gtk.SourceLanguage? get_language ();
public int get_max_undo_levels ();
public GLib.SList<weak Gtk.SourceMark> get_source_marks_at_iter (Gtk.TextIter iter, string? category);
public GLib.SList<weak Gtk.SourceMark> get_source_marks_at_line (int line, string? category);
public unowned Gtk.SourceStyleScheme get_style_scheme ();
public unowned Gtk.SourceStyleScheme? get_style_scheme ();
public unowned Gtk.SourceUndoManager? get_undo_manager ();
public bool iter_backward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
public bool iter_forward_to_context_class_toggle (ref Gtk.TextIter iter, string context_class);
@ -43,6 +43,7 @@ namespace Gtk {
public void set_max_undo_levels (int max_undo_levels);
public void set_style_scheme (Gtk.SourceStyleScheme? scheme);
public void set_undo_manager (Gtk.SourceUndoManager? manager);
public void sort_lines (Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceSortFlags flags, int column);
[CCode (has_construct_function = false)]
public SourceBuffer.with_language (Gtk.SourceLanguage language);
[NoAccessorMethod]
@ -74,7 +75,7 @@ namespace Gtk {
public unowned Gtk.SourceCompletionContext create_context (Gtk.TextIter? position);
public unowned Gtk.SourceCompletionInfo get_info_window ();
public unowned GLib.List<Gtk.SourceCompletionProvider> get_providers ();
public unowned Gtk.SourceView get_view ();
public unowned Gtk.SourceView? get_view ();
[Deprecated (since = "3.8")]
public void move_window (Gtk.TextIter iter);
[NoWrapper]
@ -148,8 +149,12 @@ namespace Gtk {
[CCode (has_construct_function = false)]
public SourceCompletionItem.with_markup (string markup, string text, Gdk.Pixbuf? icon, string? info);
[NoAccessorMethod]
public GLib.Icon gicon { owned get; set; }
[NoAccessorMethod]
public Gdk.Pixbuf icon { owned get; set; }
[NoAccessorMethod]
public string icon_name { owned get; set; }
[NoAccessorMethod]
public string info { owned get; set; }
[NoAccessorMethod]
public string label { owned get; set; }
@ -191,6 +196,8 @@ namespace Gtk {
public static GLib.SList<weak Gtk.SourceEncoding> et_all ();
[CCode (cname = "gtk_source_encoding_get_current")]
public static unowned Gtk.SourceEncoding et_current ();
[CCode (cname = "gtk_source_encoding_get_default_candidates")]
public static GLib.SList<weak Gtk.SourceEncoding> et_default_candidates ();
[CCode (cname = "gtk_source_encoding_get_from_charset")]
public static unowned Gtk.SourceEncoding? et_from_charset (string charset);
[CCode (cname = "gtk_source_encoding_get_utf8")]
@ -205,15 +212,22 @@ namespace Gtk {
public class SourceFile : GLib.Object {
[CCode (has_construct_function = false)]
public SourceFile ();
public void check_file_on_disk ();
public Gtk.SourceCompressionType get_compression_type ();
public unowned Gtk.SourceEncoding get_encoding ();
public unowned GLib.File get_location ();
public Gtk.SourceNewlineType get_newline_type ();
public bool is_deleted ();
public bool is_externally_modified ();
public bool is_local ();
public bool is_readonly ();
public void set_location (GLib.File? location);
public Gtk.SourceCompressionType compression_type { get; }
public Gtk.SourceEncoding encoding { get; }
public GLib.File location { get; set; }
public GLib.File location { get; set construct; }
public Gtk.SourceNewlineType newline_type { get; }
[NoAccessorMethod]
public bool read_only { get; }
}
[CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_file_loader_get_type ()")]
[GIR (name = "FileLoader")]
@ -226,8 +240,8 @@ namespace Gtk {
public Gtk.SourceCompressionType get_compression_type ();
public unowned Gtk.SourceEncoding get_encoding ();
public unowned Gtk.SourceFile get_file ();
public unowned GLib.InputStream get_input_stream ();
public unowned GLib.File get_location ();
public unowned GLib.InputStream? get_input_stream ();
public unowned GLib.File? get_location ();
public Gtk.SourceNewlineType get_newline_type ();
public async bool load_async (int io_priority, GLib.Cancellable? cancellable, owned GLib.FileProgressCallback? progress_callback) throws GLib.Error;
public void set_candidate_encodings (GLib.SList<Gtk.SourceEncoding> candidate_encodings);
@ -270,7 +284,7 @@ namespace Gtk {
protected SourceGutter ();
[Deprecated (since = "3.12")]
public void get_padding (int xpad, int ypad);
public unowned Gtk.SourceGutterRenderer get_renderer_at_pos (int x, int y);
public unowned Gtk.SourceGutterRenderer? get_renderer_at_pos (int x, int y);
[Deprecated (since = "3.12")]
public unowned Gdk.Window get_window ();
public bool insert (Gtk.SourceGutterRenderer renderer, int position);
@ -297,7 +311,7 @@ namespace Gtk {
protected SourceGutterRenderer ();
public virtual void begin (Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.TextIter start, Gtk.TextIter end);
[NoWrapper]
public virtual void change_buffer (Gtk.TextBuffer? old_buffer);
public virtual void change_buffer (Gtk.TextBuffer old_buffer);
[NoWrapper]
public virtual void change_view (Gtk.TextView? old_view);
public virtual void draw (Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceGutterRendererState state);
@ -385,18 +399,18 @@ namespace Gtk {
[CCode (has_construct_function = false)]
protected SourceLanguage ();
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_globs ();
public string[]? get_globs ();
public bool get_hidden ();
public unowned string get_id ();
public unowned string get_metadata (string name);
public unowned string? get_metadata (string name);
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_mime_types ();
public string[]? get_mime_types ();
public unowned string get_name ();
public unowned string get_section ();
public unowned string get_style_fallback (string style_id);
public unowned string? get_style_fallback (string style_id);
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_style_ids ();
public unowned string get_style_name (string style_id);
public string[]? get_style_ids ();
public unowned string? get_style_name (string style_id);
public bool hidden { get; }
public string id { get; }
public string name { get; }
@ -420,6 +434,17 @@ namespace Gtk {
[CCode (array_length = false, array_null_terminated = true)]
public string[] search_path { get; set; }
}
[CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_map_get_type ()")]
[GIR (name = "Map")]
public class SourceMap : Gtk.SourceView, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public SourceMap ();
public unowned Gtk.SourceView? get_view ();
public void set_view (Gtk.SourceView view);
[NoAccessorMethod]
public Pango.FontDescription font_desc { owned get; set; }
public Gtk.SourceView view { get; set; }
}
[CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_mark_get_type ()")]
[GIR (name = "Mark")]
public class SourceMark : Gtk.TextMark {
@ -591,6 +616,8 @@ namespace Gtk {
[NoAccessorMethod]
public bool line_background_set { get; construct; }
[NoAccessorMethod]
public Pango.Underline pango_underline { get; construct; }
[NoAccessorMethod]
public string scale { owned get; construct; }
[NoAccessorMethod]
public bool scale_set { get; construct; }
@ -598,9 +625,14 @@ namespace Gtk {
public bool strikethrough { get; construct; }
[NoAccessorMethod]
public bool strikethrough_set { get; construct; }
[Deprecated (since = "3.18")]
[NoAccessorMethod]
public bool underline { get; construct; }
[NoAccessorMethod]
public string underline_color { owned get; construct; }
[NoAccessorMethod]
public bool underline_color_set { get; construct; }
[NoAccessorMethod]
public bool underline_set { get; construct; }
}
[CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_style_scheme_get_type ()")]
@ -642,7 +674,7 @@ namespace Gtk {
public static unowned Gtk.SourceStyleSchemeManager get_default ();
public unowned Gtk.SourceStyleScheme get_scheme (string scheme_id);
[CCode (array_length = false, array_null_terminated = true)]
public unowned string[] get_scheme_ids ();
public unowned string[]? get_scheme_ids ();
[CCode (array_length = false, array_null_terminated = true)]
public unowned string[] get_search_path ();
public void prepend_search_path (string path);
@ -671,6 +703,7 @@ namespace Gtk {
public bool get_show_line_marks ();
public bool get_show_line_numbers ();
public bool get_show_right_margin ();
public bool get_smart_backspace ();
public Gtk.SourceSmartHomeEndType get_smart_home_end ();
public uint get_tab_width ();
public uint get_visual_column (Gtk.TextIter iter);
@ -687,6 +720,7 @@ namespace Gtk {
public void set_show_line_marks (bool show);
public void set_show_line_numbers (bool show);
public void set_show_right_margin (bool show);
public void set_smart_backspace (bool smart_backspace);
public void set_smart_home_end (Gtk.SourceSmartHomeEndType smart_home_end);
public void set_tab_width (uint width);
public void unindent_lines (Gtk.TextIter start, Gtk.TextIter end);
@ -704,6 +738,7 @@ namespace Gtk {
public bool show_line_marks { get; set; }
public bool show_line_numbers { get; set; }
public bool show_right_margin { get; set; }
public bool smart_backspace { get; set; }
public Gtk.SourceSmartHomeEndType smart_home_end { get; set; }
public uint tab_width { get; set; }
public signal void change_case (Gtk.SourceChangeCaseType case_type);
@ -721,8 +756,10 @@ namespace Gtk {
[GIR (name = "CompletionProposal")]
public interface SourceCompletionProposal : GLib.Object {
public virtual bool equal (Gtk.SourceCompletionProposal other);
public virtual unowned Gdk.Pixbuf get_icon ();
public abstract string get_info ();
public abstract unowned GLib.Icon? get_gicon ();
public virtual unowned Gdk.Pixbuf? get_icon ();
public abstract unowned string? get_icon_name ();
public abstract string? get_info ();
public abstract string get_label ();
public abstract string get_markup ();
public abstract string get_text ();
@ -735,7 +772,9 @@ namespace Gtk {
public interface SourceCompletionProvider : GLib.Object {
public virtual bool activate_proposal (Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter);
public virtual Gtk.SourceCompletionActivation get_activation ();
public virtual unowned GLib.Icon? get_gicon ();
public virtual unowned Gdk.Pixbuf? get_icon ();
public virtual unowned string? get_icon_name ();
public virtual unowned Gtk.Widget? get_info_widget (Gtk.SourceCompletionProposal proposal);
public virtual int get_interactive_delay ();
public virtual string get_name ();
@ -855,6 +894,15 @@ namespace Gtk {
AFTER,
ALWAYS
}
[CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_SORT_FLAGS_", type_id = "gtk_source_sort_flags_get_type ()")]
[Flags]
[GIR (name = "SortFlags")]
public enum SourceSortFlags {
NONE,
CASE_SENSITIVE,
REVERSE_ORDER,
REMOVE_DUPLICATES
}
[CCode (cheader_filename = "gtksourceview/gtksource.h", cprefix = "GTK_SOURCE_VIEW_GUTTER_POSITION_", type_id = "gtk_source_view_gutter_position_get_type ()")]
[GIR (name = "ViewGutterPosition")]
public enum SourceViewGutterPosition {