]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtksourceview-2.0: Various fixes for GtkSourceCompletion.
authorAndrea Del Signore <sejerpz@tin.it>
Sat, 7 Aug 2010 17:48:52 +0000 (10:48 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Sat, 7 Aug 2010 17:52:25 +0000 (10:52 -0700)
vapi/gtksourceview-2.0.vapi
vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata

index 3d3da821fe879cdb4a4d687dbf9ac79b4f8138df..a689d0a05b83adc2594ecaa88fdc6baa2cdeafea 100644 (file)
@@ -54,7 +54,7 @@ namespace Gtk {
        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 unowned Gtk.SourceCompletionContext create_context (Gtk.TextIter? position = null);
                public static GLib.Quark error_quark ();
                public unowned Gtk.SourceCompletionInfo get_info_window ();
                public unowned GLib.List get_providers ();
@@ -108,7 +108,7 @@ namespace Gtk {
                [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 move_to_iter (Gtk.TextView view, Gtk.TextIter? iter = null);
                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);
@@ -122,10 +122,10 @@ namespace Gtk {
                public bool shrink_width { get; set construct; }
                public virtual signal void before_show ();
        }
-       [CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
+       [CCode (cheader_filename = "gtksourceview/gtksourcecompletionitem.h")]
        public class SourceCompletionItem : GLib.Object, Gtk.SourceCompletionProposal {
                [CCode (has_construct_function = false)]
-               public SourceCompletionItem (string label, string text, Gdk.Pixbuf icon, string info);
+               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)]
@@ -417,9 +417,9 @@ namespace Gtk {
                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 unowned Gtk.Widget? get_info_widget (Gtk.SourceCompletionProposal proposal);
                public abstract int get_interactive_delay ();
-               public abstract unowned string get_name ();
+               public abstract 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);
index 5fb2fa99e19f703d45493160da32b1826197d7c7..ca5c0d7b95fa88d9a15bd1e1a6c2953ef1308f48 100644 (file)
@@ -12,6 +12,13 @@ GtkSourceBuffer::undo has_emitter="1"
 gtk_source_buffer_new.table nullable="1"
 GtkSourceCompletion::hide has_emitter="1"
 GtkSourceCompletion::show has_emitter="1"
+gtk_source_completion_create_context.position nullable="1" default_value="null"
+gtk_source_completion_info_move_to_iter.iter nullable="1" default_value="null"
+GtkSourceCompletionItem cheader_filename="gtksourceview/gtksourcecompletionitem.h"
+gtk_source_completion_item_new.icon nullable="1"
+gtk_source_completion_item_new.info nullable="1"
+gtk_source_completion_provider_get_name transfer_ownership="1"
+gtk_source_completion_provider_get_info_widget nullable="1"
 GtkSourceCompletionProposal::changed has_emitter="1"
 GtkSourceCompletionProposal::show has_emitter="1"
 GtkSourceContextData hidden="1"
@@ -35,4 +42,3 @@ GtkSourceUndoManager::can_redo_changed has_emitter="1"
 GtkSourceUndoManager::can_undo_changed has_emitter="1"
 GtkTextRegion hidden="1"
 GtkTextRegionIterator hidden="1"
-