summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Niklaus <marex@opencompositing.org>2007-06-14 00:19:47 +0200
committerPatrick Niklaus <marex@opencompositing.org>2007-06-14 00:19:47 +0200
commita7f0f1ad2cf31e02676c9bdede96b78b648272b2 (patch)
tree997b9bae2beb2d890891bdd5ceabe8e0933a8599
parent87bb3310528a4cadd069436104dd7cc1a0b8e14a (diff)
downloadccsm-a7f0f1ad2cf31e02676c9bdede96b78b648272b2.tar.gz
ccsm-a7f0f1ad2cf31e02676c9bdede96b78b648272b2.tar.bz2
Gray out profle/integration if not supported by the backend
-rwxr-xr-xccsm.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/ccsm.in b/ccsm.in
index ca45ff2..43d3e99 100755
--- a/ccsm.in
+++ b/ccsm.in
@@ -1540,6 +1540,7 @@ class ProfileBackendPage:
profileRemove = gtk.Button()
profileRemove.set_image(gtk.image_new_from_stock(gtk.STOCK_REMOVE, gtk.ICON_SIZE_BUTTON))
profileComboBox = gtk.combo_box_new_text()
+ profileComboBox.set_sensitive(self.Context.CurrentBackend.ProfileSupport)
profileComboBox.append_text("Default")
for profile in self.Context.Profiles.values():
profileComboBox.append_text(profile.Name)
@@ -1578,6 +1579,7 @@ class ProfileBackendPage:
integrationLabel.set_markup("<span color='%s' size='large' weight='800'>Integration</span>" % self.Main.BrightColor)
integrationButton = gtk.CheckButton("Enable integration into the desktop environment")
integrationButton.set_active(self.Context.Integration)
+ integrationButton.set_sensitive(self.Context.CurrentBackend.IntegrationSupport)
integrationButton.connect("toggled", self.IntegrationChanged)
rightChild.pack_start(integrationLabel, False, False, 5)
rightChild.pack_start(integrationButton, False, False, 5)