summaryrefslogtreecommitdiffstats
path: root/ui/autopart.glade
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-27 14:58:00 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-30 09:42:55 -1000
commitcdaa2c6fabcf2976a647c94c738094ad1ee831c7 (patch)
tree4f1713860879c6b15d86206e69042511259998ae /ui/autopart.glade
parentcf8fc45b423d10ddabc20843a283ef2e304ca5a9 (diff)
downloadanaconda-cdaa2c6fabcf2976a647c94c738094ad1ee831c7.tar.gz
anaconda-cdaa2c6fabcf2976a647c94c738094ad1ee831c7.tar.xz
anaconda-cdaa2c6fabcf2976a647c94c738094ad1ee831c7.zip
Correct bounds checking problems in 'Shrink current system'
The 'Shrink current system' dialog had some bounds checking problems. Users could enter a size that was too small or too large. Renamed the function and related controls to use 'shrink' instead of 'resize' in the name to better reflect what the code does. Use the format's size to set the bounds rather than the partition's. Since we are shrinking here, we only want to let users select a size smaller than the current format size. A size smaller than the minimum will automatically be set to the correct minimum. Likewise, a size larger than the maximum will automatically be set to the correct maximum.
Diffstat (limited to 'ui/autopart.glade')
-rw-r--r--ui/autopart.glade20
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/autopart.glade b/ui/autopart.glade
index 333527423..52bcb9cd9 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">&lt;b&gt;Resize _target (in MB):&lt;/b&gt;</property>
+ <property name="label" translatable="yes">&lt;b&gt;Shrink _target (in MB):&lt;/b&gt;</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>