comparison src/buddy.c @ 4911:50b77ae4cacf

[gaim-migrate @ 5245] Danny Colascione (quotemstr) submitted a patch to raise the windows when you double click on a buddy committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 30 Mar 2003 13:12:50 +0000
parents 68e2b07ef8d7
children a6e9cd5e853e
comparison
equal deleted inserted replaced
4910:2ecae50992e2 4911:50b77ae4cacf
221 221
222 gtk_tree_model_get_value (GTK_TREE_MODEL(gtkblist->treemodel), &iter, NODE_COLUMN, &val); 222 gtk_tree_model_get_value (GTK_TREE_MODEL(gtkblist->treemodel), &iter, NODE_COLUMN, &val);
223 node = g_value_get_pointer(&val); 223 node = g_value_get_pointer(&val);
224 224
225 if (GAIM_BLIST_NODE_IS_BUDDY(node)) { 225 if (GAIM_BLIST_NODE_IS_BUDDY(node)) {
226 gaim_conversation_new(GAIM_CONV_IM, ((struct buddy*)node)->account, ((struct buddy*)node)->name); 226 struct gaim_conversation *conv =
227 gaim_conversation_new(GAIM_CONV_IM, ((struct buddy*)node)->account, ((struct buddy*)node)->name);
228 if(conv) {
229 gaim_window_raise(gaim_conversation_get_window(conv));
230 gaim_window_switch_conversation(
231 gaim_conversation_get_window(conv),
232 gaim_conversation_get_index(conv));
233 }
227 } else if (GAIM_BLIST_NODE_IS_GROUP(node)) { 234 } else if (GAIM_BLIST_NODE_IS_GROUP(node)) {
228 if (gtk_tree_view_row_expanded(tv, path)) 235 if (gtk_tree_view_row_expanded(tv, path))
229 gtk_tree_view_collapse_row(tv, path); 236 gtk_tree_view_collapse_row(tv, path);
230 else 237 else
231 gtk_tree_view_expand_row(tv,path,FALSE); 238 gtk_tree_view_expand_row(tv,path,FALSE);