mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-08 21:14:16 +00:00
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:
parent
992df28142
commit
907f8c5d33
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user