[PATCH newui 4/5] Network spoke: show iface name, vendor and type information.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/ui/gui/spokes/network.py |    9 ++++++---
 pyanaconda/ui/gui/spokes/network.ui |    2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index a58556d..4b30be1 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -551,8 +551,11 @@ class NetworkSpoke(NormalSpoke):
         return str
 
     def _dev_title(self, device):
-        #return '<span hsize="large">%s</span>' % self._dev_type_str(device)
-        return self._dev_type_str(device)
+        title = '<span size="large">%s (%s)</span>' % (self._dev_type_str(device),
+                                                       device.get_iface())
+        title += '\n<span size="small">%s %s</span>' % (device.get_vendor(),
+                                                        device.get_product())
+        return title
 
     def _dev_type_str(self, device):
         dev_type = device.get_device_type()
@@ -725,7 +728,7 @@ class NetworkSpoke(NormalSpoke):
 
         # TODO: is this necessary? Isn't it static from glade?
         self.builder.get_object("label_%s_device" % dev_type_str).set_label(
-            self._dev_type_str(device))
+            "%s (%s)" % (self._dev_type_str(device), device.get_iface()))
 
         state = device.get_state()
         self.builder.get_object("label_%s_status" % dev_type_str).set_label(
diff --git a/pyanaconda/ui/gui/spokes/network.ui b/pyanaconda/ui/gui/spokes/network.ui
index 5f77b7c..a677186 100644
--- a/pyanaconda/ui/gui/spokes/network.ui
+++ b/pyanaconda/ui/gui/spokes/network.ui
@@ -87,8 +87,8 @@
                                   <object class="GtkScrolledWindow" id="devices_scrolledwindow">
                                     <property name="visible">True</property>
                                     <property name="can_focus">True</property>
-                                    <property name="hscrollbar_policy">never</property>
                                     <property name="shadow_type">in</property>
+                                    <property name="min_content_width">300</property>
                                     <child>
                                       <object class="GtkTreeView" id="treeview_devices">
                                         <property name="visible">True</property>
-- 
1.7.7.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux