]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add gtksourceview-3.0 bindings
authorEvan Nemerson <evan@coeus-group.com>
Wed, 27 Jul 2011 04:23:26 +0000 (21:23 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Wed, 27 Jul 2011 04:26:51 +0000 (21:26 -0700)
Fixes bug 627761.

vapi/Makefile.am
vapi/gtksourceview-3.0.deps [new file with mode: 0644]
vapi/gtksourceview-3.0.vapi [new file with mode: 0644]
vapi/metadata/GtkSource-3.0.metadata [new file with mode: 0644]

index 765fca898381161b07469842b8bd8b439ae0a48d..0e8488c8c1483b5e6fa65f89fb44945d1b516d31 100644 (file)
@@ -113,6 +113,8 @@ dist_vapi_DATA = \
        gtkmozembed.vapi \
        gtksourceview-2.0.deps \
        gtksourceview-2.0.vapi \
+       gtksourceview-3.0.deps \
+       gtksourceview-3.0.vapi \
        gudev-1.0.deps \
        gudev-1.0.vapi \
        hal.deps \
@@ -234,7 +236,7 @@ dist_noinst_DATA = \
        config.vapi \
        $(NULL)
 
-BINDINGS = clutter-1.0 json-glib-1.0 libsoup-2.4 libpeas-1.0 vte-2.90
+BINDINGS = clutter-1.0 gtksourceview-3.0 json-glib-1.0 libsoup-2.4 libpeas-1.0 vte-2.90
 VAPIGEN = $(top_builddir)/vapigen/vapigen
 METADATADIR = $(srcdir)/metadata
 GIRDIR = $$($(PKG_CONFIG) gobject-introspection-1.0 --variable=girdir)
@@ -246,6 +248,9 @@ all-bindings: $(BINDINGS)
 clutter-1.0:
        $(VAPIGEN) --library $(srcdir)/clutter-1.0 --metadatadir $(METADATADIR) $(METADATADIR)/Clutter-1.0-custom.vala --pkg atk --pkg cairo --pkg pango --pkg cogl-1.0 --pkg json-glib-1.0 $(GIRDIR)/Clutter-1.0.gir
 
+gtksourceview-3.0:
+       $(VAPIGEN) --library gtksourceview-3.0 --pkg atk --pkg gdk-3.0 --pkg gdk-pixbuf-2.0 --pkg gio-2.0 --pkg gtk+-3.0 --pkg pango --pkg cairo --metadatadir $(METADATADIR) $(GIRDIR)/GtkSource-3.0.gir
+
 json-glib-1.0:
        $(VAPIGEN) --library $(srcdir)/json-glib-1.0 --metadatadir $(METADATADIR) $(METADATADIR)/Json-1.0-custom.vala --pkg gio-2.0 $(GIRDIR)/Json-1.0.gir
 
diff --git a/vapi/gtksourceview-3.0.deps b/vapi/gtksourceview-3.0.deps
new file mode 100644 (file)
index 0000000..1306ac4
--- /dev/null
@@ -0,0 +1,7 @@
+atk
+gdk-3.0
+gdk-pixbuf-2.0
+gio-2.0
+gtk+-3.0
+pango
+cairo
diff --git a/vapi/gtksourceview-3.0.vapi b/vapi/gtksourceview-3.0.vapi
new file mode 100644 (file)
index 0000000..07c5898
--- /dev/null
@@ -0,0 +1,616 @@
+/* gtksourceview-3.0.vapi generated by lt-vapigen, do not modify. */
+
+[CCode (cprefix = "Gtk", lower_case_cprefix = "gtk_", gir_namespace = "GtkSource", gir_version = "3.0")]
+namespace Gtk {
+       [CCode (cprefix = "GtkSourceCompletionCapability", lower_case_cprefix = "gtk_source_completion_capability_")]
+       namespace SourceCompletionCapability {
+               [CCode (cheader_filename = "gtksourceview/gtksource.h")]
+               public const string AUTOMATIC;
+               [CCode (cheader_filename = "gtksourceview/gtksource.h")]
+               public const string INTERACTIVE;
+       }
+       [CCode (type_id = "gtk_source_buffer_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceBuffer : Gtk.TextBuffer {
+               [CCode (has_construct_function = false)]
+               public SourceBuffer (Gtk.TextTagTable? table);
+               public bool backward_iter_to_source_mark (Gtk.TextIter iter, string? category);
+               public void begin_not_undoable_action ();
+               public unowned Gtk.SourceMark create_source_mark (string? name, string category, Gtk.TextIter where);
+               public void end_not_undoable_action ();
+               public void ensure_highlight (Gtk.TextIter start, Gtk.TextIter end);
+               public bool forward_iter_to_source_mark (Gtk.TextIter iter, string? category);
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] get_context_classes_at_iter (Gtk.TextIter iter);
+               public bool get_highlight_matching_brackets ();
+               public bool get_highlight_syntax ();
+               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.SourceUndoManager get_undo_manager ();
+               public bool iter_backward_to_context_class_toggle (Gtk.TextIter iter, string context_class);
+               public bool iter_forward_to_context_class_toggle (Gtk.TextIter iter, string context_class);
+               public bool iter_has_context_class (Gtk.TextIter iter, string context_class);
+               public void remove_source_marks (Gtk.TextIter start, Gtk.TextIter end, string? category);
+               public void set_highlight_matching_brackets (bool highlight);
+               public void set_highlight_syntax (bool highlight);
+               public void set_language (Gtk.SourceLanguage? language);
+               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);
+               [CCode (has_construct_function = false)]
+               public SourceBuffer.with_language (Gtk.SourceLanguage language);
+               [NoAccessorMethod]
+               public bool can_redo { get; }
+               [NoAccessorMethod]
+               public bool can_undo { get; }
+               public bool highlight_matching_brackets { get; set; }
+               public bool highlight_syntax { get; set; }
+               public Gtk.SourceLanguage language { get; set; }
+               public int max_undo_levels { get; set; }
+               public Gtk.SourceStyleScheme style_scheme { get; set; }
+               public Gtk.SourceUndoManager undo_manager { get; set construct; }
+               public virtual signal void bracket_matched (Gtk.TextIter iter, Gtk.SourceBracketMatchType state);
+               public signal void highlight_updated (Gtk.TextIter object, Gtk.TextIter p0);
+               [HasEmitter]
+               public virtual signal void redo ();
+               public signal void source_mark_updated (Gtk.TextMark object);
+               [HasEmitter]
+               public virtual signal void undo ();
+       }
+       [CCode (type_id = "gtk_source_completion_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceCompletion : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected SourceCompletion ();
+               public bool add_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
+               public void block_interactive ();
+               public 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 void move_window (Gtk.TextIter iter);
+               [NoWrapper]
+               public virtual bool proposal_activated (Gtk.SourceCompletionProvider provider, Gtk.SourceCompletionProposal proposal);
+               public bool remove_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
+               public void unblock_interactive ();
+               [NoAccessorMethod]
+               public uint accelerators { get; set construct; }
+               [NoAccessorMethod]
+               public uint auto_complete_delay { get; set construct; }
+               [NoAccessorMethod]
+               public uint proposal_page_size { get; set construct; }
+               [NoAccessorMethod]
+               public uint provider_page_size { get; set construct; }
+               [NoAccessorMethod]
+               public bool remember_info_visibility { get; set construct; }
+               [NoAccessorMethod]
+               public bool select_on_show { get; set construct; }
+               [NoAccessorMethod]
+               public bool show_headers { get; set construct; }
+               [NoAccessorMethod]
+               public bool show_icons { get; set construct; }
+               public Gtk.SourceView view { get; construct; }
+               public virtual signal void activate_proposal ();
+               [HasEmitter]
+               public virtual signal void hide ();
+               public virtual signal void move_cursor (Gtk.ScrollStep step, int num);
+               public virtual signal void move_page (Gtk.ScrollStep step, int num);
+               public virtual signal void populate_context (Gtk.SourceCompletionContext context);
+               [HasEmitter]
+               public virtual signal void show ();
+       }
+       [CCode (type_id = "gtk_source_completion_context_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceCompletionContext : GLib.InitiallyUnowned {
+               [CCode (has_construct_function = false)]
+               protected SourceCompletionContext ();
+               public void add_proposals (Gtk.SourceCompletionProvider provider, GLib.List<Gtk.SourceCompletionProposal> proposals, bool finished);
+               public Gtk.SourceCompletionActivation get_activation ();
+               public Gtk.TextIter get_iter ();
+               [NoAccessorMethod]
+               public Gtk.SourceCompletionActivation activation { get; set; }
+               [NoAccessorMethod]
+               public Gtk.SourceCompletion completion { owned get; construct; }
+               [NoAccessorMethod]
+               public Gtk.TextIter iter { get; set; }
+               public virtual signal void cancelled ();
+       }
+       [CCode (type_id = "gtk_source_completion_info_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceCompletionInfo : Gtk.Window, Atk.Implementor, Gtk.Buildable {
+               [CCode (has_construct_function = false)]
+               public SourceCompletionInfo ();
+               public unowned Gtk.Widget get_widget ();
+               public void move_to_iter (Gtk.TextView view, Gtk.TextIter? iter);
+               public void set_widget (Gtk.Widget? widget);
+               public virtual signal void before_show ();
+       }
+       [CCode (type_id = "gtk_source_completion_item_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceCompletionItem : GLib.Object, Gtk.SourceCompletionProposal {
+               [CCode (has_construct_function = false)]
+               public SourceCompletionItem (string label, string text, Gdk.Pixbuf? icon, string? info);
+               [CCode (has_construct_function = false)]
+               public SourceCompletionItem.from_stock (string? label, string text, string stock, string? info);
+               [CCode (has_construct_function = false)]
+               public SourceCompletionItem.with_markup (string markup, string text, Gdk.Pixbuf? icon, string? info);
+               [NoAccessorMethod]
+               public Gdk.Pixbuf icon { owned get; set; }
+               [NoAccessorMethod]
+               public string info { owned get; set; }
+               [NoAccessorMethod]
+               public string label { owned get; set; }
+               [NoAccessorMethod]
+               public string markup { owned get; set; }
+               [NoAccessorMethod]
+               public string text { owned get; set; }
+       }
+       [CCode (type_id = "gtk_source_completion_words_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceCompletionWords : GLib.Object, Gtk.SourceCompletionProvider {
+               [CCode (has_construct_function = false)]
+               public SourceCompletionWords (string? name, Gdk.Pixbuf? icon);
+               public void register (Gtk.TextBuffer buffer);
+               public void unregister (Gtk.TextBuffer buffer);
+               [NoAccessorMethod]
+               public Gdk.Pixbuf icon { owned get; set construct; }
+               [NoAccessorMethod]
+               public int interactive_delay { get; set construct; }
+               [NoAccessorMethod]
+               public uint minimum_word_size { get; set construct; }
+               [NoAccessorMethod]
+               public string name { owned get; set construct; }
+               [NoAccessorMethod]
+               public int priority { get; set construct; }
+               [NoAccessorMethod]
+               public uint proposals_batch_size { get; set construct; }
+               [NoAccessorMethod]
+               public uint scan_batch_size { get; set construct; }
+       }
+       [CCode (type_id = "gtk_source_gutter_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceGutter : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected SourceGutter ();
+               public void get_padding (int xpad, int ypad);
+               public unowned Gdk.Window get_window ();
+               public bool insert (Gtk.SourceGutterRenderer renderer, int position);
+               public void queue_draw ();
+               public void remove (Gtk.SourceGutterRenderer renderer);
+               public void reorder (Gtk.SourceGutterRenderer renderer, int position);
+               public void set_padding (int xpad, int ypad);
+               [NoAccessorMethod]
+               public Gtk.SourceView view { owned get; construct; }
+               [NoAccessorMethod]
+               public Gtk.TextWindowType window_type { get; construct; }
+               [NoAccessorMethod]
+               public int xpad { get; set construct; }
+               [NoAccessorMethod]
+               public int ypad { get; set construct; }
+       }
+       [CCode (type_id = "gtk_source_gutter_renderer_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public abstract class SourceGutterRenderer : GLib.InitiallyUnowned {
+               [CCode (has_construct_function = false)]
+               protected SourceGutterRenderer ();
+               public virtual void activate (Gtk.TextIter iter, Gdk.Rectangle area, Gdk.Event event);
+               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);
+               [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);
+               public virtual void end ();
+               public void get_alignment (out float xalign, out float yalign);
+               public Gtk.SourceGutterRendererAlignmentMode get_alignment_mode ();
+               public bool get_background (out Gdk.RGBA color);
+               public void get_padding (out int xpad, out int ypad);
+               public int get_size ();
+               public unowned Gtk.TextView get_view ();
+               public bool get_visible ();
+               public Gtk.TextWindowType get_window_type ();
+               public virtual bool query_activatable (Gtk.TextIter iter, Gdk.Rectangle area, Gdk.Event event);
+               public virtual bool query_tooltip (Gtk.TextIter iter, Gdk.Rectangle area, int x, int y, Gtk.Tooltip tooltip);
+               public void set_alignment (float xalign, float yalign);
+               public void set_alignment_mode (Gtk.SourceGutterRendererAlignmentMode mode);
+               public void set_background (Gdk.RGBA? color);
+               public void set_padding (int xpad, int ypad);
+               public void set_size (int size);
+               public void set_visible (bool visible);
+               public Gtk.SourceGutterRendererAlignmentMode alignment_mode { get; set construct; }
+               [NoAccessorMethod]
+               public Gdk.RGBA background_rgba { get; set; }
+               [NoAccessorMethod]
+               public bool background_set { get; set construct; }
+               public int size { get; set construct; }
+               public Gtk.TextView view { get; }
+               public bool visible { get; set construct; }
+               public Gtk.TextWindowType window_type { get; }
+               [NoAccessorMethod]
+               public float xalign { get; set construct; }
+               [NoAccessorMethod]
+               public int xpad { get; set construct; }
+               [NoAccessorMethod]
+               public float yalign { get; set construct; }
+               [NoAccessorMethod]
+               public int ypad { get; set construct; }
+               [HasEmitter]
+               public virtual signal void query_data (Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceGutterRendererState state);
+               [HasEmitter]
+               public virtual signal void queue_draw ();
+       }
+       [CCode (type_id = "gtk_source_gutter_renderer_pixbuf_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceGutterRendererPixbuf : Gtk.SourceGutterRenderer {
+               [CCode (type = "GtkSourceGutterRenderer*", has_construct_function = false)]
+               public SourceGutterRendererPixbuf ();
+               public unowned GLib.Icon get_gicon ();
+               public unowned string get_icon_name ();
+               public unowned Gdk.Pixbuf get_pixbuf ();
+               public unowned string get_stock_id ();
+               public void set_gicon (GLib.Icon icon);
+               public void set_icon_name (string icon_name);
+               public void set_pixbuf (Gdk.Pixbuf pixbuf);
+               public void set_stock_id (string stock_id);
+               public GLib.Icon gicon { get; set; }
+               public string icon_name { get; set; }
+               public Gdk.Pixbuf pixbuf { get; set; }
+               public string stock_id { get; set; }
+       }
+       [CCode (type_id = "gtk_source_gutter_renderer_text_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceGutterRendererText : Gtk.SourceGutterRenderer {
+               [CCode (type = "GtkSourceGutterRenderer*", has_construct_function = false)]
+               public SourceGutterRendererText ();
+               public void measure (string text, int width, int height);
+               public void measure_markup (string markup, int width, int height);
+               public void set_markup (string markup, int length);
+               public void set_text (string text, int length);
+               [NoAccessorMethod]
+               public string markup { owned get; set construct; }
+               [NoAccessorMethod]
+               public string text { owned get; set construct; }
+       }
+       [CCode (type_id = "gtk_source_language_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceLanguage : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected SourceLanguage ();
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] get_globs ();
+               public bool get_hidden ();
+               public unowned string get_id ();
+               public unowned string get_metadata (string name);
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] get_mime_types ();
+               public unowned string get_name ();
+               public unowned string get_section ();
+               [CCode (array_length = false, array_null_terminated = true)]
+               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; }
+               public string section { get; }
+       }
+       [CCode (type_id = "gtk_source_language_manager_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceLanguageManager : GLib.Object {
+               [CCode (has_construct_function = false)]
+               public SourceLanguageManager ();
+               public static unowned Gtk.SourceLanguageManager get_default ();
+               public unowned Gtk.SourceLanguage get_language (string id);
+               [CCode (array_length = false, array_null_terminated = true)]
+               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 void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? dirs);
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] language_ids { get; }
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] search_path { get; set; }
+       }
+       [CCode (type_id = "gtk_source_mark_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceMark : Gtk.TextMark {
+               [CCode (has_construct_function = false)]
+               public SourceMark (string name, string category);
+               public unowned string get_category ();
+               public unowned Gtk.SourceMark next (string? category);
+               public unowned Gtk.SourceMark prev (string category);
+               public string category { get; construct; }
+       }
+       [CCode (type_id = "gtk_source_mark_attributes_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceMarkAttributes : GLib.Object {
+               [CCode (has_construct_function = false)]
+               public SourceMarkAttributes ();
+               public bool get_background (out Gdk.RGBA background);
+               public unowned GLib.Icon get_gicon ();
+               public unowned string get_icon_name ();
+               public unowned Gdk.Pixbuf get_pixbuf ();
+               public unowned string get_stock_id ();
+               public string get_tooltip_markup (Gtk.SourceMark mark);
+               public string get_tooltip_text (Gtk.SourceMark mark);
+               public unowned Gdk.Pixbuf render_icon (Gtk.Widget widget, int size);
+               public void set_background (Gdk.RGBA background);
+               public void set_gicon (GLib.Icon gicon);
+               public void set_icon_name (string icon_name);
+               public void set_pixbuf (Gdk.Pixbuf pixbuf);
+               public void set_stock_id (string stock_id);
+               [NoAccessorMethod]
+               public Gdk.RGBA background { get; set; }
+               public GLib.Icon gicon { get; set; }
+               public string icon_name { get; set; }
+               public Gdk.Pixbuf pixbuf { get; set; }
+               public string stock_id { get; set; }
+               public signal string query_tooltip_markup (Gtk.SourceMark mark);
+               public signal string query_tooltip_text (Gtk.SourceMark mark);
+       }
+       [CCode (type_id = "gtk_source_print_compositor_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourcePrintCompositor : GLib.Object {
+               [CCode (has_construct_function = false)]
+               public SourcePrintCompositor (Gtk.SourceBuffer buffer);
+               public void draw_page (Gtk.PrintContext context, int page_nr);
+               [CCode (has_construct_function = false)]
+               public SourcePrintCompositor.from_view (Gtk.SourceView view);
+               public string get_body_font_name ();
+               public double get_bottom_margin (Gtk.Unit unit);
+               public unowned Gtk.SourceBuffer get_buffer ();
+               public string get_footer_font_name ();
+               public string get_header_font_name ();
+               public bool get_highlight_syntax ();
+               public double get_left_margin (Gtk.Unit unit);
+               public string get_line_numbers_font_name ();
+               public int get_n_pages ();
+               public double get_pagination_progress ();
+               public bool get_print_footer ();
+               public bool get_print_header ();
+               public uint get_print_line_numbers ();
+               public double get_right_margin (Gtk.Unit unit);
+               public uint get_tab_width ();
+               public double get_top_margin (Gtk.Unit unit);
+               public Gtk.WrapMode get_wrap_mode ();
+               public bool paginate (Gtk.PrintContext context);
+               public void set_body_font_name (string font_name);
+               public void set_bottom_margin (double margin, Gtk.Unit unit);
+               public void set_footer_font_name (string? font_name);
+               public void set_footer_format (bool separator, string? left, string? center, string? right);
+               public void set_header_font_name (string? font_name);
+               public void set_header_format (bool separator, string? left, string? center, string? right);
+               public void set_highlight_syntax (bool highlight);
+               public void set_left_margin (double margin, Gtk.Unit unit);
+               public void set_line_numbers_font_name (string? font_name);
+               public void set_print_footer (bool print);
+               public void set_print_header (bool print);
+               public void set_print_line_numbers (uint interval);
+               public void set_right_margin (double margin, Gtk.Unit unit);
+               public void set_tab_width (uint width);
+               public void set_top_margin (double margin, Gtk.Unit unit);
+               public void set_wrap_mode (Gtk.WrapMode wrap_mode);
+               public string body_font_name { owned get; set; }
+               public Gtk.SourceBuffer buffer { get; construct; }
+               public string footer_font_name { owned get; set; }
+               public string header_font_name { owned get; set; }
+               public bool highlight_syntax { get; set; }
+               public string line_numbers_font_name { owned get; set; }
+               public int n_pages { get; }
+               public bool print_footer { get; set; }
+               public bool print_header { get; set; }
+               public uint print_line_numbers { get; set; }
+               public uint tab_width { get; set; }
+               public Gtk.WrapMode wrap_mode { get; set; }
+       }
+       [CCode (type_id = "gtk_source_style_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceStyle : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected SourceStyle ();
+               public Gtk.SourceStyle copy ();
+               [NoAccessorMethod]
+               public string background { owned get; construct; }
+               [NoAccessorMethod]
+               public bool background_set { get; construct; }
+               [NoAccessorMethod]
+               public bool bold { get; construct; }
+               [NoAccessorMethod]
+               public bool bold_set { get; construct; }
+               [NoAccessorMethod]
+               public string foreground { owned get; construct; }
+               [NoAccessorMethod]
+               public bool foreground_set { get; construct; }
+               [NoAccessorMethod]
+               public bool italic { get; construct; }
+               [NoAccessorMethod]
+               public bool italic_set { get; construct; }
+               [NoAccessorMethod]
+               public string line_background { owned get; construct; }
+               [NoAccessorMethod]
+               public bool line_background_set { get; construct; }
+               [NoAccessorMethod]
+               public bool strikethrough { get; construct; }
+               [NoAccessorMethod]
+               public bool strikethrough_set { get; construct; }
+               [NoAccessorMethod]
+               public bool underline { get; construct; }
+               [NoAccessorMethod]
+               public bool underline_set { get; construct; }
+       }
+       [CCode (type_id = "gtk_source_style_scheme_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceStyleScheme : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected SourceStyleScheme ();
+               [CCode (array_length = false, array_null_terminated = true)]
+               public unowned string[] get_authors ();
+               public unowned string get_description ();
+               public unowned string get_filename ();
+               public unowned string get_id ();
+               public unowned string get_name ();
+               public unowned Gtk.SourceStyle get_style (string style_id);
+               public string description { get; }
+               public string filename { get; }
+               public string id { get; construct; }
+               public string name { get; }
+       }
+       [CCode (type_id = "gtk_source_style_scheme_manager_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceStyleSchemeManager : GLib.Object {
+               [CCode (has_construct_function = false)]
+               public SourceStyleSchemeManager ();
+               public void append_search_path (string path);
+               public void force_rescan ();
+               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 ();
+               [CCode (array_length = false, array_null_terminated = true)]
+               public unowned string[] get_search_path ();
+               public void prepend_search_path (string path);
+               public void set_search_path ([CCode (array_length = false, array_null_terminated = true)] string[]? path);
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] scheme_ids { get; }
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] search_path { get; set; }
+       }
+       [CCode (type_id = "gtk_source_view_get_type ()", cheader_filename = "gtksourceview/gtksource.h")]
+       public class SourceView : Gtk.TextView, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
+               [CCode (type = "GtkWidget*", has_construct_function = false)]
+               public SourceView ();
+               public bool get_auto_indent ();
+               public unowned Gtk.SourceCompletion get_completion ();
+               public Gtk.SourceDrawSpacesFlags get_draw_spaces ();
+               public unowned Gtk.SourceGutter get_gutter (Gtk.TextWindowType window_type);
+               public bool get_highlight_current_line ();
+               public bool get_indent_on_tab ();
+               public int get_indent_width ();
+               public bool get_insert_spaces_instead_of_tabs ();
+               public unowned Gtk.SourceMarkAttributes get_mark_attributes (string category, int priority);
+               public uint get_right_margin_position ();
+               public bool get_show_line_marks ();
+               public bool get_show_line_numbers ();
+               public bool get_show_right_margin ();
+               public Gtk.SourceSmartHomeEndType get_smart_home_end ();
+               public uint get_tab_width ();
+               public uint get_visual_column (Gtk.TextIter iter);
+               public void set_auto_indent (bool enable);
+               public void set_draw_spaces (Gtk.SourceDrawSpacesFlags flags);
+               public void set_highlight_current_line (bool hl);
+               public void set_indent_on_tab (bool enable);
+               public void set_indent_width (int width);
+               public void set_insert_spaces_instead_of_tabs (bool enable);
+               public void set_mark_attributes (string category, Gtk.SourceMarkAttributes attributes, int priority);
+               public void set_right_margin_position (uint pos);
+               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_home_end (Gtk.SourceSmartHomeEndType smart_he);
+               public void set_tab_width (uint width);
+               [CCode (type = "GtkWidget*", has_construct_function = false)]
+               public SourceView.with_buffer (Gtk.SourceBuffer buffer);
+               public bool auto_indent { get; set; }
+               public Gtk.SourceCompletion completion { get; }
+               public Gtk.SourceDrawSpacesFlags draw_spaces { get; set; }
+               public bool highlight_current_line { get; set; }
+               public bool indent_on_tab { get; set; }
+               public int indent_width { get; set; }
+               public bool insert_spaces_instead_of_tabs { get; set; }
+               public uint right_margin_position { get; set; }
+               public bool show_line_marks { get; set; }
+               public bool show_line_numbers { get; set; }
+               public bool show_right_margin { get; set; }
+               public Gtk.SourceSmartHomeEndType smart_home_end { get; set; }
+               public uint tab_width { get; set; }
+               public virtual signal void line_mark_activated (Gtk.TextIter iter, Gdk.Event event);
+               public virtual signal void move_lines (bool copy, int step);
+               public virtual signal void move_words (int step);
+               public virtual signal void redo ();
+               public virtual signal void show_completion ();
+               public virtual signal void undo ();
+       }
+       [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_proposal_get_type ()")]
+       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 string get_label ();
+               public abstract string get_markup ();
+               public abstract string get_text ();
+               public virtual uint hash ();
+               [HasEmitter]
+               public virtual signal void changed ();
+       }
+       [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_provider_get_type ()")]
+       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 Gdk.Pixbuf? get_icon ();
+               public virtual unowned Gtk.Widget? get_info_widget (Gtk.SourceCompletionProposal proposal);
+               public virtual int get_interactive_delay ();
+               public virtual string get_name ();
+               public virtual int get_priority ();
+               public virtual bool get_start_iter (Gtk.SourceCompletionContext context, Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter);
+               public virtual bool match (Gtk.SourceCompletionContext context);
+               public virtual void populate (Gtk.SourceCompletionContext context);
+               public virtual void update_info (Gtk.SourceCompletionProposal proposal, Gtk.SourceCompletionInfo info);
+       }
+       [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_undo_manager_get_type ()")]
+       public interface SourceUndoManager : GLib.Object {
+               public abstract void begin_not_undoable_action ();
+               public abstract bool can_redo ();
+               public abstract bool can_undo ();
+               public abstract void end_not_undoable_action ();
+               public abstract void redo ();
+               public abstract void undo ();
+               [HasEmitter]
+               public virtual signal void can_redo_changed ();
+               [HasEmitter]
+               public virtual signal void can_undo_changed ();
+       }
+       [CCode (cprefix = "GTK_SOURCE_BRACKET_MATCH_", cheader_filename = "gtksourceview/gtksource.h")]
+       public enum SourceBracketMatchType {
+               NONE,
+               OUT_OF_RANGE,
+               NOT_FOUND,
+               FOUND
+       }
+       [CCode (cprefix = "GTK_SOURCE_COMPLETION_ACTIVATION_", cheader_filename = "gtksourceview/gtksource.h")]
+       [Flags]
+       public enum SourceCompletionActivation {
+               NONE,
+               INTERACTIVE,
+               USER_REQUESTED
+       }
+       [CCode (cprefix = "GTK_SOURCE_DRAW_SPACES_", cheader_filename = "gtksourceview/gtksource.h")]
+       [Flags]
+       public enum SourceDrawSpacesFlags {
+               SPACE,
+               TAB,
+               NEWLINE,
+               NBSP,
+               LEADING,
+               TEXT,
+               TRAILING,
+               ALL
+       }
+       [CCode (cprefix = "GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_", cheader_filename = "gtksourceview/gtksource.h")]
+       public enum SourceGutterRendererAlignmentMode {
+               CELL,
+               FIRST,
+               LAST
+       }
+       [CCode (cprefix = "GTK_SOURCE_GUTTER_RENDERER_STATE_", cheader_filename = "gtksourceview/gtksource.h")]
+       [Flags]
+       public enum SourceGutterRendererState {
+               NORMAL,
+               CURSOR,
+               PRELIT,
+               SELECTED
+       }
+       [CCode (cprefix = "GTK_SOURCE_SMART_HOME_END_", cheader_filename = "gtksourceview/gtksource.h")]
+       public enum SourceSmartHomeEndType {
+               DISABLED,
+               BEFORE,
+               AFTER,
+               ALWAYS
+       }
+       [CCode (cprefix = "GTK_SOURCE_VIEW_GUTTER_POSITION_", cheader_filename = "gtksourceview/gtksource.h")]
+       public enum SourceViewGutterPosition {
+               LINES,
+               MARKS
+       }
+       [CCode (cprefix = "GTK_SOURCE_COMPLETION_ERROR_", cheader_filename = "gtksourceview/gtksource.h")]
+       public errordomain SourceCompletionError {
+               ALREADY_BOUND,
+               NOT_BOUND;
+               [CCode (cname = "gtk_source_completion_error_quark")]
+               public static GLib.Quark uark ();
+       }
+}
diff --git a/vapi/metadata/GtkSource-3.0.metadata b/vapi/metadata/GtkSource-3.0.metadata
new file mode 100644 (file)
index 0000000..d570b4e
--- /dev/null
@@ -0,0 +1,12 @@
+* name="(.+)/Source\\1"
+GtkSource name="Gtk" cprefix="Gtk"
+CompletionProvider
+        .*#virtual_method virtual
+        .get_icon nullable
+        .get_info_widget nullable
+CompletionProposal
+        .equal#virtual_method virtual
+        .get_icon#virtual_method virtual
+        .hash#virtual_method virtual
+COMPLETION_CAPABILITY_INTERACTIVE name="INTERACTIVE" parent="Gtk.SourceCompletionCapability"
+COMPLETION_CAPABILITY_AUTOMATIC name="AUTOMATIC" parent="Gtk.SourceCompletionCapability"