comparison src/gtkblist.c @ 9673:906949cd7a1e

[gaim-migrate @ 10525] datallah here is cleaning up his mistakes committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 05 Aug 2004 14:55:58 +0000
parents ed3bbf36de75
children 882e7e423457
comparison
equal deleted inserted replaced
9672:12d0822a3983 9673:906949cd7a1e
2012 2012
2013 if (GAIM_BLIST_NODE_IS_BUDDY(node) || GAIM_BLIST_NODE_IS_CONTACT(node)) { 2013 if (GAIM_BLIST_NODE_IS_BUDDY(node) || GAIM_BLIST_NODE_IS_CONTACT(node)) {
2014 GaimBuddy *b = GAIM_BLIST_NODE_IS_BUDDY(node) ? (GaimBuddy*)node : gaim_contact_get_priority_buddy((GaimContact*)node); 2014 GaimBuddy *b = GAIM_BLIST_NODE_IS_BUDDY(node) ? (GaimBuddy*)node : gaim_contact_get_priority_buddy((GaimContact*)node);
2015 GList *tmp; 2015 GList *tmp;
2016 GList *files = gaim_uri_list_extract_filenames(sd->data); 2016 GList *files = gaim_uri_list_extract_filenames(sd->data);
2017 for(tmp = files; tmp != NULL ; tmp = g_list_next(tmp)) { 2017 for(tmp = files; tmp != NULL ; tmp = g_list_next(tmp)) {
2018 gchar *filename = tmp->data; 2018 gchar *filename = tmp->data;
2019 /* XXX - Make ft API support creating a transfer with more than one file */ 2019 /* XXX - Make ft API support creating a transfer with more than one file */
2020 if (g_file_test(filename, G_FILE_TEST_EXISTS) 2020 if (g_file_test(filename, G_FILE_TEST_EXISTS)
2021 && !g_file_test(filename, G_FILE_TEST_IS_DIR)) { 2021 && !g_file_test(filename, G_FILE_TEST_IS_DIR)) {
2022 serv_send_file(gaim_account_get_connection(b->account), b->name, filename); 2022 serv_send_file(gaim_account_get_connection(b->account), b->name, filename);
2023 } 2023 }
2024 g_free(filename); 2024 g_free(filename);
2025 } 2025 }
2026 g_list_free(files); 2026 g_list_free(files);
2027 } 2027 }
2028 } 2028 }
2029 } 2029 }
2030 } 2030 }