comparison src/gtkconv.c @ 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 2d4301c90aed
children 03066f174777
comparison
equal deleted inserted replaced
9524:533c99c79c44 9525:a3be930b7fad
4327 if (username != NULL) g_free(username); 4327 if (username != NULL) g_free(username);
4328 if (protocol != NULL) g_free(protocol); 4328 if (protocol != NULL) g_free(protocol);
4329 4329
4330 gtk_drag_finish(dc, TRUE, (dc->action == GDK_ACTION_MOVE), t); 4330 gtk_drag_finish(dc, TRUE, (dc->action == GDK_ACTION_MOVE), t);
4331 } 4331 }
4332 else if (sd->target == gdk_atom_intern("text/plain", FALSE)) { 4332 else if (sd->target == gdk_atom_intern("text/uri-list", FALSE)) {
4333 if (!g_ascii_strncasecmp(sd->data, "file://", 7)) { 4333 if (!g_ascii_strncasecmp(sd->data, "file://", 7)) {
4334 GError *converr = NULL; 4334 GError *converr = NULL;
4335 gchar *file; 4335 gchar *file;
4336 if(!(file = g_filename_from_uri(sd->data, NULL, &converr))) { 4336 if(!(file = g_filename_from_uri(sd->data, NULL, &converr))) {
4337 gaim_debug(GAIM_DEBUG_ERROR, "conv dnd", "%s\n", 4337 gaim_debug(GAIM_DEBUG_ERROR, "conv dnd", "%s\n",
4499 gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkwin->notebook), index); 4499 gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkwin->notebook), index);
4500 } 4500 }
4501 4501
4502 static const GtkTargetEntry te[] = 4502 static const GtkTargetEntry te[] =
4503 { 4503 {
4504 {"text/plain", 0, 0}, 4504 {"text/uri-list", 0, 0},
4505 {"text/uri-list", 0, 1}, 4505 {"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, 1},
4506 {"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, 2}, 4506 {"text/plain", 0, 2},
4507 {"STRING", 0, 3}, 4507 {"STRING", 0, 3},
4508 {"application/x-im-contact", 0, 4} 4508 {"application/x-im-contact", 0, 4}
4509 }; 4509 };
4510 4510
4511 static void 4511 static void