diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-04-05 16:26:14 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-04-05 16:56:25 +0200 |
commit | e15ca100b9ef8b5dbce36086f5e210f78b5f2b0d (patch) | |
tree | d44bdfb6b9eff7c4c0721f389b2472f8002c327e /gtk | |
parent | ed95a3ccba0286730783fe22a43b6559ec85b8b3 (diff) |
gtk: take selection into account in clipboard_release
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/spice-widget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c index 2903649..da079a2 100644 --- a/gtk/spice-widget.c +++ b/gtk/spice-widget.c @@ -1686,8 +1686,11 @@ static gboolean clipboard_request(SpiceMainChannel *main, guint selection, static void clipboard_release(SpiceMainChannel *main, guint selection, gpointer data) { spice_display *d = SPICE_DISPLAY_GET_PRIVATE(data); + GtkClipboard* clipboard = get_clipboard_from_selection(d, selection); + if (!clipboard) + return; - gtk_clipboard_clear(d->clipboard); + gtk_clipboard_clear(clipboard); } static void channel_new(SpiceSession *s, SpiceChannel *channel, gpointer data) |