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

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
This commit is contained in:
Fabiano Fidêncio 2016-01-08 12:33:34 +01:00
parent 992df28142
commit 907f8c5d33

View File

@ -114,7 +114,7 @@ virt_viewer_display_class_init(VirtViewerDisplayClass *class)
g_param_spec_int("desktop-width",
"Width",
"Desktop width",
100,
MIN_DISPLAY_WIDTH,
G_MAXINT32,
100,
G_PARAM_READWRITE));
@ -124,7 +124,7 @@ virt_viewer_display_class_init(VirtViewerDisplayClass *class)
g_param_spec_int("desktop-height",
"Height",
"Desktop height",
100,
MIN_DISPLAY_HEIGHT,
G_MAXINT32,
100,
G_PARAM_READWRITE));