Re: [PATCH] display: set min value for desktop-{width, height} props as MIN_DISPLAY_{WIDTH, HEIGHT}

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

 



Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>

Thanks,
Pavel

On Fri, 2016-01-08 at 12:39 +0100, Fabiano Fidêncio wrote:
> Otherwise we can have warnings when resizing the virt-viewer window
> to
> the smallest possible size, like:
> 
> (virt-viewer:11187): GLib-GObject-WARNING **: value "50" of type
> `gint'
> is invalid or out of range for property `desktop-height' of type
> `gint'
> 
> Related: rhbz#1296878
> ---
>  src/virt-viewer-display.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/virt-viewer-display.c b/src/virt-viewer-display.c
> index d8b3312..036b713 100644
> --- a/src/virt-viewer-display.c
> +++ b/src/virt-viewer-display.c
> @@ -114,7 +114,7 @@
> virt_viewer_display_class_init(VirtViewerDisplayClass *class)
>                                      g_param_spec_int("desktop-
> width",
>                                                       "Width",
>                                                       "Desktop
> width",
> -                                                     100,
> +                                                     MIN_DISPLAY_WID
> TH,
>                                                       G_MAXINT32,
>                                                       100,
>                                                       G_PARAM_READWRI
> TE));
> @@ -124,7 +124,7 @@
> virt_viewer_display_class_init(VirtViewerDisplayClass *class)
>                                      g_param_spec_int("desktop-
> height",
>                                                       "Height",
>                                                       "Desktop
> height",
> -                                                     100,
> +                                                     MIN_DISPLAY_HEI
> GHT,
>                                                       G_MAXINT32,
>                                                       100,
>                                                       G_PARAM_READWRI
> TE));

_______________________________________________
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