comparison src/conversation.c @ 11598:7d7de96eef1e

[gaim-migrate @ 13868] Let's finish creating a conversation before we tell the ui it was created... committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Mon, 03 Oct 2005 05:54:06 +0000
parents 9b3833da6840
children 24274a79d6b0
comparison
equal deleted inserted replaced
11597:036bd21c5560 11598:7d7de96eef1e
305 GAIM_LOG_IM, conv->name, account, 305 GAIM_LOG_IM, conv->name, account,
306 conv, time(NULL))); 306 conv, time(NULL)));
307 /* copy features from the connection. */ 307 /* copy features from the connection. */
308 conv->features = gc->flags; 308 conv->features = gc->flags;
309 309
310 ops = conv->ui_ops = default_ops;
311 if (ops != NULL && ops->create_conversation != NULL)
312 ops->create_conversation(conv);
313
314 if (type == GAIM_CONV_TYPE_IM) 310 if (type == GAIM_CONV_TYPE_IM)
315 { 311 {
316 GaimBuddyIcon *icon; 312 GaimBuddyIcon *icon;
317 conv->u.im = g_new0(GaimConvIm, 1); 313 conv->u.im = g_new0(GaimConvIm, 1);
318 conv->u.im->conv = conv; 314 conv->u.im->conv = conv;
342 gaim_account_get_username(account)); 338 gaim_account_get_username(account));
343 339
344 gaim_conversation_set_logging(conv, 340 gaim_conversation_set_logging(conv,
345 gaim_prefs_get_bool("/core/logging/log_chats")); 341 gaim_prefs_get_bool("/core/logging/log_chats"));
346 } 342 }
343
344 ops = conv->ui_ops = default_ops;
345 if (ops != NULL && ops->create_conversation != NULL)
346 ops->create_conversation(conv);
347 347
348 conversations = g_list_append(conversations, conv); 348 conversations = g_list_append(conversations, conv);
349 349
350 /* Auto-set the title. */ 350 /* Auto-set the title. */
351 gaim_conversation_autoset_title(conv); 351 gaim_conversation_autoset_title(conv);