When drag-dropping an image onto a conversation, include 'Send image file' as

Fri, 12 Oct 2007 12:47:07 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Fri, 12 Oct 2007 12:47:07 +0000
changeset 20976
c5cf79b99382
parent 20975
bdcc492d3fbe
child 20977
914bdbcdc77d

When drag-dropping an image onto a conversation, include 'Send image file' as
an option if the prpl supports file-transfer.
This closes #3510.

pidgin/gtkutils.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkutils.c	Fri Oct 12 12:13:39 2007 +0000
+++ b/pidgin/gtkutils.c	Fri Oct 12 12:47:07 2007 +0000
@@ -1526,6 +1526,8 @@
 
 			if (prpl_info && prpl_info->can_receive_file)
 				ft = prpl_info->can_receive_file(gc, who);
+			else if (prpl_info && prpl_info->send_file)
+				ft = TRUE;
 
 			if (im && ft)
 				purple_request_choice(NULL, NULL,
@@ -1559,6 +1561,7 @@
 						    _("Set as buddy icon"), DND_BUDDY_ICON,
 						    (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE),
 							NULL);
+			gdk_pixbuf_unref(pb);
 			return;
 		}
 

mercurial