[gedit/wip/snipfix: 2/3] [snippets] Fix super init



commit e918344571915e903c80a73c9bfc66dcd11149d3
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sat Apr 12 14:51:05 2014 +0200

    [snippets] Fix super init

 plugins/snippets/snippets/completion.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/snippets/snippets/completion.py b/plugins/snippets/snippets/completion.py
index 55d3a65..3f8bf51 100644
--- a/plugins/snippets/snippets/completion.py
+++ b/plugins/snippets/snippets/completion.py
@@ -25,7 +25,7 @@ class Proposal(GObject.Object, GtkSource.CompletionProposal):
     __gtype_name__ = "GeditSnippetsProposal"
 
     def __init__(self, snippet):
-        GObject.Object.__init__(self)
+        super(Proposal, self).__init__()
         self._snippet = Snippet(snippet)
 
     def snippet(self):
@@ -42,7 +42,7 @@ class Provider(GObject.Object, GtkSource.CompletionProvider):
     __gtype_name__ = "GeditSnippetsProvider"
 
     def __init__(self, name, language_id, handler):
-        GObject.Object.__init__(self)
+        super(Provider, self).__init__()
 
         self.name = name
         self.info_widget = None


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