- adj = resizeSB.get_adjustment()
+ adj = shrinkSB.get_adjustment()
adj.lower = reqlower
adj.upper = requpper
- adj.value = reqlower
adj.set_value(reqlower)
- (dxml, dialog) = gui.getGladeWidget("autopart.glade", "resizeDialog")
+ (dxml, dialog) = gui.getGladeWidget("autopart.glade", "shrinkDialog")
store = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
- combo = dxml.get_widget("resizePartCombo")
+ combo = dxml.get_widget("shrinkPartCombo")
combo.set_model(store)
crt = gtk.CellRendererText()
combo.pack_start(crt, True)
combo.set_attributes(crt, text = 0)
- combo.connect("changed", comboCB, dxml.get_widget("resizeSB"))
+ combo.connect("changed", comboCB, dxml.get_widget("shrinkSB"))
biggest = -1
for part in storage.partitions:
if not part.exists:
continue
- # Resize the following storage types:
- # resizable filesystem (e.g., ext3 or ntfs) on resizable partition
- # resizable filesystem on a resizable logical volume
entry = None
if part.resizable and part.format.resizable:
entry = ("%s (%s, %d MB)" % (part.name,
@@ -115,7 +113,7 @@ def whichToResize(storage, intf):
return (rc, [])
request = getActive(combo)
- newSize = dxml.get_widget("resizeSB").get_value_as_int()
+ newSize = dxml.get_widget("shrinkSB").get_value_as_int()
actions = []
try:
@@ -159,7 +157,7 @@ class PartitionTypeWindow(InstallWindow):
self.dispatch.skipStep("bootloader", skip = 0)
else:
if val == -2:
- (rc, actions) = whichToResize(self.storage, self.intf)
+ (rc, actions) = whichToShrink(self.storage, self.intf)
if rc == gtk.RESPONSE_OK:
for action in actions:
self.storage.devicetree.registerAction(action)
diff --git a/ui/autopart.glade b/ui/autopart.glade
index 3335274..52bcb9c 100644
--- a/ui/autopart.glade
+++ b/ui/autopart.glade
@@ -338,10 +338,10 @@
</child>
</widget>
-<widget class="GtkDialog" id="resizeDialog">
+<widget class="GtkDialog" id="shrinkDialog">
<property name="border_width">12</property>
<property name="visible">True</property>
- <property name="title" translatable="yes">Volume to Resize</property>
+ <property name="title" translatable="yes">Volume to Shrink</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="modal">False</property>
@@ -427,7 +427,7 @@
<child>
<widget class="GtkLabel" id="label7">
<property name="visible">True</property>
- <property name="label" translatable="yes">_Resize</property>
+ <property name="label" translatable="yes">_Shrink</property>
<property name="use_underline">True</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -472,7 +472,7 @@
<child>
<widget class="GtkLabel" id="label5">
<property name="visible">True</property>
- <property name="label" translatable="yes">Which partition would you
like to resize to make room for your installation?</property>
+ <property name="label" translatable="yes">Which partition would you
like to shrink to make room for your installation?</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -495,7 +495,7 @@
</child>
<child>
- <widget class="GtkComboBox" id="resizePartCombo">
+ <widget class="GtkComboBox" id="shrinkPartCombo">
<property name="visible">True</property>
<property name="add_tearoffs">False</property>
<property name="focus_on_click">True</property>
@@ -517,7 +517,7 @@
<child>
<widget class="GtkLabel" id="label6">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Resize _target
(in MB):</b></property>
+ <property name="label" translatable="yes"><b>Shrink _target
(in MB):</b></property>
<property name="use_underline">True</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -527,7 +527,7 @@
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
- <property name="mnemonic_widget">resizeSB</property>
+ <property name="mnemonic_widget">shrinkSB</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
@@ -541,16 +541,16 @@
</child>
<child>
- <widget class="GtkSpinButton" id="resizeSB">
+ <widget class="GtkSpinButton" id="shrinkSB">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
<property name="numeric">True</property>
- <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+ <property name="update_policy">GTK_UPDATE_IF_VALID</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
- <property name="adjustment">1 0 100 1 10 10</property>
+ <property name="adjustment">1 0 100 1 1 0</property>
</widget>
<packing>
<property name="padding">0</property>