[gedit] Updated snippets completion for pygi changes



commit bd5da58d0b375ce40ff34b6a2b12de7c76348ed8
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Tue Aug 14 14:51:43 2012 +0200

    Updated snippets completion for pygi changes

 plugins/snippets/snippets/completion.py |    2 +-
 plugins/snippets/snippets/document.py   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/snippets/snippets/completion.py b/plugins/snippets/snippets/completion.py
index bf9a4bd..b97ddba 100644
--- a/plugins/snippets/snippets/completion.py
+++ b/plugins/snippets/snippets/completion.py
@@ -166,7 +166,7 @@ class Defaults(GObject.Object, GtkSource.CompletionProvider):
                 self.proposals = []
 
                 for d in defaults:
-                        self.proposals.append(GtkSource.CompletionItem(d))
+                        self.proposals.append(GtkSource.CompletionItem.new(d, d, None, None))
 
         def do_get_name(self):
                 return ""
diff --git a/plugins/snippets/snippets/document.py b/plugins/snippets/snippets/document.py
index 119acae..5dc482e 100644
--- a/plugins/snippets/snippets/document.py
+++ b/plugins/snippets/snippets/document.py
@@ -287,7 +287,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
                                 self.defaults_provider.set_defaults(next.defaults)
 
                                 cm = self.view.get_completion()
-                                cm.show([self.defaults_provider], cm.create_context())
+                                cm.show([self.defaults_provider], cm.create_context(None))
 
                 if last:
                         # This is the end of the placeholder, remove the snippet etc



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