Re: [PATCH newui 6/7] Network spoke: show iface name, vendor and type information.

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

 



> diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
> index 7cefa59..f127131 100644
> --- a/pyanaconda/ui/gui/spokes/network.py
> +++ b/pyanaconda/ui/gui/spokes/network.py
> @@ -528,8 +528,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()

What happens if the title is very long?  Do you have a cap on the size
of the left side box somewhere to limit its width from growing to take
up too much of the screen?

- Chris

_______________________________________________
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