changeset 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 458422e5a561
children 421020171808
files src/gtkblist.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);