[gedit/new-message-bus] Disable iter support (requires pygobject fix) in snippets activate message
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/new-message-bus] Disable iter support (requires pygobject fix) in snippets activate message
- Date: Wed, 23 Mar 2011 22:51:39 +0000 (UTC)
commit 8e1b20ad3e9c7accd48a528cd00783345a4b49d9
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Wed Mar 23 23:51:26 2011 +0100
Disable iter support (requires pygobject fix) in snippets activate message
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 79c0d8e..5ff8f9a 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]