Mercurial > pidgin.yaz
comparison src/gtkblist.c @ 5489:5b5aa701d46b
[gaim-migrate @ 5885]
Double-clicking a buddy in the buddy list now sets focus on the window.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 22 May 2003 18:51:35 +0000 |
parents | e1cc0c67e123 |
children | dcfe83cdfd42 |
comparison
equal
deleted
inserted
replaced
5488:458422e5a561 | 5489:5b5aa701d46b |
---|---|
289 node = g_value_get_pointer(&val); | 289 node = g_value_get_pointer(&val); |
290 | 290 |
291 if (GAIM_BLIST_NODE_IS_BUDDY(node)) { | 291 if (GAIM_BLIST_NODE_IS_BUDDY(node)) { |
292 struct gaim_conversation *conv = | 292 struct gaim_conversation *conv = |
293 gaim_conversation_new(GAIM_CONV_IM, ((struct buddy*)node)->account, ((struct buddy*)node)->name); | 293 gaim_conversation_new(GAIM_CONV_IM, ((struct buddy*)node)->account, ((struct buddy*)node)->name); |
294 | |
294 if(conv) { | 295 if(conv) { |
295 gaim_window_raise(gaim_conversation_get_window(conv)); | 296 struct gaim_window *win = gaim_conversation_get_window(conv); |
297 | |
298 gaim_window_raise(win); | |
296 gaim_window_switch_conversation( | 299 gaim_window_switch_conversation( |
297 gaim_conversation_get_window(conv), | 300 gaim_conversation_get_window(conv), |
298 gaim_conversation_get_index(conv)); | 301 gaim_conversation_get_index(conv)); |
302 | |
303 if (GAIM_IS_GTK_WINDOW(win)) | |
304 gtk_window_present(GTK_WINDOW(GAIM_GTK_WINDOW(win)->window)); | |
299 } | 305 } |
300 } else if (GAIM_BLIST_NODE_IS_CHAT(node)) { | 306 } else if (GAIM_BLIST_NODE_IS_CHAT(node)) { |
301 serv_join_chat(((struct chat *)node)->account->gc, ((struct chat*)node)->components); | 307 serv_join_chat(((struct chat *)node)->account->gc, ((struct chat*)node)->components); |
302 } else if (GAIM_BLIST_NODE_IS_GROUP(node)) { | 308 } else if (GAIM_BLIST_NODE_IS_GROUP(node)) { |
303 if (gtk_tree_view_row_expanded(tv, path)) | 309 if (gtk_tree_view_row_expanded(tv, path)) |