[Ocfs2-tools-commits] manish commits r784 -
trunk/ocfs2console/ocfs2interface
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Apr 5 03:12:17 CDT 2005
Author: manish
Date: 2005-04-05 03:12:15 -0500 (Tue, 05 Apr 2005)
New Revision: 784
Modified:
trunk/ocfs2console/ocfs2interface/format.py
trunk/ocfs2console/ocfs2interface/fswidgets.py
Log:
UI tweaks
Modified: trunk/ocfs2console/ocfs2interface/format.py
===================================================================
--- trunk/ocfs2console/ocfs2interface/format.py 2005-04-05 01:21:27 UTC (rev 783)
+++ trunk/ocfs2console/ocfs2interface/format.py 2005-04-05 08:12:15 UTC (rev 784)
@@ -33,7 +33,7 @@
def get_device(self):
return self.get_choice().split(' ')[0]
- label = 'Device'
+ label = 'Available _devices'
class FormatVolumeLabel(VolumeLabel):
def __init__(self):
@@ -68,28 +68,37 @@
dialog.set_default_response(gtk.RESPONSE_OK)
table = gtk.Table(rows=5, columns=2)
- set_props(table, row_spacing=4,
- column_spacing=4,
- border_width=4,
+ set_props(table, row_spacing=6,
+ column_spacing=6,
+ border_width=6,
parent=dialog.vbox)
widgets = []
row = 0
for widget_type in entries:
- label = gtk.Label(widget_type.label + ':')
- set_props(label, xalign=1.0)
+ widget = widget_type()
+
+ label = gtk.Label()
+ label.set_text_with_mnemonic(widget_type.label + ':')
+ label.set_mnemonic_widget(widget)
+ set_props(label, xalign=0.0)
table.attach(label, 0, 1, row, row + 1)
- widget = widget_type()
- table.attach(widget, 1, 2, row, row + 1)
-
if widget_type == Device:
widget.fill(partitions, device)
if isinstance(widget, gtk.Entry):
widget.set_activates_default(True)
+ if isinstance(widget, gtk.SpinButton):
+ attach_widget = gtk.HBox()
+ attach_widget.pack_start(widget, expand=False, fill=False)
+ else:
+ attach_widget = widget
+
+ table.attach(attach_widget, 1, 2, row, row + 1)
+
widgets.append(widget)
row = row + 1
Modified: trunk/ocfs2console/ocfs2interface/fswidgets.py
===================================================================
--- trunk/ocfs2console/ocfs2interface/fswidgets.py 2005-04-05 01:21:27 UTC (rev 783)
+++ trunk/ocfs2console/ocfs2interface/fswidgets.py 2005-04-05 08:12:15 UTC (rev 784)
@@ -96,7 +96,7 @@
self.set_numeric(True)
- label = 'Number of Nodes'
+ label = 'Number of _nodes'
def get_arg(self):
s = self.get_text()
@@ -110,7 +110,7 @@
def __init__(self):
gtk.Entry.__init__(self, max=ocfs2.MAX_VOL_LABEL_LEN)
- label = 'Volume Label'
+ label = 'Volume _label'
def get_arg(self):
s = self.get_text()
@@ -126,7 +126,7 @@
ocfs2.MAX_CLUSTERSIZE)
self.arg = '-C'
- label = 'Cluster Size'
+ label = 'Cluster _size'
class BlockSize(ValueCombo):
def __init__(self):
@@ -134,7 +134,7 @@
ocfs2.MAX_BLOCKSIZE)
self.arg = '-b'
- label = 'Block Size'
+ label = '_Block size'
def main():
import types
More information about the Ocfs2-tools-commits
mailing list