From: Evan Nemerson Date: Tue, 6 Apr 2010 22:07:02 +0000 (-0700) Subject: gtksourceview-2.0: update to 2.10.0 X-Git-Tag: 0.8.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02db9ef2bafc87c1506e91457ed4e8368e94a76f;p=thirdparty%2Fvala.git gtksourceview-2.0: update to 2.10.0 --- diff --git a/vapi/gtksourceview-2.0.vapi b/vapi/gtksourceview-2.0.vapi index 345279500..1e6f70c19 100644 --- a/vapi/gtksourceview-2.0.vapi +++ b/vapi/gtksourceview-2.0.vapi @@ -12,6 +12,7 @@ namespace Gtk { 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); + public unowned 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 (); @@ -19,14 +20,17 @@ namespace Gtk { public unowned GLib.SList get_source_marks_at_iter (Gtk.TextIter iter, string category); public unowned GLib.SList get_source_marks_at_line (int line, string category); public unowned Gtk.SourceStyleScheme get_style_scheme (); - public void redo (); + 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 undo (); + public void set_undo_manager (Gtk.SourceUndoManager manager); [CCode (has_construct_function = false)] public SourceBuffer.with_language (Gtk.SourceLanguage language); [NoAccessorMethod] @@ -38,7 +42,141 @@ namespace Gtk { 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 highlight_updated (Gtk.TextIter p0, Gtk.TextIter p1); + [HasEmitter] + public virtual signal void redo (); public virtual signal void source_mark_updated (Gtk.TextMark p0); + [HasEmitter] + public virtual signal void undo (); + } + [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] + public class SourceCompletion : Gtk.Object { + public bool add_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error; + public void block_interactive (); + public unowned Gtk.SourceCompletionContext create_context (Gtk.TextIter position); + public static GLib.Quark error_quark (); + public unowned Gtk.SourceCompletionInfo get_info_window (); + public unowned GLib.List get_providers (); + public void* 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 (cheader_filename = "gtksourceview/gtksourceview.h")] + public class SourceCompletionContext : GLib.InitiallyUnowned { + public void add_proposals (void* provider, GLib.List proposals, bool finished); + public Gtk.SourceCompletionActivation get_activation (); + public void get_iter (Gtk.TextIter 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 (cheader_filename = "gtksourceview/gtksourceview.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 process_resize (); + public void set_sizing (int width, int height, bool shrink_width, bool shrink_height); + public void set_widget (Gtk.Widget widget); + [NoAccessorMethod] + public int max_height { get; set construct; } + [NoAccessorMethod] + public int max_width { get; set construct; } + [NoAccessorMethod] + public bool shrink_height { get; set construct; } + [NoAccessorMethod] + public bool shrink_width { get; set construct; } + public virtual signal void before_show (); + } + [CCode (cheader_filename = "gtksourceview/gtksourceview.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 (cheader_filename = "gtksourceview/gtksourceview.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 (cheader_filename = "gtksourceview/gtksourceview.h")] + public class SourceGutter : GLib.Object { + public unowned Gdk.Window get_window (); + public void insert (Gtk.CellRenderer renderer, int position); + public void queue_draw (); + public void remove (Gtk.CellRenderer renderer); + public void reorder (Gtk.CellRenderer renderer, int position); + public void set_cell_data_func (Gtk.CellRenderer renderer, Gtk.SourceGutterDataFunc func, void* func_data, GLib.DestroyNotify destroy); + public void set_cell_size_func (Gtk.CellRenderer renderer, Gtk.SourceGutterSizeFunc func, void* func_data, GLib.DestroyNotify destroy); + [NoAccessorMethod] + public Gtk.SourceView view { owned get; construct; } + [NoAccessorMethod] + public Gtk.TextWindowType window_type { get; construct; } + public virtual signal void cell_activated (Gtk.CellRenderer renderer, Gtk.TextIter iter, Gdk.Event event); + public virtual signal bool query_tooltip (Gtk.CellRenderer renderer, Gtk.TextIter iter, Gtk.Tooltip tooltip); } [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] public class SourceLanguage : GLib.Object { @@ -205,7 +343,9 @@ namespace Gtk { [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 (); @@ -226,6 +366,9 @@ namespace Gtk { public void set_indent_width (int width); public void set_insert_spaces_instead_of_tabs (bool enable); public void set_mark_category_background (string category, Gdk.Color color); + public void set_mark_category_icon_from_icon_name (string category, string name); + public void set_mark_category_icon_from_pixbuf (string category, Gdk.Pixbuf pixbuf); + public void set_mark_category_icon_from_stock (string category, string stock_id); public void set_mark_category_pixbuf (string category, Gdk.Pixbuf pixbuf); public void set_mark_category_priority (string category, int priority); public void set_mark_category_tooltip_func (string category, Gtk.SourceViewMarkTooltipFunc func, GLib.DestroyNotify user_data_notify); @@ -239,6 +382,7 @@ namespace Gtk { [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; } @@ -250,9 +394,63 @@ namespace Gtk { 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 redo (); + public virtual signal void show_completion (); public virtual signal void undo (); } + [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] + public interface SourceCompletionProposal : GLib.Object { + public abstract bool equal (Gtk.SourceCompletionProposal other); + public abstract unowned Gdk.Pixbuf get_icon (); + public abstract unowned string get_info (); + public abstract unowned string get_label (); + public abstract unowned string get_markup (); + public abstract unowned string get_text (); + public abstract uint hash (); + [HasEmitter] + public signal void changed (); + } + [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] + public interface SourceCompletionProvider : GLib.Object { + public abstract bool activate_proposal (Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter); + public abstract Gtk.SourceCompletionActivation get_activation (); + public abstract unowned Gdk.Pixbuf get_icon (); + public abstract unowned Gtk.Widget get_info_widget (Gtk.SourceCompletionProposal proposal); + public abstract int get_interactive_delay (); + public abstract unowned string get_name (); + public abstract int get_priority (); + public abstract bool get_start_iter (Gtk.SourceCompletionContext context, Gtk.SourceCompletionProposal proposal, Gtk.TextIter iter); + public abstract bool match (Gtk.SourceCompletionContext context); + public abstract void populate (Gtk.SourceCompletionContext context); + public abstract void update_info (Gtk.SourceCompletionProposal proposal, Gtk.SourceCompletionInfo info); + } + [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] + 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 signal void can_redo_changed (); + [HasEmitter] + public signal void can_undo_changed (); + } + [CCode (cprefix = "GTK_SOURCE_COMPLETION_ACTIVATION_", cheader_filename = "gtksourceview/gtksourceview.h")] + [Flags] + public enum SourceCompletionActivation { + NONE, + INTERACTIVE, + USER_REQUESTED + } + [CCode (cprefix = "GTK_SOURCE_COMPLETION_ERROR_", cheader_filename = "gtksourceview/gtksourceview.h")] + public enum SourceCompletionError { + ALREADY_BOUND, + NOT_BOUND + } [CCode (cprefix = "GTK_SOURCE_DRAW_SPACES_", cheader_filename = "gtksourceview/gtksourceview.h")] [Flags] public enum SourceDrawSpacesFlags { @@ -260,6 +458,9 @@ namespace Gtk { TAB, NEWLINE, NBSP, + LEADING, + TEXT, + TRAILING, ALL } [CCode (cprefix = "GTK_SOURCE_SEARCH_", cheader_filename = "gtksourceview/gtksourceiter.h")] @@ -276,9 +477,22 @@ namespace Gtk { AFTER, ALWAYS } + [CCode (cprefix = "GTK_SOURCE_VIEW_GUTTER_POSITION_", cheader_filename = "gtksourceview/gtksourceview.h")] + public enum SourceViewGutterPosition { + LINES, + MARKS + } + [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] + public delegate void SourceGutterDataFunc (Gtk.SourceGutter gutter, Gtk.CellRenderer cell, int line_number, bool current_line); + [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] + public delegate void SourceGutterSizeFunc (Gtk.SourceGutter gutter, Gtk.CellRenderer cell); [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] public delegate unowned string SourceViewMarkTooltipFunc (Gtk.SourceMark mark); [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] + public const string SOURCE_COMPLETION_CAPABILITY_AUTOMATIC; + [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] + public const string SOURCE_COMPLETION_CAPABILITY_INTERACTIVE; + [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] public static bool source_iter_backward_search (Gtk.TextIter iter, string str, Gtk.SourceSearchFlags flags, out Gtk.TextIter match_start, out Gtk.TextIter match_end, Gtk.TextIter? limit); [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] public static bool source_iter_forward_search (Gtk.TextIter iter, string str, Gtk.SourceSearchFlags flags, out Gtk.TextIter match_start, out Gtk.TextIter match_end, Gtk.TextIter? limit); diff --git a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.gi b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.gi index 90d52a0ae..52d08327b 100644 --- a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.gi +++ b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.gi @@ -23,6 +23,24 @@ + + + + + + + + + + + + + + + + + + @@ -30,18 +48,34 @@ + + + + + + + + + + + + + - + + + + @@ -106,6 +140,13 @@ + + + + + + + @@ -152,6 +193,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -214,6 +285,13 @@ + + + + + + + @@ -227,6 +305,7 @@ + @@ -235,6 +314,12 @@ + + + + + + @@ -242,6 +327,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -780,12 +1244,25 @@ + + + + + + + + + + + + + @@ -927,6 +1404,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -1006,6 +1507,7 @@ + @@ -1017,12 +1519,34 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -1030,5 +1554,368 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata index 9ac97f0de..f2c59a205 100644 --- a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata +++ b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata @@ -7,8 +7,12 @@ gtk_source_iter_backward_search.limit nullable="1" gtk_source_iter_forward_search.match_start is_out="1" gtk_source_iter_forward_search.match_end is_out="1" gtk_source_iter_forward_search.limit nullable="1" -GtkSourceBuffer::highlight_updated hidden="1" -GtkSourceBuffer::marker_updated hidden="1" +GtkSourceBuffer::redo has_emitter="1" +GtkSourceBuffer::undo has_emitter="1" +GtkSourceCompletion::hide has_emitter="1" +GtkSourceCompletion::show has_emitter="1" +GtkSourceCompletionProposal::changed has_emitter="1" +GtkSourceCompletionProposal::show has_emitter="1" GtkSourceContextData hidden="1" GtkSourceContextEngine hidden="1" GtkSourceContextReplace hidden="1" @@ -26,6 +30,8 @@ GtkSourceStyleSchemeManager cheader_filename="gtksourceview/gtksourcestylescheme gtk_source_style_copy transfer_ownership="1" gtk_source_style_scheme_manager_get_search_path is_array="1" array_null_terminated="1" gtk_source_style_scheme_manager_get_scheme_ids is_array="1" array_null_terminated="1" +GtkSourceUndoManager::can_redo_changed has_emitter="1" +GtkSourceUndoManager::can_undo_changed has_emitter="1" GtkTextRegion hidden="1" GtkTextRegionIterator hidden="1"