[virt-tools-list] [PATCH virt-viewer 3/4] Realize the display when it's added to the window

Marc-André Lureau marcandre.lureau at gmail.com
Thu Jul 18 18:19:59 UTC 2013


Make sure the widget get some dimensions, so if the display is enabled
before it is actually shown, it will have non-zero size
---
 src/virt-viewer-window.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index af1ec53..7513888 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -1113,6 +1113,7 @@ virt_viewer_window_set_display(VirtViewerWindow *self, VirtViewerDisplay *displa
 
         gtk_widget_show_all(GTK_WIDGET(display));
         gtk_notebook_append_page(GTK_NOTEBOOK(priv->notebook), GTK_WIDGET(display), NULL);
+        gtk_widget_realize(GTK_WIDGET(display));
 
         virt_viewer_signal_connect_object(priv->window, "key-press-event",
                                           G_CALLBACK(window_key_pressed), display, 0);
-- 
1.8.3.rc1.49.g8d97506




More information about the virt-tools-list mailing list