[Spice-devel] [RFC] [PATCH spice-gtk 0/4] simply implement of file drag-and-drop

Dunrong Huang riegamaths at gmail.com
Mon Nov 5 01:01:14 PST 2012


These patches simply implement file drag-and-drop from client to guest.

There are some TODOs needed to be done:
  * transfer multiple files and directories
  * check whether guest has enough space to store file
  * a progress bar that allows user to cancels file transfer,
    since we always pre-cache before sending file content,
	it has a little difficult to finish.

Comments are welcome, please review!

Dunrong Huang (4):
  DND: Add spice_main_dnd_*() for sending dnd message to guest
  DND: Add spice-dnd.c
  DND: handle "drag-data-received" signal
  DND: Set a maximum allowed file size

 gtk/Makefile.am         |   1 +
 gtk/channel-main.c      |  16 +++++++
 gtk/channel-main.h      |   3 ++
 gtk/map-file            |   3 ++
 gtk/spice-dnd.c         | 122 ++++++++++++++++++++++++++++++++++++++++++++++++
 gtk/spice-dnd.h         |  24 ++++++++++
 gtk/spice-glib-sym-file |   3 ++
 gtk/spice-widget.c      |  48 +++++++++++++++++++
 8 files changed, 220 insertions(+)
 create mode 100644 gtk/spice-dnd.c
 create mode 100644 gtk/spice-dnd.h

-- 
1.7.12.4



More information about the Spice-devel mailing list