changeset 9525:a3be930b7fad

[gaim-migrate @ 10352] This is the correcter way to do this. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 13 Jul 2004 23:05:59 +0000
parents 533c99c79c44
children 38648963d1fd
files src/gtkblist.c src/gtkconv.c
diffstat 2 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkblist.c	Tue Jul 13 21:00:58 2004 +0000
+++ b/src/gtkblist.c	Tue Jul 13 23:05:59 2004 +0000
@@ -2004,7 +2004,7 @@
 		result = parse_vcard(sd->data, group);
 
 		gtk_drag_finish(dc, result, (dc->action == GDK_ACTION_MOVE), t);
-	} else if (sd->target == gdk_atom_intern("text/plain", FALSE) && sd->data) {
+	} else if (sd->target == gdk_atom_intern("text/uri-list", FALSE) && sd->data) {
 		GtkTreePath *path = NULL;
 		GtkTreeViewDropPosition position;
 
@@ -3002,7 +3002,7 @@
 	}
 }
 
-enum {DRAG_BUDDY, DRAG_ROW, DRAG_VCARD, DRAG_TEXT, NUM_TARGETS};
+enum {DRAG_BUDDY, DRAG_ROW, DRAG_VCARD, DRAG_TEXT, DRAG_URI,NUM_TARGETS};
 
 static char *
 item_factory_translate_func (const char *path, gpointer func_data)
@@ -3043,7 +3043,8 @@
 	GtkTargetEntry gte[] = {{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW},
 				{"application/x-im-contact", 0, DRAG_BUDDY},
 				{"text/x-vcard", 0, DRAG_VCARD },
-	                        {"text/plain", 0, DRAG_TEXT}};
+				{"text/uri-list", 0, DRAG_URI},
+				{"text/plain", 0, DRAG_TEXT}};
 
 	if (gtkblist && gtkblist->window) {
 		gtk_widget_show(gtkblist->window);
--- a/src/gtkconv.c	Tue Jul 13 21:00:58 2004 +0000
+++ b/src/gtkconv.c	Tue Jul 13 23:05:59 2004 +0000
@@ -4329,7 +4329,7 @@
 
 		gtk_drag_finish(dc, TRUE, (dc->action == GDK_ACTION_MOVE), t);
 	}
-	else if (sd->target == gdk_atom_intern("text/plain", FALSE)) {
+	else if (sd->target == gdk_atom_intern("text/uri-list", FALSE)) {
 		if (!g_ascii_strncasecmp(sd->data, "file://", 7)) {
 			GError *converr = NULL;
 			gchar *file;
@@ -4501,9 +4501,9 @@
 
 static const GtkTargetEntry te[] =
 {
-	{"text/plain", 0, 0},
-	{"text/uri-list", 0, 1},
-	{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, 2},
+	{"text/uri-list", 0, 0},
+	{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, 1},
+	{"text/plain", 0, 2},
 	{"STRING", 0, 3},
 	{"application/x-im-contact", 0, 4}
 };