[vala] gtksourceview-2.0: Various fixes for GtkSourceCompletion.
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtksourceview-2.0: Various fixes for GtkSourceCompletion.
- Date: Sat, 7 Aug 2010 17:52:47 +0000 (UTC)
commit 459a2a0e61fa37f0c173fb93a41928a685d476af
Author: Andrea Del Signore <sejerpz tin it>
Date: Sat Aug 7 10:48:52 2010 -0700
gtksourceview-2.0: Various fixes for GtkSourceCompletion.
vapi/gtksourceview-2.0.vapi | 12 ++++++------
.../gtksourceview-2.0/gtksourceview-2.0.metadata | 8 +++++++-
2 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/vapi/gtksourceview-2.0.vapi b/vapi/gtksourceview-2.0.vapi
index 3d3da82..a689d0a 100644
--- a/vapi/gtksourceview-2.0.vapi
+++ b/vapi/gtksourceview-2.0.vapi
@@ -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);
diff --git a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
index 5fb2fa9..ca5c0d7 100644
--- a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
+++ b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata
@@ -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"
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]