Remove usage of deprecated property

This commit is contained in:
Marc-André Lureau 2012-01-27 14:51:33 +01:00 committed by Daniel P. Berrange
parent 0084b1cfaa
commit 2dcd3fa617
4 changed files with 8 additions and 4 deletions

View File

@ -16,7 +16,7 @@ LIBVIRT_REQUIRED="0.6.0"
GTK2_REQUIRED="2.12.0"
GTK3_REQUIRED="3.0"
GTK_VNC_REQUIRED="0.4.3"
SPICE_GTK_REQUIRED="0.6.174"
SPICE_GTK_REQUIRED="0.8"
AC_PROG_CC
AM_PROG_CC_C_O

View File

@ -180,7 +180,6 @@ virt_viewer_display_spice_new(SpiceChannel *channel,
"grab-keyboard", TRUE,
"grab-mouse", TRUE,
"scaling", TRUE,
"auto-clipboard", TRUE,
"resize-guest", TRUE,
NULL);

View File

@ -36,6 +36,7 @@ G_DEFINE_TYPE (VirtViewerSessionSpice, virt_viewer_session_spice, VIRT_VIEWER_TY
struct _VirtViewerSessionSpicePrivate {
SpiceSession *session;
SpiceGtkSession *gtk_session;
SpiceAudio *audio;
};
@ -158,6 +159,9 @@ create_spice_session(VirtViewerSessionSpice *self)
self->priv->session = spice_session_new();
spice_set_session_option(self->priv->session);
self->priv->gtk_session = spice_gtk_session_get(self->priv->session);
g_object_set(self->priv->gtk_session, "auto-clipboard", TRUE, NULL);
g_signal_connect(self->priv->session, "channel-new",
G_CALLBACK(virt_viewer_session_spice_channel_new), self);
g_signal_connect(self->priv->session, "channel-destroy",
@ -182,6 +186,7 @@ virt_viewer_session_spice_close(VirtViewerSession *session)
spice_session_disconnect(self->priv->session);
g_object_unref(self->priv->session);
self->priv->session = NULL;
self->priv->gtk_session = NULL;
if (self->priv->audio)
g_object_unref(self->priv->audio);

View File

@ -44,9 +44,9 @@ BuildRequires: gtk-vnc-devel >= 0.4.3
%endif
%if %{with_spice}
%if %{with_gtk3}
BuildRequires: spice-gtk3-devel >= 0.6
BuildRequires: spice-gtk3-devel >= 0.8
%else
BuildRequires: spice-gtk-devel >= 0.6
BuildRequires: spice-gtk-devel >= 0.8
%endif
%endif
BuildRequires: /usr/bin/pod2man