[virt-tools-list] [PATCH virt-viewer] display: Set value of desktop width and height property directly

Pavel Grunt pgrunt at redhat.com
Wed Jan 27 17:33:27 UTC 2016


Avoid calling gtk_widget_queue_resize() and emitting
the "display-desktop-resize" signal.
---
 src/virt-viewer-display.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/virt-viewer-display.c b/src/virt-viewer-display.c
index d1b088e..af1fe01 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);
-- 
2.5.0




More information about the virt-tools-list mailing list