comparison console/gntblist.c @ 14388:f4af666fafe3

[gaim-migrate @ 17094] Contactize the conversations. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 31 Aug 2006 04:39:21 +0000
parents d1e4e986bbd1
children 81932c1ec6cf
comparison
equal deleted inserted replaced
14387:39b0124a455d 14388:f4af666fafe3
15 #include "gntlabel.h" 15 #include "gntlabel.h"
16 #include "gntline.h" 16 #include "gntline.h"
17 #include "gnttree.h" 17 #include "gnttree.h"
18 18
19 #include "gntblist.h" 19 #include "gntblist.h"
20 #include "gntconv.h"
20 #include "gntstatus.h" 21 #include "gntstatus.h"
21 #include <string.h> 22 #include <string.h>
22 23
23 #define PREF_ROOT "/gaim/gnt/blist" 24 #define PREF_ROOT "/gaim/gnt/blist"
24 #define TYPING_TIMEOUT 4000 25 #define TYPING_TIMEOUT 4000
494 node = (GaimBlistNode*)gaim_contact_get_priority_buddy((GaimContact*)node); 495 node = (GaimBlistNode*)gaim_contact_get_priority_buddy((GaimContact*)node);
495 496
496 if (GAIM_BLIST_NODE_IS_BUDDY(node)) 497 if (GAIM_BLIST_NODE_IS_BUDDY(node))
497 { 498 {
498 GaimBuddy *buddy = (GaimBuddy *)node; 499 GaimBuddy *buddy = (GaimBuddy *)node;
499 gaim_conversation_new(GAIM_CONV_TYPE_IM, 500 GaimConversation *conv = gaim_conversation_new(GAIM_CONV_TYPE_IM,
500 gaim_buddy_get_account(buddy), 501 gaim_buddy_get_account(buddy),
501 gaim_buddy_get_name(buddy)); 502 gaim_buddy_get_name(buddy));
503 gg_conversation_set_active(conv);
502 } 504 }
503 else if (GAIM_BLIST_NODE_IS_CHAT(node)) 505 else if (GAIM_BLIST_NODE_IS_CHAT(node))
504 { 506 {
505 GaimChat *chat = (GaimChat*)node; 507 GaimChat *chat = (GaimChat*)node;
506 serv_join_chat(chat->account->gc, chat->components); 508 serv_join_chat(chat->account->gc, chat->components);