summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2016-01-27 18:26:56 +0100
committerPavel Grunt <pgrunt@redhat.com>2016-02-03 15:25:09 +0100
commit422cbb6ea6320e9f429f1a7e795f880fb22b5703 (patch)
tree00604040eb1f21984d17712fb6a7fd12785af544
parent045174f4830c87054f8ddf3840fc76df6f2617b1 (diff)
downloadvirt-viewer-422cbb6ea6320e9f429f1a7e795f880fb22b5703.tar.gz
virt-viewer-422cbb6ea6320e9f429f1a7e795f880fb22b5703.tar.xz
virt-viewer-422cbb6ea6320e9f429f1a7e795f880fb22b5703.zip
display: Set value of desktop width and height property directly
Avoid calling gtk_widget_queue_resize() and emiting the "display-desktop-resize" signal. The only user of the properties is virt_viewer_display_spice_set_desktop() which will call the function and emit the signal after setting both "desktop-width" and "desktop-height" properties. Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
-rw-r--r--src/virt-viewer-display.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/virt-viewer-display.c b/src/virt-viewer-display.c
index 4bfa29b..654cada 100644
--- a/src/virt-viewer-display.c
+++ b/src/virt-viewer-display.c
@@ -301,14 +301,10 @@ virt_viewer_display_set_property(GObject *object,
switch (prop_id) {
case PROP_DESKTOP_WIDTH:
- virt_viewer_display_set_desktop_size(display,
- g_value_get_int(value),
- priv->desktopHeight);
+ priv->desktopWidth = g_value_get_int(value);
break;
case PROP_DESKTOP_HEIGHT:
- virt_viewer_display_set_desktop_size(display,
- priv->desktopWidth,
- g_value_get_int(value));
+ priv->desktopHeight = g_value_get_int(value);
break;
case PROP_NTH_DISPLAY:
priv->nth_display = g_value_get_int(value);