[kupfer] plugin.google: Use the search engine source as source for action
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.google: Use the search engine source as source for action
- Date: Tue, 25 Aug 2009 13:22:29 +0000 (UTC)
commit db8e3e7df8a92116d3862f34e03e3b745bfb1de0
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Aug 25 02:13:52 2009 +0200
plugin.google: Use the search engine source as source for action
We could use the whole catalog to find search engines, by accepting
certain URLs (for example containing the %s for replacement). But as
long as we don't do that, it's better to just say the source is
OpenSearchSource
kupfer/plugin/google.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/google.py b/kupfer/plugin/google.py
index f05ea8b..2f16cb8 100644
--- a/kupfer/plugin/google.py
+++ b/kupfer/plugin/google.py
@@ -85,6 +85,9 @@ class SearchWithEngine (Action):
def object_types(self):
yield SearchEngine
+ def object_source(self, for_item=None):
+ return OpenSearchSource()
+
def get_description(self):
return _("Search the web with OpenSearch search engines")
def get_icon_name(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]