summaryrefslogtreecommitdiff
path: root/kberylsettings/pluginframe.py
diff options
context:
space:
mode:
authornatural <natural>2006-12-29 02:34:37 +0000
committernatural <natural>2006-12-29 02:34:37 +0000
commit3f0d8beae4fe502938aa8b15efa875159ebf3280 (patch)
tree7fc9601e8b05c05d537cae958ed6e9d7ee1fb467 /kberylsettings/pluginframe.py
parent6353813802ba776b05241f07cb8fee9c90310c40 (diff)
downloadkberylsettings-3f0d8beae4fe502938aa8b15efa875159ebf3280.tar.gz
kberylsettings-3f0d8beae4fe502938aa8b15efa875159ebf3280.tar.bz2
Added support for key-grabbing button to key binding widgets.
Limited search results to active plugins only.
Diffstat (limited to 'kberylsettings/pluginframe.py')
-rw-r--r--kberylsettings/pluginframe.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/kberylsettings/pluginframe.py b/kberylsettings/pluginframe.py
index d7e4e79..3d139be 100644
--- a/kberylsettings/pluginframe.py
+++ b/kberylsettings/pluginframe.py
@@ -80,6 +80,7 @@ class SearchView(Frame):
@param context berylsetting.Context instance
@return None
"""
+ self.context = context
index = self.index
index.clear()
itemKeywords = self.itemKeywords
@@ -116,9 +117,12 @@ class SearchView(Frame):
index = self.index
parent = self.keywordsList
parent.clear()
+ active = self.context.active
for keyword in self.index:
if searchtext in keyword.lower():
- item = ValueListViewItem(parent, keyword, index[keyword])
+ plugin, setting = index[keyword][0]
+ if plugin.Name in active:
+ item = ValueListViewItem(parent, keyword, index[keyword])
def showResults(self, item):
""" displays plugin/setting items from the selected keyword