[kupfer] Define Source.provides for Triggers and Running Applications
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] Define Source.provides for Triggers and Running Applications
- Date: Mon, 18 Jan 2010 16:36:58 +0000 (UTC)
commit 85468af5ff0caaf505923ccb4de039d7e7426c32
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Jan 18 15:38:39 2010 +0100
Define Source.provides for Triggers and Running Applications
contrib/runningapplications.py | 3 +++
kupfer/plugin/triggers.py | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/contrib/runningapplications.py b/contrib/runningapplications.py
index a62c48a..419703c 100644
--- a/contrib/runningapplications.py
+++ b/contrib/runningapplications.py
@@ -30,6 +30,9 @@ class RunningApplicationsSource (Source):
is_running = launch.application_is_running
return (AppLeaf(ai) for ai in self.all_apps if is_running(ai))
+ def provides(self):
+ yield AppLeaf
+
def get_description(self):
return _("Running applications")
diff --git a/kupfer/plugin/triggers.py b/kupfer/plugin/triggers.py
index cac4a8e..61580e2 100644
--- a/kupfer/plugin/triggers.py
+++ b/kupfer/plugin/triggers.py
@@ -67,6 +67,9 @@ class Triggers (Source):
def should_sort_lexically(self):
return True
+ def provides(self):
+ yield Trigger
+
@classmethod
def perform_trigger(cls, target):
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]