diff options
author | Jesse van den Kieboom <jesse.vandenkieboom@epfl.ch> | 2011-03-23 23:51:26 +0100 |
---|---|---|
committer | Jesse van den Kieboom <jesse.vandenkieboom@epfl.ch> | 2011-03-23 23:51:26 +0100 |
commit | 8e1b20ad3e9c7accd48a528cd00783345a4b49d9 (patch) | |
tree | c8a21af39ae84fc5cb424776be12fd9e6619e4a0 | |
parent | 721d7481b964e1e9f10fbe9a91d2db16a2974573 (diff) | |
download | gedit-8e1b20ad3e9c7accd48a528cd00783345a4b49d9.tar.gz |
Disable iter support (requires pygobject fix) in snippets activate messagenew-message-bus
-rw-r--r-- | plugins/snippets/snippets/windowactivatable.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/snippets/snippets/windowactivatable.py b/plugins/snippets/snippets/windowactivatable.py index 79c0d8ece..5ff8f9a2b 100644 --- a/plugins/snippets/snippets/windowactivatable.py +++ b/plugins/snippets/snippets/windowactivatable.py @@ -27,7 +27,8 @@ from library import Library class Activate(Gedit.Message): view = GObject.property(type=Gedit.View) - iter = GObject.property(type=Gtk.TextIter) +# FIXME: fix as soon as fix lands in pygobject +# iter = GObject.property(type=Gtk.TextIter) trigger = GObject.property(type=str) class WindowActivatable(GObject.Object, Gedit.WindowActivatable): @@ -107,10 +108,11 @@ class WindowActivatable(GObject.Object, Gedit.WindowActivatable): if not self.has_controller(view): return - iter = message.props.iter + # TODO: fix me as soon as the property fix lands in pygobject + #iter = message.props.iter - if not iter: - iter = view.get_buffer().get_iter_at_mark(view.get_buffer().get_insert()) + #if not iter: + iter = view.get_buffer().get_iter_at_mark(view.get_buffer().get_insert()) controller = view._snippet_controller controller.run_snippet_trigger(message.props.trigger, (iter, iter)) |