changeset 11110:f7ce10cad83d

[gaim-migrate @ 13162] Make drag-and-drop buddy icon setting work for protocols that don't have file transfer. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 17 Jul 2005 21:38:59 +0000
parents b8f11f70cf97
children f03dce7ea408
files src/gtkutils.c
diffstat 1 files changed, 12 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkutils.c	Sun Jul 17 21:13:51 2005 +0000
+++ b/src/gtkutils.c	Sun Jul 17 21:38:59 2005 +0000
@@ -1368,20 +1368,6 @@
 	char *who;
 } _DndData;
 
-static void dnd_set_icon_ok_cb(_DndData *data)
-{
-	free(data->filename);
-	free(data->who);
-	free(data);
-}
-
-static void dnd_set_icon_cancel_cb(_DndData *data)
-{
-	free(data->filename);
-	free(data->who);
-	free (data);
-}
-
 static void dnd_image_ok_callback(_DndData *data, int choice)
 {
 	char *filedata;
@@ -1454,6 +1440,18 @@
 	free(data);
 }
 
+static void dnd_set_icon_ok_cb(_DndData *data)
+{
+	dnd_image_ok_callback(data, DND_BUDDY_ICON);
+}
+
+static void dnd_set_icon_cancel_cb(_DndData *data)
+{
+	free(data->filename);
+	free(data->who);
+	free(data);
+}
+
 void
 gaim_dnd_file_manage(GtkSelectionData *sd, GaimAccount *account, const char *who)
 {