<p dir="ltr"><br>
On Sep 10, 2014 8:42 PM, "Jonathon Jongsma" <<a href="mailto:jjongsma@redhat.com">jjongsma@redhat.com</a>> wrote:<br>
><br>
> There's no need to ref the SpiceDisplay widget when adding it to a<br>
> container. The container will take its own ref.</p>
<p dir="ltr">If we remove the SpiceDisplay from the container, it can unref the last reference of the widget. Ack if you are sure that this is not the case why the SpiceDisplay is ref'ed.</p>
<p dir="ltr">> ---<br>
>  src/virt-viewer-display-spice.c | 2 +-<br>
>  1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/src/virt-viewer-display-spice.c b/src/virt-viewer-display-spice.c<br>
> index 2ce42cf..e568cfb 100644<br>
> --- a/src/virt-viewer-display-spice.c<br>
> +++ b/src/virt-viewer-display-spice.c<br>
> @@ -298,7 +298,7 @@ virt_viewer_display_spice_new(VirtViewerSessionSpice *session,<br>
>                                        G_CONNECT_SWAPPED);<br>
>      update_display_ready(self);<br>
><br>
> -    gtk_container_add(GTK_CONTAINER(self), g_object_ref(self->priv->display));<br>
> +    gtk_container_add(GTK_CONTAINER(self), GTK_WIDGET(self->priv->display));<br>
>      gtk_widget_show(GTK_WIDGET(self->priv->display));<br>
>      g_object_set(self->priv->display,<br>
>                   "grab-keyboard", TRUE,<br>
> --<br>
> 1.9.3<br>
><br>
> _______________________________________________<br>
> virt-tools-list mailing list<br>
> <a href="mailto:virt-tools-list@redhat.com">virt-tools-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/virt-tools-list">https://www.redhat.com/mailman/listinfo/virt-tools-list</a><br>
</p>