On Wed, Sep 14, 2016 at 11:33:16AM +0200, Pavel Grunt wrote: > Hi Christophe, > > On Wed, 2016-09-14 at 11:24 +0200, Christophe Fergeau wrote: > > On Wed, Sep 14, 2016 at 10:03:31AM +0200, Pavel Grunt wrote: > > Call spice_main_file_copy_finish to get result of the transfer > > --- > > src/spice-widget.c | 18 +++++++++++++++++- > > 1 file changed, 17 insertions(+), 1 deletion(-) > > > > diff --git a/src/spice-widget.c b/src/spice-widget.c > > index 9c8f7d1..cc89f22 100644 > > --- a/src/spice-widget.c > > +++ b/src/spice-widget.c > > @@ -499,6 +499,22 @@ static gboolean grab_broken(SpiceDisplay *self, > > GdkEventGrabBroken *event, > > return false; > > } > > > > +static void file_transfer_callback(GObject *source_object, > > + GAsyncResult *result, > > + gpointer user_data > > G_GNUC_UNUSED) > > +{ > > + SpiceMainChannel *channel = SPICE_MAIN_CHANNEL(source_object); > > + GError *error = NULL; > > + > > + if (spice_main_file_copy_finish(channel, result, &error)) > > + return; > > + > > + if (error != NULL && error->message != NULL) > > + g_warning("File transfer failed with error: %s", error- > > >message); > > > > > > You could add an else g_warning("File transfer failed"); when these > > are > > NULL. > ok > > > Do you know if there are any notifications to spice-gtk users that > > dnd is happening and of the progress of dnd? > There is SPICE_DEBUG("%s: drag a file", __FUNCTION__); on dnd start, > no info about progress of dnd. > > I am fixing the issue when agent is not connected and user does dnd Forgot to add Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx> to my first message btw ;) Christophe
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel