[fusion-commits] Compizconfig Settings Manager in Python: Changes to 'master' (3ab198c14b3dc94d326b35aa60cf038f1948fcfb)
crdlb at server.opencompositing.org
crdlb at server.opencompositing.org
Sat Mar 15 07:06:20 CET 2008
New commits:
commit 3ab198c14b3dc94d326b35aa60cf038f1948fcfb
Author: Christopher Williams <christopherw at verizon.net>
Date: Sat Mar 15 02:03:28 2008 -0400
Correct a bug in the about dialog and make some minor internal changes to the plugin lists
ccm/Pages.py | 10 ++++++----
ccm/Widgets.py | 8 ++------
2 files changed, 8 insertions(+), 10 deletions(-)
Modified: fusion/compizconfig/ccsm/ccm/Pages.py
===================================================================
--- fusion/compizconfig/ccsm/ccm/Pages.py
+++ fusion/compizconfig/ccsm/ccm/Pages.py
@@ -787,7 +787,7 @@ class PluginListPage:
self.EnabledPluginsList = ScrolledList(_("Enabled Plugins"))
# Left/Right buttons
- buttonBox = gtk.VBox()
+ self.MiddleButtonBox = buttonBox = gtk.VBox()
buttonBox.set_spacing(5)
boxAlignment = gtk.Alignment(0.0, 0.5, 0.0, 0.0)
boxAlignment.add(buttonBox)
@@ -810,7 +810,7 @@ class PluginListPage:
enabledBox.set_spacing(10)
enabledAlignment = gtk.Alignment(0.5, 0.0, 0.0, 0.0)
- enabledButtonBox = gtk.HBox()
+ self.EnabledButtonBox = enabledButtonBox = gtk.HBox()
enabledButtonBox.set_spacing(5)
enabledAlignment.add(enabledButtonBox)
@@ -870,8 +870,10 @@ class PluginListPage:
return
self.Context.AutoSort = autoSort
- self.EnabledPluginsList.set_sensitive(not self.Context.AutoSort)
- self.DisabledPluginsList.set_sensitive(not self.Context.AutoSort)
+
+ for widget in (self.EnabledPluginsList.view, self.DisabledPluginsList.view,
+ self.MiddleButtonBox, self.EnabledButtonBox):
+ widget.set_sensitive(not self.Context.AutoSort)
def UpdateEnabledPluginsList(self):
activePlugins = self.Context.Plugins['core'].Display['active_plugins'].Value
Modified: fusion/compizconfig/ccsm/ccm/Widgets.py
===================================================================
--- fusion/compizconfig/ccsm/ccm/Widgets.py
+++ fusion/compizconfig/ccsm/ccm/Widgets.py
@@ -232,9 +232,6 @@ class ScrolledList(gtk.ScrolledWindow):
self.store = gtk.ListStore(gobject.TYPE_STRING)
self.custom_style = Style()
-
- viewport = gtk.Viewport()
- viewport.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(self.custom_style.BackgroundColor))
self.view = gtk.TreeView(self.store)
self.view.set_headers_visible(True)
@@ -242,8 +239,7 @@ class ScrolledList(gtk.ScrolledWindow):
self.set_size_request(300, 300)
- viewport.add(self.view)
- self.add(viewport)
+ self.add(self.view)
self.select = self.view.get_selection()
self.select.set_mode(gtk.SELECTION_SINGLE)
@@ -1111,7 +1107,7 @@ class MatchButton(gtk.Button):
class AboutDialog (gtk.AboutDialog):
def __init__ (self, parent):
gtk.AboutDialog.__init__ (self)
- self.set_parent (parent)
+ self.set_transient_for (parent)
self.set_name (_("CompizConfig Settings Manager"))
self.set_version (Version)
More information about the commits
mailing list