comparison src/protocols/oscar/oscar.c @ 11581:9b3833da6840

[gaim-migrate @ 13851] goodbye GaimConvWindow. Still some problems with this patch: - Scarey warnings console with gaim -d when closing tab - I tried to seperate gtkconv and gtkconvwin, but failed, as a result it has its own header, but the code is in the same file, which is rather weird. Also some code got moved around for no good reason. Feel free to move it back or reorganize it. - I broke the gesters plugin, and just disabled it. Hopefully someone with more time will fix it, it shouldn't take long, but I didn't feel like bothering. - This list is incomplete. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 02 Oct 2005 00:32:49 +0000
parents 603a0e626332
children fd74e7b67682
comparison
equal deleted inserted replaced
11580:24169af08585 11581:9b3833da6840
960 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, dim->name, 960 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, dim->name,
961 gaim_connection_get_account(dim->gc)); 961 gaim_connection_get_account(dim->gc));
962 962
963 if (conv) { 963 if (conv) {
964 gaim_conversation_write(conv, NULL, buf, GAIM_MESSAGE_SYSTEM, time(NULL)); 964 gaim_conversation_write(conv, NULL, buf, GAIM_MESSAGE_SYSTEM, time(NULL));
965 gaim_conversation_update_progress(conv, 0);
966 } else { 965 } else {
967 gaim_notify_error(dim->gc, NULL, _("Direct Connect failed"), buf); 966 gaim_notify_error(dim->gc, NULL, _("Direct Connect failed"), buf);
968 } 967 }
969 968
970 oscar_direct_im_destroy(od, dim); 969 oscar_direct_im_destroy(od, dim);
1192 va_list ap; 1191 va_list ap;
1193 char *sn; 1192 char *sn;
1194 double percent; 1193 double percent;
1195 GaimConnection *gc = sess->aux_data; 1194 GaimConnection *gc = sess->aux_data;
1196 OscarData *od = (OscarData *)gc->proto_data; 1195 OscarData *od = (OscarData *)gc->proto_data;
1197 GaimConversation *c;
1198 struct oscar_direct_im *dim; 1196 struct oscar_direct_im *dim;
1199 1197
1200 va_start(ap, fr); 1198 va_start(ap, fr);
1201 sn = va_arg(ap, char *); 1199 sn = va_arg(ap, char *);
1202 percent = va_arg(ap, double); 1200 percent = va_arg(ap, double);
1208 gaim_input_remove(dim->watcher); /* Otherwise, the callback will callback */ 1206 gaim_input_remove(dim->watcher); /* Otherwise, the callback will callback */
1209 /* The callback will callback? I don't get how that would happen here. */ 1207 /* The callback will callback? I don't get how that would happen here. */
1210 dim->watcher = 0; 1208 dim->watcher = 0;
1211 } 1209 }
1212 1210
1213 c = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, sn,
1214 gaim_connection_get_account(gc));
1215 if (c != NULL)
1216 gaim_conversation_update_progress(c, percent);
1217 dim->watcher = gaim_input_add(dim->conn->fd, GAIM_INPUT_READ, 1211 dim->watcher = gaim_input_add(dim->conn->fd, GAIM_INPUT_READ,
1218 oscar_callback, dim->conn); 1212 oscar_callback, dim->conn);
1219 1213
1220 return 1; 1214 return 1;
1221 } 1215 }