[vala] gtksourceview-2.0: Fix SourceCompletionContext and SourceCompletionProvider



commit 66e502385bca087b1c1ef9499370b40854eb864b
Author: Andrea Del Signore <sejerpz tin it>
Date:   Sun Jan 23 20:10:20 2011 +0100

    gtksourceview-2.0: Fix SourceCompletionContext and SourceCompletionProvider

 vapi/gtksourceview-2.0.vapi                        |    8 ++++----
 .../gtksourceview-2.0/gtksourceview-2.0.metadata   |   11 +++++------
 2 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/vapi/gtksourceview-2.0.vapi b/vapi/gtksourceview-2.0.vapi
index 0e20321..c9dd099 100644
--- a/vapi/gtksourceview-2.0.vapi
+++ b/vapi/gtksourceview-2.0.vapi
@@ -96,7 +96,7 @@ namespace Gtk {
 	public class SourceCompletionContext : GLib.InitiallyUnowned {
 		[CCode (has_construct_function = false)]
 		protected SourceCompletionContext ();
-		public void add_proposals (void* provider, GLib.List proposals, bool finished);
+		public void add_proposals (Gtk.SourceCompletionProvider provider, GLib.List<Gtk.SourceCompletionProposal> proposals, bool finished);
 		public Gtk.SourceCompletionActivation get_activation ();
 		public void get_iter (Gtk.TextIter iter);
 		[NoAccessorMethod]
@@ -428,10 +428,10 @@ 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 Gdk.Pixbuf get_icon ();
-		public virtual unowned Gtk.Widget get_info_widget (Gtk.SourceCompletionProposal proposal);
+		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 unowned string get_name ();
+		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);
diff --git a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
index c68c6c3..6d9571b 100644
--- a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
+++ b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
@@ -17,9 +17,6 @@ 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_icon 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"
 gtk_source_completion_proposal_get_info transfer_ownership="1"
@@ -39,9 +36,9 @@ gtk_source_language_manager_get_search_path is_array="1" nullable="1" array_null
 gtk_source_language_manager_set_search_path.dirs is_array="1" nullable="1" array_null_terminated="1"
 GtkSourcePrintCompositor cheader_filename="gtksourceview/gtksourceprintcompositor.h"
 gtk_source_completion_provider_* virtual="1"
-gtk_source_completion_provider_get_name virtual="1"
-gtk_source_completion_provider_get_icon virtual="1"
-gtk_source_completion_provider_get_info_widget virtual="1"
+gtk_source_completion_provider_get_name virtual="1" transfer_ownership="1"
+gtk_source_completion_provider_get_icon virtual="1" nullable="1"
+gtk_source_completion_provider_get_info_widget virtual="1" nullable="1"
 gtk_source_completion_proposal_* virtual="1"
 GtkSourceSearchFlags cheader_filename="gtksourceview/gtksourceiter.h"
 GtkSourceStyleSchemeManager cheader_filename="gtksourceview/gtksourcestyleschememanager.h"
@@ -52,3 +49,5 @@ GtkSourceUndoManager::can_redo_changed has_emitter="1"
 GtkSourceUndoManager::can_undo_changed has_emitter="1"
 GtkTextRegion hidden="1"
 GtkTextRegionIterator hidden="1"
+gtk_source_completion_context_add_proposals.provider type_name="Gtk.SourceCompletionProvider"
+gtk_source_completion_context_add_proposals.proposals type_arguments="Gtk.SourceCompletionProposal"



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