--- pyanaconda/ui/gui/spokes/storage.glade | 53 ++++++++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 5 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/storage.glade b/pyanaconda/ui/gui/spokes/storage.glade index ca19e72..8162383 100644 --- a/pyanaconda/ui/gui/spokes/storage.glade +++ b/pyanaconda/ui/gui/spokes/storage.glade @@ -885,6 +885,26 @@ <property name="orientation">vertical</property> <property name="spacing">6</property> <child> + <object class="GtkLabel" id="label7"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_left">18</property> + <property name="margin_top">6</property> + <property name="margin_bottom">6</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Select the device(s) you'd lke to install to. They will be left untouched until you click on the main menu's "Begin Installation" button.</property> + <property name="wrap">True</property> + <attributes> + <attribute name="font-desc" value="Cantarell 12"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> <object class="GtkLabel" id="label1"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -901,7 +921,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">0</property> + <property name="position">1</property> </packing> </child> <child> @@ -937,7 +957,24 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">1</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label6"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_right">24</property> + <property name="xalign">1</property> + <property name="label" translatable="yes">Disks left unselected here will not be touched.</property> + <attributes> + <attribute name="font-desc" value="Cantarell Italic 10"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">3</property> </packing> </child> <child> @@ -952,16 +989,16 @@ <property name="column_spacing">6</property> <child> <object class="GtkButton" id="summary_button"> - <property name="label" translatable="yes">_Full disk summary and options...</property> + <property name="label" translatable="yes">_Full disk summary and bootloader...</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> + <property name="no_show_all">True</property> <property name="halign">start</property> <property name="margin_left">18</property> <property name="relief">none</property> <property name="use_underline">True</property> <property name="focus_on_click">False</property> - <property name="no_show_all">True</property> <property name="xalign">0</property> <signal name="clicked" handler="on_summary_clicked" swapped="no"/> </object> @@ -1013,12 +1050,18 @@ <child> <placeholder/> </child> + <child> + <placeholder/> + </child> + <child> + <placeholder/> + </child> </object> <packing> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">end</property> - <property name="position">3</property> + <property name="position">4</property> </packing> </child> </object>
Also, reword the label on that expander and change a keyboard accelerator to match. --- pyanaconda/ui/gui/spokes/custom.glade | 7 ++++--- pyanaconda/ui/gui/spokes/custom.py | 11 +++++++++++ pyanaconda/ui/gui/spokes/lib/accordion.py | 2 ++ 3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade index ba4a4c8..39e3866 100644 --- a/pyanaconda/ui/gui/spokes/custom.glade +++ b/pyanaconda/ui/gui/spokes/custom.glade @@ -154,7 +154,7 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">0</property> - <property name="label" translatable="yes"><b>M_ount Point:</b></property> + <property name="label" translatable="yes"><b>Mount _Point:</b></property> <property name="use_markup">True</property> <property name="use_underline">True</property> <property name="mnemonic_widget">addMountPointEntry</property> @@ -561,7 +561,7 @@ use. Try something else?</property> <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">0</property> - <property name="label" translatable="yes"><b>M_ount Point:</b></property> + <property name="label" translatable="yes"><b>Mount _Point:</b></property> <property name="use_markup">True</property> <property name="use_underline">True</property> <property name="mnemonic_widget">mountPointEntry</property> @@ -711,6 +711,7 @@ use. Try something else?</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="use_underline">True</property> + <signal name="activate" handler="on_customize_activated" swapped="no"/> <child> <object class="GtkGrid" id="grid3"> <property name="visible">True</property> @@ -918,7 +919,7 @@ use. Try something else?</property> <object class="GtkLabel" id="label3"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">_Customize...</property> + <property name="label" translatable="yes">Device and file system _options...</property> <property name="use_underline">True</property> </object> </child> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index a590b6f..e9fc86b 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -1426,6 +1426,11 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): sizeSpinner = self.builder.get_object("sizeSpinner") typeCombo = self.builder.get_object("deviceTypeCombo") fsCombo = self.builder.get_object("fileSystemTypeCombo") + expander = self.builder.get_object("customizeExpander") + + # We want to preserve the state of the customize expander so that it's + # open should you open it and then look at some other device instead. + expander.set_expanded(selector.customizeIsOpen)
device = selector._device if device.type == "luks/dm-crypt": @@ -1661,6 +1666,12 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
NormalSpoke.on_back_clicked(self, button)
+ def on_customize_activated(self, expander): + if not self._current_selector: + return + + self._current_selector.customizeIsOpen = not self._current_selector.customizeIsOpen + def on_add_clicked(self, button): self._save_right_side(self._current_selector)
diff --git a/pyanaconda/ui/gui/spokes/lib/accordion.py b/pyanaconda/ui/gui/spokes/lib/accordion.py index 7a42ffd..af5c218 100644 --- a/pyanaconda/ui/gui/spokes/lib/accordion.py +++ b/pyanaconda/ui/gui/spokes/lib/accordion.py @@ -155,6 +155,7 @@ class Page(Gtk.Box):
selector._device = None selector._root = None + selector.customizeIsOpen = False
if self._mountpointType(mountpoint) == DATA_DEVICE: self._dataBox.add(selector) @@ -210,6 +211,7 @@ class UnknownPage(Page):
selector._device = None selector._root = None + selector.customizeIsOpen = False
self._members.append(selector) self.add(selector)
Ack.
----- Original Message -----
Also, reword the label on that expander and change a keyboard accelerator to match.
pyanaconda/ui/gui/spokes/custom.glade | 7 ++++--- pyanaconda/ui/gui/spokes/custom.py | 11 +++++++++++ pyanaconda/ui/gui/spokes/lib/accordion.py | 2 ++ 3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade index ba4a4c8..39e3866 100644 --- a/pyanaconda/ui/gui/spokes/custom.glade +++ b/pyanaconda/ui/gui/spokes/custom.glade @@ -154,7 +154,7 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">0</property>
<property name="label"
translatable="yes"><b>M_ount Point:</b></property>
<property name="label"
translatable="yes"><b>Mount _Point:</b></property> <property name="use_markup">True</property> <property name="use_underline">True</property> <property name="mnemonic_widget">addMountPointEntry</property> @@ -561,7 +561,7 @@ use. Try something else?</property> <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">0</property>
<property name="label"
translatable="yes"><b>M_ount Point:</b></property>
<property name="label"
translatable="yes"><b>Mount _Point:</b></property> <property name="use_markup">True</property> <property name="use_underline">True</property> <property name="mnemonic_widget">mountPointEntry</property> @@ -711,6 +711,7 @@ use. Try something else?</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="use_underline">True</property>
<signal name="activate"
handler="on_customize_activated" swapped="no"/> <child> <object class="GtkGrid" id="grid3"> <property name="visible">True</property> @@ -918,7 +919,7 @@ use. Try something else?</property> <object class="GtkLabel" id="label3"> <property name="visible">True</property> <property name="can_focus">False</property>
<property name="label"
translatable="yes">_Customize...</property>
<property name="label"
translatable="yes">Device and file system _options...</property> <property name="use_underline">True</property> </object> </child> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index a590b6f..e9fc86b 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -1426,6 +1426,11 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): sizeSpinner = self.builder.get_object("sizeSpinner") typeCombo = self.builder.get_object("deviceTypeCombo") fsCombo = self.builder.get_object("fileSystemTypeCombo")
expander = self.builder.get_object("customizeExpander")
# We want to preserve the state of the customize expander so
that it's
# open should you open it and then look at some other device
instead.
expander.set_expanded(selector.customizeIsOpen) device = selector._device if device.type == "luks/dm-crypt":
@@ -1661,6 +1666,12 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
NormalSpoke.on_back_clicked(self, button)
- def on_customize_activated(self, expander):
if not self._current_selector:
return
self._current_selector.customizeIsOpen = not
self._current_selector.customizeIsOpen
- def on_add_clicked(self, button): self._save_right_side(self._current_selector)
diff --git a/pyanaconda/ui/gui/spokes/lib/accordion.py b/pyanaconda/ui/gui/spokes/lib/accordion.py index 7a42ffd..af5c218 100644 --- a/pyanaconda/ui/gui/spokes/lib/accordion.py +++ b/pyanaconda/ui/gui/spokes/lib/accordion.py @@ -155,6 +155,7 @@ class Page(Gtk.Box):
selector._device = None selector._root = None
selector.customizeIsOpen = False if self._mountpointType(mountpoint) == DATA_DEVICE: self._dataBox.add(selector)
@@ -210,6 +211,7 @@ class UnknownPage(Page):
selector._device = None selector._root = None
selector.customizeIsOpen = False self._members.append(selector) self.add(selector)
-- 1.7.11.2
anaconda-patches mailing list anaconda-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
--- pyanaconda/ui/gui/spokes/storage.py | 1 + pyanaconda/ui/tui/spokes/storage.py | 1 + 2 files changed, 2 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py index 58ebf85..0155c83 100644 --- a/pyanaconda/ui/gui/spokes/storage.py +++ b/pyanaconda/ui/gui/spokes/storage.py @@ -96,6 +96,7 @@ def getDisks(devicetree, fake=False): if not fake: devices = devicetree.devices + devicetree._hidden disks = [d for d in devices if d.isDisk and + d.size > 0 and not d.format.hidden and not (d.protected and d.removable)] diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py index 292ffc2..2cfff27 100644 --- a/pyanaconda/ui/tui/spokes/storage.py +++ b/pyanaconda/ui/tui/spokes/storage.py @@ -74,6 +74,7 @@ class FakeDisk(object): def getDisks(devicetree, fake=False): if not fake: disks = [d for d in devicetree.devices if d.isDisk and + d.size > 0 and not d.format.hidden and not (d.protected and d.removable)]
Ack.
----- Original Message -----
pyanaconda/ui/gui/spokes/storage.py | 1 + pyanaconda/ui/tui/spokes/storage.py | 1 + 2 files changed, 2 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py index 58ebf85..0155c83 100644 --- a/pyanaconda/ui/gui/spokes/storage.py +++ b/pyanaconda/ui/gui/spokes/storage.py @@ -96,6 +96,7 @@ def getDisks(devicetree, fake=False): if not fake: devices = devicetree.devices + devicetree._hidden disks = [d for d in devices if d.isDisk and
d.size > 0 and not d.format.hidden and not (d.protected and d.removable)]
diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py index 292ffc2..2cfff27 100644 --- a/pyanaconda/ui/tui/spokes/storage.py +++ b/pyanaconda/ui/tui/spokes/storage.py @@ -74,6 +74,7 @@ class FakeDisk(object): def getDisks(devicetree, fake=False): if not fake: disks = [d for d in devicetree.devices if d.isDisk and
d.size > 0 and not d.format.hidden and not (d.protected and d.removable)]
-- 1.7.11.2
anaconda-patches mailing list anaconda-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
--- pyanaconda/ui/gui/spokes/lib/cart.glade | 8 ++--- pyanaconda/ui/gui/spokes/lib/cart.py | 6 ++-- pyanaconda/ui/gui/spokes/source.py | 3 +- pyanaconda/ui/gui/spokes/storage.py | 13 ++++---- widgets/python/AnacondaWidgets.py | 6 ++-- widgets/src/DiskOverview.c | 53 ++++++++++++++------------------- 6 files changed, 39 insertions(+), 50 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/cart.glade b/pyanaconda/ui/gui/spokes/lib/cart.glade index 0743a9f..0e234a2 100644 --- a/pyanaconda/ui/gui/spokes/lib/cart.glade +++ b/pyanaconda/ui/gui/spokes/lib/cart.glade @@ -11,7 +11,7 @@ <column type="gchararray"/> <!-- column-name free --> <column type="gchararray"/> - <!-- column-name id --> + <!-- column-name name --> <column type="gchararray"/> <!-- column-name unique --> <column type="gint"/> @@ -158,11 +158,11 @@ </object> </child> <child> - <object class="GtkTreeViewColumn" id="id_column"> + <object class="GtkTreeViewColumn" id="name_column"> <property name="spacing">6</property> - <property name="title" translatable="yes">Id</property> + <property name="title" translatable="yes">Name</property> <child> - <object class="GtkCellRendererText" id="id_renderer"/> + <object class="GtkCellRendererText" id="name_renderer"/> <attributes> <attribute name="text">4</attribute> </attributes> diff --git a/pyanaconda/ui/gui/spokes/lib/cart.py b/pyanaconda/ui/gui/spokes/lib/cart.py index bdc4faf..0fe9869 100644 --- a/pyanaconda/ui/gui/spokes/lib/cart.py +++ b/pyanaconda/ui/gui/spokes/lib/cart.py @@ -36,7 +36,7 @@ IS_BOOT_COL = 0 DESCRIPTION_COL = 1 SIZE_COL = 2 FREE_SPACE_COL = 3 -SERIAL_COL = 4 +NAME_COL = 4 ID_COL = 5
def size_str(mb): @@ -57,10 +57,10 @@ class SelectedDisksDialog(GUIObject):
for disk in disks: self._store.append([False, - disk.description, + "%s (%s)" % (disk.description, disk.serial), size_str(disk.size), size_str(free[disk.name][0]), - disk.serial, + disk.name, disk.id]) self.disks = disks[:] self._update_summary() diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py index 84315a1..87ebb89 100644 --- a/pyanaconda/ui/gui/spokes/source.py +++ b/pyanaconda/ui/gui/spokes/source.py @@ -703,8 +703,7 @@ class SourceSpoke(NormalSpoke): if cdrom: @gtk_thread_wait def gtk_action_1(): - selector = AnacondaWidgets.DiskOverview(cdrom.format.label or "", "drive-removable-media", "") - selector.path = cdrom.path + selector = AnacondaWidgets.DiskOverview(cdrom.format.label or "", "drive-removable-media", "", cdrom.name) selector.set_chosen(chosen) self._autodetectMediaBox.pack_start(selector, False, False, 0)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py index 0155c83..69ed7fd 100644 --- a/pyanaconda/ui/gui/spokes/storage.py +++ b/pyanaconda/ui/gui/spokes/storage.py @@ -489,7 +489,7 @@ class StorageSpoke(NormalSpoke, StorageChecker): # update the selections in the ui overviews = self.local_disks_box.get_children() for overview in overviews: - name = overview.get_property("popup-info").partition("|")[0].strip() + name = overview.get_property("name") overview.set_chosen(name in self.selected_disks)
self._update_summary() @@ -531,13 +531,14 @@ class StorageSpoke(NormalSpoke, StorageChecker): kind = "drive-harddisk"
size = size_str(disk.size) - popup_info = "%s | %s" % (disk.name, disk.serial) + popup_info = "%s" % disk.serial
@gtk_thread_wait def gtk_action(): overview = AnacondaWidgets.DiskOverview(disk.description, kind, size, + disk.name, popup=popup_info) self.local_disks_box.pack_start(overview, False, False, 0)
@@ -553,7 +554,7 @@ class StorageSpoke(NormalSpoke, StorageChecker): self._update_summary()
gtk_action() - + self._ready = True communication.send_ready(self.__class__.__name__)
@@ -593,9 +594,9 @@ class StorageSpoke(NormalSpoke, StorageChecker): """ Update self.selected_disks based on the UI. """ overviews = self.local_disks_box.get_children() for overview in overviews: - name = overview.get_property("popup-info").partition("|")[0].strip() - selected = overview.get_chosen() + name = overview.get_property("name") + if selected and name not in self.selected_disks: self.selected_disks.append(name)
@@ -618,7 +619,7 @@ class StorageSpoke(NormalSpoke, StorageChecker): # update the UI to reflect changes to self.selected_disks overviews = self.local_disks_box.get_children() for overview in overviews: - name = overview.get_property("popup-info").partition("|")[0].strip() + name = overview.get_property("name")
overview.set_chosen(name in self.selected_disks)
diff --git a/widgets/python/AnacondaWidgets.py b/widgets/python/AnacondaWidgets.py index 4029b69..edb9f35 100644 --- a/widgets/python/AnacondaWidgets.py +++ b/widgets/python/AnacondaWidgets.py @@ -63,14 +63,12 @@ SpokeSelector = override(SpokeSelector) __all__.append('SpokeSelector')
class DiskOverview(Anaconda.DiskOverview): - def __init__(self, description, kind, capacity, os=None, popup=None): + def __init__(self, description, kind, capacity, name, popup=None): Anaconda.DiskOverview.__init__(self) self.set_property("description", description) self.set_property("kind", kind) self.set_property("capacity", capacity) - - if os: - self.set_property("os", os) + self.set_property("name", name)
if popup: self.set_property("popup-info", popup) diff --git a/widgets/src/DiskOverview.c b/widgets/src/DiskOverview.c index 6a4e9af..3aa2112 100644 --- a/widgets/src/DiskOverview.c +++ b/widgets/src/DiskOverview.c @@ -42,7 +42,7 @@ enum { PROP_DESCRIPTION = 1, PROP_KIND, PROP_CAPACITY, - PROP_OS, + PROP_NAME, PROP_POPUP_INFO };
@@ -50,7 +50,7 @@ enum { #define DEFAULT_DESCRIPTION N_("New Device") #define DEFAULT_KIND "drive-harddisk" #define DEFAULT_CAPACITY N_("0 MB") -#define DEFAULT_OS "" +#define DEFAULT_NAME "" #define DEFAULT_POPUP_INFO ""
#define ICON_SIZE 125 @@ -60,7 +60,7 @@ struct _AnacondaDiskOverviewPrivate { GtkWidget *kind; GtkWidget *description_label; GtkWidget *capacity_label; - GtkWidget *os_label; + GtkWidget *name_label; GtkWidget *tooltip;
GdkCursor *cursor; @@ -136,18 +136,20 @@ static void anaconda_disk_overview_class_init(AnacondaDiskOverviewClass *klass) G_PARAM_READWRITE));
/** - * AnacondaDiskOverview:os: + * AnacondaDiskOverview:name: * - * The :os string describes any operating system found on this device. + * The :name string provides this device's node name (like 'sda'). Note + * that these names aren't guaranteed to be consistent across reboots but + * their use is so ingrained that we need to continue displaying them. * * Since: 1.0 */ g_object_class_install_property(object_class, - PROP_OS, - g_param_spec_string("os", - P_("Operating System"), - P_("Installed OS on this drive"), - DEFAULT_OS, + PROP_NAME, + g_param_spec_string("name", + P_("Device node name"), + P_("Device node name"), + DEFAULT_NAME, G_PARAM_READWRITE));
/** @@ -226,17 +228,14 @@ static void anaconda_disk_overview_init(AnacondaDiskOverview *widget) { gtk_label_set_markup(GTK_LABEL(widget->priv->description_label), markup); g_free(markup);
- /* Create the OS label. By default there is no operating system, so just - * create a new label here so we have a place for later, should an OS be - * specified. - */ - widget->priv->os_label = gtk_label_new(NULL); + /* Create the name label. */ + widget->priv->name_label = gtk_label_new(NULL);
/* Add everything to the vbox, add the vbox to the widget. */ gtk_container_add(GTK_CONTAINER(widget->priv->vbox), widget->priv->capacity_label); gtk_container_add(GTK_CONTAINER(widget->priv->vbox), widget->priv->kind); gtk_container_add(GTK_CONTAINER(widget->priv->vbox), widget->priv->description_label); - gtk_container_add(GTK_CONTAINER(widget->priv->vbox), widget->priv->os_label); + gtk_container_add(GTK_CONTAINER(widget->priv->vbox), widget->priv->name_label);
gtk_container_add(GTK_CONTAINER(widget), widget->priv->vbox);
@@ -297,8 +296,8 @@ static void anaconda_disk_overview_get_property(GObject *object, guint prop_id, g_value_set_string (value, gtk_label_get_text(GTK_LABEL(priv->capacity_label))); break;
- case PROP_OS: - g_value_set_string (value, gtk_label_get_text(GTK_LABEL(priv->os_label))); + case PROP_NAME: + g_value_set_string (value, gtk_label_get_text(GTK_LABEL(priv->name_label))); break;
case PROP_POPUP_INFO: @@ -331,19 +330,11 @@ static void anaconda_disk_overview_set_property(GObject *object, guint prop_id, break; }
- case PROP_OS: { - /* If no OS is given, set the label to blank. This will prevent - * seeing a strange brown blob with no text in the middle of - * nowhere. - */ - if (!strcmp(g_value_get_string(value), "")) - gtk_label_set_text(GTK_LABEL(priv->os_label), NULL); - else { - char *markup = g_markup_printf_escaped("<span foreground='white' background='brown'>%s</span>", g_value_get_string(value)); - gtk_label_set_markup(GTK_LABEL(priv->os_label), markup); - g_free(markup); - break; - } + case PROP_NAME: { + char *markup = g_markup_printf_escaped("<span size='large'>%s</span>", g_value_get_string(value)); + gtk_label_set_markup(GTK_LABEL(priv->name_label), markup); + g_free(markup); + break; }
case PROP_POPUP_INFO: {
Ack.
----- Original Message -----
pyanaconda/ui/gui/spokes/lib/cart.glade | 8 ++--- pyanaconda/ui/gui/spokes/lib/cart.py | 6 ++-- pyanaconda/ui/gui/spokes/source.py | 3 +- pyanaconda/ui/gui/spokes/storage.py | 13 ++++---- widgets/python/AnacondaWidgets.py | 6 ++-- widgets/src/DiskOverview.c | 53 ++++++++++++++------------------- 6 files changed, 39 insertions(+), 50 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/cart.glade b/pyanaconda/ui/gui/spokes/lib/cart.glade index 0743a9f..0e234a2 100644 --- a/pyanaconda/ui/gui/spokes/lib/cart.glade +++ b/pyanaconda/ui/gui/spokes/lib/cart.glade @@ -11,7 +11,7 @@ <column type="gchararray"/> <!-- column-name free --> <column type="gchararray"/>
<!-- column-name id -->
<!-- column-name name --> <column type="gchararray"/> <!-- column-name unique --> <column type="gint"/>
@@ -158,11 +158,11 @@ </object> </child> <child>
<object class="GtkTreeViewColumn"
id="id_column">
<object class="GtkTreeViewColumn"
id="name_column"> <property name="spacing">6</property>
<property name="title"
translatable="yes">Id</property>
<property name="title"
translatable="yes">Name</property> <child>
<object class="GtkCellRendererText"
id="id_renderer"/>
<object class="GtkCellRendererText"
id="name_renderer"/> <attributes> <attribute name="text">4</attribute> </attributes> diff --git a/pyanaconda/ui/gui/spokes/lib/cart.py b/pyanaconda/ui/gui/spokes/lib/cart.py index bdc4faf..0fe9869 100644 --- a/pyanaconda/ui/gui/spokes/lib/cart.py +++ b/pyanaconda/ui/gui/spokes/lib/cart.py @@ -36,7 +36,7 @@ IS_BOOT_COL = 0 DESCRIPTION_COL = 1 SIZE_COL = 2 FREE_SPACE_COL = 3 -SERIAL_COL = 4 +NAME_COL = 4 ID_COL = 5
def size_str(mb): @@ -57,10 +57,10 @@ class SelectedDisksDialog(GUIObject):
for disk in disks: self._store.append([False,
disk.description,
"%s (%s)" % (disk.description,
disk.serial), size_str(disk.size), size_str(free[disk.name][0]),
disk.serial,
disk.name, disk.id]) self.disks = disks[:] self._update_summary()
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py index 84315a1..87ebb89 100644 --- a/pyanaconda/ui/gui/spokes/source.py +++ b/pyanaconda/ui/gui/spokes/source.py @@ -703,8 +703,7 @@ class SourceSpoke(NormalSpoke): if cdrom: @gtk_thread_wait def gtk_action_1():
selector =
AnacondaWidgets.DiskOverview(cdrom.format.label or "", "drive-removable-media", "")
selector.path = cdrom.path
selector =
AnacondaWidgets.DiskOverview(cdrom.format.label or "", "drive-removable-media", "", cdrom.name) selector.set_chosen(chosen) self._autodetectMediaBox.pack_start(selector, False, False, 0)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py index 0155c83..69ed7fd 100644 --- a/pyanaconda/ui/gui/spokes/storage.py +++ b/pyanaconda/ui/gui/spokes/storage.py @@ -489,7 +489,7 @@ class StorageSpoke(NormalSpoke, StorageChecker): # update the selections in the ui overviews = self.local_disks_box.get_children() for overview in overviews:
name =
overview.get_property("popup-info").partition("|")[0].strip()
name = overview.get_property("name") overview.set_chosen(name in self.selected_disks) self._update_summary()
@@ -531,13 +531,14 @@ class StorageSpoke(NormalSpoke, StorageChecker): kind = "drive-harddisk"
size = size_str(disk.size)
popup_info = "%s | %s" % (disk.name, disk.serial)
popup_info = "%s" % disk.serial @gtk_thread_wait def gtk_action(): overview = AnacondaWidgets.DiskOverview(disk.description, kind, size,
disk.name, popup=popup_info) self.local_disks_box.pack_start(overview, False, False, 0)
@@ -553,7 +554,7 @@ class StorageSpoke(NormalSpoke, StorageChecker): self._update_summary()
gtk_action()
self._ready = True communication.send_ready(self.__class__.__name__)
@@ -593,9 +594,9 @@ class StorageSpoke(NormalSpoke, StorageChecker): """ Update self.selected_disks based on the UI. """ overviews = self.local_disks_box.get_children() for overview in overviews:
name =
overview.get_property("popup-info").partition("|")[0].strip()
selected = overview.get_chosen()
name = overview.get_property("name")
if selected and name not in self.selected_disks: self.selected_disks.append(name)
@@ -618,7 +619,7 @@ class StorageSpoke(NormalSpoke, StorageChecker): # update the UI to reflect changes to self.selected_disks overviews = self.local_disks_box.get_children() for overview in overviews:
name =
overview.get_property("popup-info").partition("|")[0].strip()
name = overview.get_property("name") overview.set_chosen(name in self.selected_disks)
diff --git a/widgets/python/AnacondaWidgets.py b/widgets/python/AnacondaWidgets.py index 4029b69..edb9f35 100644 --- a/widgets/python/AnacondaWidgets.py +++ b/widgets/python/AnacondaWidgets.py @@ -63,14 +63,12 @@ SpokeSelector = override(SpokeSelector) __all__.append('SpokeSelector')
class DiskOverview(Anaconda.DiskOverview):
- def __init__(self, description, kind, capacity, os=None,
popup=None):
- def __init__(self, description, kind, capacity, name,
popup=None): Anaconda.DiskOverview.__init__(self) self.set_property("description", description) self.set_property("kind", kind) self.set_property("capacity", capacity)
if os:
self.set_property("os", os)
self.set_property("name", name) if popup: self.set_property("popup-info", popup)
diff --git a/widgets/src/DiskOverview.c b/widgets/src/DiskOverview.c index 6a4e9af..3aa2112 100644 --- a/widgets/src/DiskOverview.c +++ b/widgets/src/DiskOverview.c @@ -42,7 +42,7 @@ enum { PROP_DESCRIPTION = 1, PROP_KIND, PROP_CAPACITY,
- PROP_OS,
- PROP_NAME, PROP_POPUP_INFO
};
@@ -50,7 +50,7 @@ enum { #define DEFAULT_DESCRIPTION N_("New Device") #define DEFAULT_KIND "drive-harddisk" #define DEFAULT_CAPACITY N_("0 MB") -#define DEFAULT_OS "" +#define DEFAULT_NAME "" #define DEFAULT_POPUP_INFO ""
#define ICON_SIZE 125 @@ -60,7 +60,7 @@ struct _AnacondaDiskOverviewPrivate { GtkWidget *kind; GtkWidget *description_label; GtkWidget *capacity_label;
- GtkWidget *os_label;
GtkWidget *name_label; GtkWidget *tooltip;
GdkCursor *cursor;
@@ -136,18 +136,20 @@ static void anaconda_disk_overview_class_init(AnacondaDiskOverviewClass *klass) G_PARAM_READWRITE));
/**
* AnacondaDiskOverview:os:
* AnacondaDiskOverview:name: *
* The :os string describes any operating system found on this
device.
* The :name string provides this device's node name (like
'sda'). Note
* that these names aren't guaranteed to be consistent across
reboots but
* their use is so ingrained that we need to continue displaying
them. * * Since: 1.0 */ g_object_class_install_property(object_class,
PROP_OS,
g_param_spec_string("os",
P_("Operating
System"),
P_("Installed
OS on this drive"),
DEFAULT_OS,
PROP_NAME,
g_param_spec_string("name",
P_("Device
node name"),
P_("Device
node name"),
DEFAULT_NAME, G_PARAM_READWRITE));
/**
@@ -226,17 +228,14 @@ static void anaconda_disk_overview_init(AnacondaDiskOverview *widget) { gtk_label_set_markup(GTK_LABEL(widget->priv->description_label), markup); g_free(markup);
- /* Create the OS label. By default there is no operating
system, so just
* create a new label here so we have a place for later, should
an OS be
* specified.
*/
- widget->priv->os_label = gtk_label_new(NULL);
/* Create the name label. */
widget->priv->name_label = gtk_label_new(NULL);
/* Add everything to the vbox, add the vbox to the widget. */ gtk_container_add(GTK_CONTAINER(widget->priv->vbox), widget->priv->capacity_label); gtk_container_add(GTK_CONTAINER(widget->priv->vbox), widget->priv->kind); gtk_container_add(GTK_CONTAINER(widget->priv->vbox), widget->priv->description_label);
- gtk_container_add(GTK_CONTAINER(widget->priv->vbox),
widget->priv->os_label);
- gtk_container_add(GTK_CONTAINER(widget->priv->vbox),
widget->priv->name_label);
gtk_container_add(GTK_CONTAINER(widget), widget->priv->vbox);
@@ -297,8 +296,8 @@ static void anaconda_disk_overview_get_property(GObject *object, guint prop_id, g_value_set_string (value, gtk_label_get_text(GTK_LABEL(priv->capacity_label))); break;
case PROP_OS:
g_value_set_string (value,
gtk_label_get_text(GTK_LABEL(priv->os_label)));
case PROP_NAME:
g_value_set_string (value,
gtk_label_get_text(GTK_LABEL(priv->name_label))); break;
case PROP_POPUP_INFO:
@@ -331,19 +330,11 @@ static void anaconda_disk_overview_set_property(GObject *object, guint prop_id, break; }
case PROP_OS: {
/* If no OS is given, set the label to blank. This will
prevent
* seeing a strange brown blob with no text in the
middle of
* nowhere.
*/
if (!strcmp(g_value_get_string(value), ""))
gtk_label_set_text(GTK_LABEL(priv->os_label), NULL);
else {
char *markup = g_markup_printf_escaped("<span
foreground='white' background='brown'>%s</span>", g_value_get_string(value));
gtk_label_set_markup(GTK_LABEL(priv->os_label),
markup);
g_free(markup);
break;
}
case PROP_NAME: {
char *markup = g_markup_printf_escaped("<span
size='large'>%s</span>", g_value_get_string(value));
gtk_label_set_markup(GTK_LABEL(priv->name_label),
markup);
g_free(markup);
break; } case PROP_POPUP_INFO: {
-- 1.7.11.2
anaconda-patches mailing list anaconda-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
--- pyanaconda/ui/gui/spokes/custom.py | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index e9fc86b..8012ab9 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -654,7 +654,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): def translated_new_install_name(self): return _(new_install_name) % (productName, productVersion)
- def _do_refresh(self): + def _do_refresh(self, mountpointToShow=None): # block mountpoint selector signal handler for now self._initialized = False if self._current_selector: @@ -785,7 +785,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): break
self._initialized = True - self.on_page_clicked(self._accordion.currentPage()) + self.on_page_clicked(self._accordion.currentPage(), + mountpointToShow=mountpointToShow)
### ### RIGHT HAND SIDE METHODS @@ -1786,7 +1787,10 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): self.window.show_all()
self._devices = self.__storage.devices - self._do_refresh() + if not self._error: + self._do_refresh(mountpointToShow=mountpoint) + else: + self._do_refresh() self._updateSpaceDisplay()
def _destroy_device(self, device): @@ -1844,18 +1848,25 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): if parent.kids == 0 and not parent.isDisk: self._destroy_device(parent)
- def _show_first_mountpoint(self, page=None): + def _show_mountpoint(self, page=None, mountpoint=None): if not self._initialized: return
- # Make sure there's something displayed on the RHS. Just default to - # the first mountpoint in the page. + # Make sure there's something displayed on the RHS. If a page and + # mountpoint within that page is given, display that. Otherwise, just + # default to the first selector available. if not page: page = self._accordion.currentPage()
log.debug("show first mountpoint: %s" % getattr(page, "pageTitle", None)) if getattr(page, "_members", []): - self.on_selector_clicked(page._members[0]) + if mountpoint: + for member in page._members: + if member.get_property("mountpoint") == mountpoint: + self.on_selector_clicked(member) + break + else: + self.on_selector_clicked(page._members[0]) else: self._current_selector = None
@@ -2128,7 +2139,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): self._removeButton.set_sensitive(not selector._device.protected) return True
- def on_page_clicked(self, page): + def on_page_clicked(self, page, mountpointToShow=None): if not self._initialized: return
@@ -2142,7 +2153,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): self._current_selector.set_chosen(False) self._current_selector = None
- self._show_first_mountpoint(page=page) + self._show_mountpoint(page=page, mountpoint=mountpointToShow)
# This is called when a Page header is clicked upon so we can support # deleting an entire installation at once and displaying something
The signal handler was getting called three times on double-click: once for the double-click, once for the first click, and once for the second click. This resulted in the background getting shown as if the disk were selected, even though everything else indicated it was not. --- widgets/src/DiskOverview.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/widgets/src/DiskOverview.c b/widgets/src/DiskOverview.c index 3aa2112..e3c39f4 100644 --- a/widgets/src/DiskOverview.c +++ b/widgets/src/DiskOverview.c @@ -250,7 +250,9 @@ gboolean anaconda_disk_overview_clicked(AnacondaDiskOverview *widget, GdkEvent * /* This handler runs for mouse presses and key releases. For key releases, it only * runs for activate-type keys (enter, space, etc.). */ - if (event->type == GDK_KEY_RELEASE && + if (event->type != GDK_BUTTON_PRESS && event->type != GDK_KEY_RELEASE) + return FALSE; + else if (event->type == GDK_KEY_RELEASE && (event->key.keyval != GDK_KEY_space && event->key.keyval != GDK_KEY_Return && event->key.keyval != GDK_KEY_ISO_Enter && event->key.keyval != GDK_KEY_KP_Enter && event->key.keyval != GDK_KEY_KP_Space))
Ack.
----- Original Message -----
The signal handler was getting called three times on double-click: once for the double-click, once for the first click, and once for the second click. This resulted in the background getting shown as if the disk were selected, even though everything else indicated it was not.
widgets/src/DiskOverview.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/widgets/src/DiskOverview.c b/widgets/src/DiskOverview.c index 3aa2112..e3c39f4 100644 --- a/widgets/src/DiskOverview.c +++ b/widgets/src/DiskOverview.c @@ -250,7 +250,9 @@ gboolean anaconda_disk_overview_clicked(AnacondaDiskOverview *widget, GdkEvent * /* This handler runs for mouse presses and key releases. For key releases, it only * runs for activate-type keys (enter, space, etc.). */
- if (event->type == GDK_KEY_RELEASE &&
- if (event->type != GDK_BUTTON_PRESS && event->type !=
GDK_KEY_RELEASE)
return FALSE;
- else if (event->type == GDK_KEY_RELEASE && (event->key.keyval != GDK_KEY_space && event->key.keyval != GDK_KEY_Return && event->key.keyval != GDK_KEY_ISO_Enter && event->key.keyval != GDK_KEY_KP_Enter && event->key.keyval != GDK_KEY_KP_Space))
-- 1.7.11.2
anaconda-patches mailing list anaconda-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
--- pyanaconda/ui/gui/spokes/storage.glade | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/storage.glade b/pyanaconda/ui/gui/spokes/storage.glade index 8162383..1c7b3aa 100644 --- a/pyanaconda/ui/gui/spokes/storage.glade +++ b/pyanaconda/ui/gui/spokes/storage.glade @@ -21,6 +21,7 @@ <child internal-child="action_area"> <object class="GtkButtonBox" id="dialog-action_area2"> <property name="can_focus">False</property> + <property name="layout_style">end</property> <child> <object class="GtkButton" id="options1_cancel_button"> <property name="label" translatable="yes">Cancel & _add more disks</property> @@ -36,6 +37,7 @@ <property name="expand">False</property> <property name="fill">True</property> <property name="position">0</property> + <property name="secondary">True</property> </packing> </child> <child> @@ -45,7 +47,6 @@ <property name="can_focus">True</property> <property name="has_focus">True</property> <property name="receives_default">True</property> - <property name="halign">end</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_continue_clicked" swapped="no"/> @@ -53,7 +54,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> <property name="position">1</property> </packing> </child> @@ -61,7 +61,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> <property name="position">0</property> </packing> </child> @@ -217,13 +216,13 @@ <child internal-child="action_area"> <object class="GtkButtonBox" id="dialog-action_area5"> <property name="can_focus">False</property> + <property name="layout_style">end</property> <child> <object class="GtkButton" id="options2_cancel_button"> <property name="label" translatable="yes">Cancel & _add more disks</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> - <property name="halign">start</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_cancel_clicked" swapped="no"/> @@ -232,6 +231,7 @@ <property name="expand">False</property> <property name="fill">True</property> <property name="position">0</property> + <property name="secondary">True</property> </packing> </child> <child> @@ -241,7 +241,6 @@ <property name="can_focus">True</property> <property name="receives_default">True</property> <property name="tooltip_text" translatable="yes">Please wait... software metadata still loading.</property> - <property name="halign">center</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_modify_sw_clicked" swapped="no"/> @@ -249,7 +248,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> <property name="position">1</property> </packing> </child> @@ -260,7 +258,6 @@ <property name="can_focus">True</property> <property name="has_focus">True</property> <property name="receives_default">True</property> - <property name="halign">end</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_reclaim_clicked" swapped="no"/> @@ -275,7 +272,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> <property name="position">0</property> </packing> </child> @@ -574,13 +570,13 @@ <child internal-child="action_area"> <object class="GtkButtonBox" id="dialog-action_area7"> <property name="can_focus">False</property> + <property name="layout_style">end</property> <child> <object class="GtkButton" id="options3_quit_button"> <property name="label" translatable="yes">_Quit installer</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property> - <property name="halign">start</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_quit_clicked" swapped="no"/> @@ -589,6 +585,7 @@ <property name="expand">False</property> <property name="fill">True</property> <property name="position">0</property> + <property name="secondary">True</property> </packing> </child> <child> @@ -598,7 +595,6 @@ <property name="can_focus">True</property> <property name="receives_default">True</property> <property name="tooltip_text" translatable="yes">Please wait... software metadata still loading.</property> - <property name="halign">center</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_modify_sw_clicked" swapped="no"/> @@ -606,7 +602,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> <property name="position">1</property> </packing> </child> @@ -617,7 +612,6 @@ <property name="can_focus">True</property> <property name="has_focus">True</property> <property name="receives_default">True</property> - <property name="halign">end</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_cancel_clicked" swapped="no"/> @@ -625,7 +619,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> <property name="position">2</property> </packing> </child> @@ -633,7 +626,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="pack_type">end</property> <property name="position">0</property> </packing> </child>
Ack.
----- Original Message -----
pyanaconda/ui/gui/spokes/storage.glade | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/storage.glade b/pyanaconda/ui/gui/spokes/storage.glade index 8162383..1c7b3aa 100644 --- a/pyanaconda/ui/gui/spokes/storage.glade +++ b/pyanaconda/ui/gui/spokes/storage.glade @@ -21,6 +21,7 @@ <child internal-child="action_area"> <object class="GtkButtonBox" id="dialog-action_area2"> <property name="can_focus">False</property>
<property name="layout_style">end</property> <child> <object class="GtkButton" id="options1_cancel_button"> <property name="label" translatable="yes">Cancel & _add more disks</property>
@@ -36,6 +37,7 @@ <property name="expand">False</property> <property name="fill">True</property> <property name="position">0</property>
<property name="secondary">True</property> </packing> </child> <child>
@@ -45,7 +47,6 @@ <property name="can_focus">True</property> <property name="has_focus">True</property> <property name="receives_default">True</property>
<property name="halign">end</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_continue_clicked" swapped="no"/>
@@ -53,7 +54,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="position">1</property> </packing> </child>
@@ -61,7 +61,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="position">0</property> </packing> </child>
@@ -217,13 +216,13 @@ <child internal-child="action_area"> <object class="GtkButtonBox" id="dialog-action_area5"> <property name="can_focus">False</property>
<property name="layout_style">end</property> <child> <object class="GtkButton" id="options2_cancel_button"> <property name="label" translatable="yes">Cancel & _add more disks</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property>
<property name="halign">start</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_cancel_clicked" swapped="no"/>
@@ -232,6 +231,7 @@ <property name="expand">False</property> <property name="fill">True</property> <property name="position">0</property>
<property name="secondary">True</property> </packing> </child> <child>
@@ -241,7 +241,6 @@ <property name="can_focus">True</property> <property name="receives_default">True</property> <property name="tooltip_text" translatable="yes">Please wait... software metadata still loading.</property>
<property name="halign">center</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_modify_sw_clicked" swapped="no"/>
@@ -249,7 +248,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="position">1</property> </packing> </child>
@@ -260,7 +258,6 @@ <property name="can_focus">True</property> <property name="has_focus">True</property> <property name="receives_default">True</property>
<property name="halign">end</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_reclaim_clicked" swapped="no"/>
@@ -275,7 +272,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="position">0</property> </packing> </child>
@@ -574,13 +570,13 @@ <child internal-child="action_area"> <object class="GtkButtonBox" id="dialog-action_area7"> <property name="can_focus">False</property>
<property name="layout_style">end</property> <child> <object class="GtkButton" id="options3_quit_button"> <property name="label" translatable="yes">_Quit installer</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property>
<property name="halign">start</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_quit_clicked" swapped="no"/>
@@ -589,6 +585,7 @@ <property name="expand">False</property> <property name="fill">True</property> <property name="position">0</property>
<property name="secondary">True</property> </packing> </child> <child>
@@ -598,7 +595,6 @@ <property name="can_focus">True</property> <property name="receives_default">True</property> <property name="tooltip_text" translatable="yes">Please wait... software metadata still loading.</property>
<property name="halign">center</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_modify_sw_clicked" swapped="no"/>
@@ -606,7 +602,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="position">1</property> </packing> </child>
@@ -617,7 +612,6 @@ <property name="can_focus">True</property> <property name="has_focus">True</property> <property name="receives_default">True</property>
<property name="halign">end</property> <property name="border_width">6</property> <property name="use_underline">True</property> <signal name="clicked" handler="on_cancel_clicked" swapped="no"/>
@@ -625,7 +619,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="position">2</property> </packing> </child>
@@ -633,7 +626,6 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="position">0</property> </packing> </child>
-- 1.7.11.2
anaconda-patches mailing list anaconda-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
There is a typo in "... device(s) you'd lke to install to...".
Martin
----- Original Message -----
pyanaconda/ui/gui/spokes/storage.glade | 53 ++++++++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 5 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/storage.glade b/pyanaconda/ui/gui/spokes/storage.glade index ca19e72..8162383 100644 --- a/pyanaconda/ui/gui/spokes/storage.glade +++ b/pyanaconda/ui/gui/spokes/storage.glade @@ -885,6 +885,26 @@ <property name="orientation">vertical</property> <property name="spacing">6</property> <child>
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">18</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Select
the device(s) you'd lke to install to. They will be left untouched until you click on the main menu's "Begin Installation" button.</property>
<property name="wrap">True</property>
<attributes>
<attribute name="font-desc" value="Cantarell
12"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child> <object class="GtkLabel" id="label1"> <property name="visible">True</property> <property name="can_focus">False</property>
@@ -901,7 +921,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="position">0</property>
<property name="position">1</property> </packing> </child> <child>
@@ -937,7 +957,24 @@ <packing> <property name="expand">False</property> <property name="fill">True</property>
<property name="position">1</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">24</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Disks
left unselected here will not be touched.</property>
<attributes>
<attribute name="font-desc" value="Cantarell
Italic 10"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property> </packing> </child> <child>
@@ -952,16 +989,16 @@ <property name="column_spacing">6</property> <child> <object class="GtkButton" id="summary_button">
<property name="label"
translatable="yes">_Full disk summary and options...</property>
<property name="label"
translatable="yes">_Full disk summary and bootloader...</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">True</property>
<property name="no_show_all">True</property> <property name="halign">start</property> <property name="margin_left">18</property> <property name="relief">none</property> <property name="use_underline">True</property> <property name="focus_on_click">False</property>
<property name="no_show_all">True</property> <property name="xalign">0</property> <signal name="clicked" handler="on_summary_clicked" swapped="no"/> </object>
@@ -1013,12 +1050,18 @@ <child> <placeholder/> </child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child> </object> <packing> <property name="expand">False</property> <property name="fill">True</property> <property name="pack_type">end</property>
<property name="position">3</property>
<property name="position">4</property> </packing> </child> </object>
-- 1.7.11.2
anaconda-patches mailing list anaconda-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
anaconda-patches@lists.fedorahosted.org