[Ocfs2-tools-commits] jlbec commits r1283 - trunk/ocfs2console/ocfs2interface

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Jan 17 13:47:45 PST 2007


Author: jlbec
Date: 2007-01-11 16:59:28 -0800 (Thu, 11 Jan 2007)
New Revision: 1283

Modified:
   trunk/ocfs2console/ocfs2interface/console.py
Log:

The "Mount" and "Unmount" buttons don't get properly disabled when they
aren't supposed to work.  This worked accidentally on older python-gtk2
systems, but not in the modern code.

The problem is that the buttons are passed where a list is supoosed to be.
So the buttons are treated as a list.  This means that their children are
set insensitive.

The fix is to pass the buttons as part of a single-element list.

Signed-off-by: mfasheh



Modified: trunk/ocfs2console/ocfs2interface/console.py
===================================================================
--- trunk/ocfs2console/ocfs2interface/console.py	2007-01-03 19:42:11 UTC (rev 1282)
+++ trunk/ocfs2console/ocfs2interface/console.py	2007-01-12 00:59:28 UTC (rev 1283)
@@ -81,8 +81,8 @@
         tb, buttons, filter_entry = toolbar.get_widgets()
         vbox.pack_start(tb, expand=False, fill=False)
 
-        self.pv.add_mount_widgets(buttons['unmount'])
-        self.pv.add_unmount_widgets(buttons['mount'])
+        self.pv.add_mount_widgets([buttons['unmount']])
+        self.pv.add_unmount_widgets([buttons['mount']])
 
         filter_entry.connect('activate', self.refresh)
 




More information about the Ocfs2-tools-commits mailing list