im.pidgin.pidgin: 00d984abf9fb9de0f1e00d45230b5cd35329e469

sadrul at pidgin.im sadrul at pidgin.im
Fri Oct 12 08:45:38 EDT 2007


-----------------------------------------------------------------
Revision: 00d984abf9fb9de0f1e00d45230b5cd35329e469
Ancestor: f28fe5ed42cadd9ebe524e358fa913a04817da8e
Author: sadrul at pidgin.im
Date: 2007-10-12T12:47:07
Branch: im.pidgin.pidgin

Modified files:
        pidgin/gtkutils.c

ChangeLog: 

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

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	0352253dbb8ef3e8a0276b60465b7d224b406976
+++ pidgin/gtkutils.c	04771b82cd667c74ccf31f582e6de3502242f5d3
@@ -1526,6 +1526,8 @@ pidgin_dnd_file_manage(GtkSelectionData 
 
 			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 @@ pidgin_dnd_file_manage(GtkSelectionData 
 						    _("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;
 		}
 


More information about the Commits mailing list