summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Niklaus <marex@opencompositing.org>2008-04-28 16:01:03 +0200
committerPatrick Niklaus <marex@opencompositing.org>2008-04-28 16:21:23 +0200
commit6c8fb8d184aac9ea9429154e040312e40583dbee (patch)
tree5b6a2a2bbe04ac0bb646ba9ec29752dfa6bc9476
parent9fb0fc26001587a4198fc9bf1ee66896e0e53e6f (diff)
downloadsimple-ccsm-0.7.4-backports.tar.gz
simple-ccsm-0.7.4-backports.tar.bz2
Make simple-ccsm work without effect plugins0.7.4-backports
-rwxr-xr-xsimple-ccsm.in18
1 files changed, 11 insertions, 7 deletions
diff --git a/simple-ccsm.in b/simple-ccsm.in
index e07cea2..b743a57 100755
--- a/simple-ccsm.in
+++ b/simple-ccsm.in
@@ -541,20 +541,19 @@ class EffectPage:
def UpdateSwitcherPlugins(self):
self.SwitcherPlugins = {}
+ self.SwitcherKeySettings = {}
for pluginName in ('switcher', 'shift', 'ring'):
if pluginName in self.Context.Plugins:
plugin = self.Context.Plugins[pluginName]
+
if pluginName == 'shift':
self.SwitcherPlugins[_("%s (Cover)") % plugin.ShortDesc] = plugin
self.SwitcherPlugins[_("%s (Flip)") % plugin.ShortDesc] = plugin
else:
self.SwitcherPlugins[plugin.ShortDesc] = plugin
- self.SwitcherKeySettings = {}
- for pluginName in ('switcher', 'shift', 'ring'):
- plugin = self.Context.Plugins[pluginName]
- setting = plugin.Display['next_key']
- self.SwitcherKeySettings[pluginName] = setting
+ setting = plugin.Display['next_key']
+ self.SwitcherKeySettings[pluginName] = setting
def EffectPluginChanged(self, widget):
if self.Block > 0:
@@ -621,8 +620,13 @@ class EffectPage:
for pluginName, widgetName in widgets.items():
widget = self.GladeXML.get_widget(widgetName)
- plugin = self.Context.Plugins[pluginName]
- widget.set_active(plugin.Enabled)
+ active = False
+ if pluginName in self.Context.Plugins:
+ plugin = self.Context.Plugins[pluginName]
+ active = plugin.Enabled
+ else:
+ widget.set_sensitive(False)
+ widget.set_active(active)
def FillSwitcherBox(self):
box = self.GladeXML.get_widget("switcherPluginChooser")