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/clickaction.py') diff --git a/addons/clickaction.py b/addons/clickaction.py index eae713e..50726c6 100644 --- a/addons/clickaction.py +++ b/addons/clickaction.py @@ -30,7 +30,9 @@ class ClickAction(Action): """ click the widget """ - realWidget = gtkutils.find_widget(ObjectStore().activity, self.widget) + if not "activity" in kwargs: + raise TypeError("Missing activity") + realWidget = gtkutils.find_widget(kwargs["activity"], self.widget) if hasattr(realWidget, "clicked"): realWidget.clicked() -- cgit v0.9.1