comparison console/gntblist.c @ 13943:25be562aaca8

[gaim-migrate @ 16480] New widget GntLine to use as a separator. A partial dialog for add-account callback. Updating the dialog as a result of selection-change in the prpl dropdown is way ickier than I had expected it to be. It 'works' now, but quite a bit quirky. I will try to smooth things up later, perhaps next week. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 10 Jul 2006 23:55:24 +0000
parents 917a71dd02eb
children 841a5ffbfee4
comparison
equal deleted inserted replaced
13942:b14fdab68eac 13943:25be562aaca8
232 selection_activate(GntWidget *widget, GGBlist *ggblist) 232 selection_activate(GntWidget *widget, GGBlist *ggblist)
233 { 233 {
234 GntTree *tree = GNT_TREE(ggblist->tree); 234 GntTree *tree = GNT_TREE(ggblist->tree);
235 GaimBlistNode *node = gnt_tree_get_selection_data(tree); 235 GaimBlistNode *node = gnt_tree_get_selection_data(tree);
236 236
237 if (!node)
238 return;
239
237 if (GAIM_BLIST_NODE_IS_BUDDY(node)) 240 if (GAIM_BLIST_NODE_IS_BUDDY(node))
238 { 241 {
239 GaimBuddy *buddy = (GaimBuddy *)node; 242 GaimBuddy *buddy = (GaimBuddy *)node;
240 gaim_conversation_new(GAIM_CONV_TYPE_IM, 243 gaim_conversation_new(GAIM_CONV_TYPE_IM,
241 gaim_buddy_get_account(buddy), 244 gaim_buddy_get_account(buddy),