[latexila/wip/completion-item] Completion: use the new GtkSourceCompletionItem API



commit d1bf1c68d379e34cf027f617bb45a62cae0f1d44
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Oct 21 20:16:42 2016 +0200

    Completion: use the new GtkSourceCompletionItem API

 src/completion.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/completion.vala b/src/completion.vala
index 6393fe5..4d6ab30 100644
--- a/src/completion.vala
+++ b/src/completion.vala
@@ -922,11 +922,11 @@ public class CompletionProvider : GLib.Object, SourceCompletionProvider
                 Gdk.Pixbuf pixbuf = _current_command.package != null
                     ? _icon_package_required : _icon_cmd;
 
-                var item = new SourceCompletionItem (_current_command.name,
-                    get_command_text_to_insert (_current_command),
-                    pixbuf,
-                    get_command_info (_current_command));
-
+                SourceCompletionItem item = SourceCompletionItem.new2 ();
+                item.set_label (_current_command.name);
+                item.set_text (get_command_text_to_insert (_current_command));
+                item.set_icon (pixbuf);
+                item.set_info (get_command_info (_current_command));
                 _proposals.prepend (item);
 
                 // We don't need to store commands that have no arguments,


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