mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 14:54:14 +00:00
Remove extra ref on SpiceDisplay
There's no need to ref the SpiceDisplay widget when adding it to a container. The container will take its own ref.
This commit is contained in:
parent
401906afd7
commit
8f16b38f9e
@ -298,7 +298,7 @@ virt_viewer_display_spice_new(VirtViewerSessionSpice *session,
|
||||
G_CONNECT_SWAPPED);
|
||||
update_display_ready(self);
|
||||
|
||||
gtk_container_add(GTK_CONTAINER(self), g_object_ref(self->priv->display));
|
||||
gtk_container_add(GTK_CONTAINER(self), GTK_WIDGET(self->priv->display));
|
||||
gtk_widget_show(GTK_WIDGET(self->priv->display));
|
||||
g_object_set(self->priv->display,
|
||||
"grab-keyboard", TRUE,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user