changeset 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 2ecae50992e2
children a6e9cd5e853e
files src/buddy.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Sun Mar 30 07:12:01 2003 +0000
+++ b/src/buddy.c	Sun Mar 30 13:12:50 2003 +0000
@@ -223,7 +223,14 @@
 	node = g_value_get_pointer(&val);
 	
 	if (GAIM_BLIST_NODE_IS_BUDDY(node)) {
-		gaim_conversation_new(GAIM_CONV_IM, ((struct buddy*)node)->account, ((struct buddy*)node)->name);
+		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));
+			gaim_window_switch_conversation(
+				gaim_conversation_get_window(conv),
+				gaim_conversation_get_index(conv));
+		}
 	} else if (GAIM_BLIST_NODE_IS_GROUP(node)) {
 		if (gtk_tree_view_row_expanded(tv, path))
 			gtk_tree_view_collapse_row(tv, path);