| 1535 { |
1535 { |
| 1536 GdkPixbuf *pb; |
1536 GdkPixbuf *pb; |
| 1537 GList *files = purple_uri_list_extract_filenames((const gchar *)sd->data); |
1537 GList *files = purple_uri_list_extract_filenames((const gchar *)sd->data); |
| 1538 PurpleConnection *gc = purple_account_get_connection(account); |
1538 PurpleConnection *gc = purple_account_get_connection(account); |
| 1539 PurplePluginProtocolInfo *prpl_info = NULL; |
1539 PurplePluginProtocolInfo *prpl_info = NULL; |
| 1540 gboolean file_send_ok = FALSE; |
|
| 1541 #ifndef _WIN32 |
1540 #ifndef _WIN32 |
| 1542 PurpleDesktopItem *item; |
1541 PurpleDesktopItem *item; |
| 1543 #endif |
1542 #endif |
| 1544 gchar *filename = NULL; |
1543 gchar *filename = NULL; |
| 1545 gchar *basename = NULL; |
1544 gchar *basename = NULL; |
| 1551 g_free(filename); |
1550 g_free(filename); |
| 1552 g_free(basename); |
1551 g_free(basename); |
| 1553 |
1552 |
| 1554 filename = files->data; |
1553 filename = files->data; |
| 1555 basename = g_path_get_basename(filename); |
1554 basename = g_path_get_basename(filename); |
| 1556 |
|
| 1557 /* Set the default action: don't send anything */ |
|
| 1558 file_send_ok = FALSE; |
|
| 1559 |
1555 |
| 1560 /* XXX - Make ft API support creating a transfer with more than one file */ |
1556 /* XXX - Make ft API support creating a transfer with more than one file */ |
| 1561 if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { |
1557 if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { |
| 1562 continue; |
1558 continue; |
| 1563 } |
1559 } |