summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Niklaus <marex@opencompositing.org>2007-06-03 16:40:43 +0200
committerPatrick Niklaus <marex@opencompositing.org>2007-06-03 16:40:43 +0200
commitca2d2a150ce917193d63d98b93209d837ea2bde8 (patch)
tree79391b622176a79d0061a54aa1f49bda0c259814
parent65db49877d078195072f1b96d89d3ac87d1c5a90 (diff)
downloadccsm-ca2d2a150ce917193d63d98b93209d837ea2bde8.tar.gz
ccsm-ca2d2a150ce917193d63d98b93209d837ea2bde8.tar.bz2
Just another typo.. ><
-rwxr-xr-xccsm.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/ccsm.in b/ccsm.in
index 6d9c259..1ee628b 100755
--- a/ccsm.in
+++ b/ccsm.in
@@ -323,7 +323,7 @@ class ListChoiceSetting(SettingItem):
for value, box in self.Checks:
if box.get_active():
values.append(value)
- self.Setting.Value = v
+ self.Setting.Value = values
def Attach(self, table, row):
table.attach(self.Widget, 0, 100, row, row+1, xpadding = 5)
@@ -546,6 +546,15 @@ def SettingSortCompare(v1, v2):
else:
return cmp(v1.ShortDesc, v2.ShortDesc)
+def HasOnlyType(subGroup, type):
+ empty = True
+ for setting in sum((v.values() for v in [subGroup.Display]+[subGroup.Screens[CurrentScreenNum]]), []):
+ if not setting.Name == '____plugin_enabled':
+ empty = False
+ if setting.Type != type:
+ return False
+ return not empty
+
class SubGroupArea:
def __init__(self, name, subGroup):
if name == '':
@@ -558,6 +567,14 @@ class SubGroupArea:
self.Expander.set_expanded(False)
self.Child = gtk.Table()
self.Expander.add(self.Child)
+
+ # create a special widget for list subGroups
+ if HasOnlyType(subGroup, 'List'):
+ multiList = MultiListSetting(subGroup)
+ multiList.attach(self.Child)
+ self.Empty = False
+
+ return # exit earlier to avoid unneeded logic's
self.Empty = True
row = 0