summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2011-02-13 19:11:33 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2011-02-19 00:01:29 +0100
commit349e9dd7b76595585148d9c1c9a08c3116e0a863 (patch)
treec3e3b502e5a56ae4b884a561d9aa3238844a9a3a
parent1398b9bdd5e56a7348350262159dc527e94ce34f (diff)
gtk: share clipboard images
-rw-r--r--TODO1
-rw-r--r--gtk/spice-widget.c21
2 files changed, 21 insertions, 1 deletions
diff --git a/TODO b/TODO
index 9ef7582..9e15711 100644
--- a/TODO
+++ b/TODO
@@ -1,5 +1,4 @@
* sync audio with GStreamer backend
* multihead
* use libspice-common instead of common/
-* clipboard images
* TunnelChannel?
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index cfd8149..72cbd9c 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -996,6 +996,27 @@ static const struct {
},{
.vdagent = VD_AGENT_CLIPBOARD_UTF8_TEXT,
.xatom = "text/plain"
+ },{
+ .vdagent = VD_AGENT_CLIPBOARD_IMAGE_PNG,
+ .xatom = "image/png"
+ },{
+ .vdagent = VD_AGENT_CLIPBOARD_IMAGE_BMP,
+ .xatom = "image/bmp"
+ },{
+ .vdagent = VD_AGENT_CLIPBOARD_IMAGE_BMP,
+ .xatom = "image/x-bmp"
+ },{
+ .vdagent = VD_AGENT_CLIPBOARD_IMAGE_BMP,
+ .xatom = "image/x-MS-bmp"
+ },{
+ .vdagent = VD_AGENT_CLIPBOARD_IMAGE_BMP,
+ .xatom = "image/x-win-bitmap"
+ },{
+ .vdagent = VD_AGENT_CLIPBOARD_IMAGE_TIFF,
+ .xatom = "image/tiff"
+ },{
+ .vdagent = VD_AGENT_CLIPBOARD_IMAGE_JPG,
+ .xatom = "image/jpeg"
}
};