From 034e36d4983da0c2d44c56d4efd9af922b2cab4e Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Mon, 07 Dec 2009 20:50:52 +0000 Subject: pass the overlayer as a keyword argument for do, enter_editmode and subscribe, remove object store references --- (limited to 'addons/typetextaction.py') diff --git a/addons/typetextaction.py b/addons/typetextaction.py index 8a09ff9..e4a5ecc 100644 --- a/addons/typetextaction.py +++ b/addons/typetextaction.py @@ -32,7 +32,9 @@ class TypeTextAction(Action): """ Type the text """ - widget = gtkutils.find_widget(ObjectStore().activity, self.widget) + if not "activity" in kwargs: + raise TypeError("Missing activity") + widget = gtkutils.find_widget(kwargs["activity"], self.widget) if hasattr(widget, "insert_text"): widget.insert_text(self.text, -1) -- cgit v0.9.1