Re: [PATCH 3/3] virt-manager: AUTOSIZE the VM name column in the manager window

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

 



On 09/10/2013 10:07 AM, Giuseppe Scrivano wrote:
> Previously, if a very long "title" was shortened, the column was
> maintaining its original size, leaving the second column far away.
> To avoid it, enforce the first column to be automatically resized
> whenever the name of the VM is changed.
> 
> Signed-off-by: Giuseppe Scrivano <gscrivan@xxxxxxxxxx>
> ---
>  virtManager/manager.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/virtManager/manager.py b/virtManager/manager.py
> index c481c7b..185b946 100644
> --- a/virtManager/manager.py
> +++ b/virtManager/manager.py
> @@ -408,6 +408,7 @@ class vmmManager(vmmGObjectUI):
>  
>          nameCol = Gtk.TreeViewColumn(_("Name"))
>          nameCol.set_expand(True)
> +        nameCol.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE)
>          nameCol.set_spacing(6)
>          nameCol.set_sort_column_id(COL_NAME)
>  
> 

This is valid independently, since a VM name can change for a running VM as
well, so I've pushed it now.

Thanks,
Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux