# HG changeset patch # User Christian Hammond # Date 1053629495 0 # Node ID 5b5aa701d46bd0c8d7ab6e0789be09ed5aa3f145 # Parent 458422e5a5617471fd2d995f3b674a56f0a10a74 [gaim-migrate @ 5885] Double-clicking a buddy in the buddy list now sets focus on the window. committer: Tailor Script diff -r 458422e5a561 -r 5b5aa701d46b src/gtkblist.c --- a/src/gtkblist.c Thu May 22 16:51:30 2003 +0000 +++ b/src/gtkblist.c Thu May 22 18:51:35 2003 +0000 @@ -291,11 +291,17 @@ if (GAIM_BLIST_NODE_IS_BUDDY(node)) { struct gaim_conversation *conv = gaim_conversation_new(GAIM_CONV_IM, ((struct buddy*)node)->account, ((struct buddy*)node)->name); + if(conv) { - gaim_window_raise(gaim_conversation_get_window(conv)); + struct gaim_window *win = gaim_conversation_get_window(conv); + + gaim_window_raise(win); gaim_window_switch_conversation( gaim_conversation_get_window(conv), gaim_conversation_get_index(conv)); + + if (GAIM_IS_GTK_WINDOW(win)) + gtk_window_present(GTK_WINDOW(GAIM_GTK_WINDOW(win)->window)); } } else if (GAIM_BLIST_NODE_IS_CHAT(node)) { serv_join_chat(((struct chat *)node)->account->gc, ((struct chat*)node)->components);