comparison src/gtkblist.c @ 7628:e293d0c42ccb

[gaim-migrate @ 8252] "Hi, my name is Gaim ... and I'm addicted to glib 2.0." committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Tue, 25 Nov 2003 03:30:59 +0000
parents 4f41c4aa9913
children 01c1b3ea70c6
comparison
equal deleted inserted replaced
7627:dc88428762c9 7628:e293d0c42ccb
1130 char **s, **uris = data->uris; 1130 char **s, **uris = data->uris;
1131 1131
1132 s = uris; 1132 s = uris;
1133 1133
1134 do { 1134 do {
1135 if (g_str_has_prefix(*s, "file://")) { 1135 if (gaim_str_has_prefix(*s, "file://")) {
1136 char *file = g_strstrip(*s + strlen ("file://")); 1136 char *file = g_strstrip(*s + strlen ("file://"));
1137 1137
1138 serv_send_file(buddy->account->gc, buddy->name, file); 1138 serv_send_file(buddy->account->gc, buddy->name, file);
1139 } 1139 }
1140 1140
1191 1191
1192 uris = s = g_strsplit (sd->data, "\n", 0); 1192 uris = s = g_strsplit (sd->data, "\n", 0);
1193 1193
1194 /* Count how many files the user is trying to send */ 1194 /* Count how many files the user is trying to send */
1195 do { 1195 do {
1196 if (g_str_has_prefix (*s, "file://")) 1196 if (gaim_str_has_prefix (*s, "file://"))
1197 n++; 1197 n++;
1198 } while (*(++s)); 1198 } while (*(++s));
1199 1199
1200 /* Some one is trying to drop something != file:/// */ 1200 /* Some one is trying to drop something != file:/// */
1201 if (n == 0 && *uris != NULL) { 1201 if (n == 0 && *uris != NULL) {