changeset 22418:b0b8c94118c8

Make sure an existing conversation selected from the 'Send IM' dialog is given the focus.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 06 Mar 2008 15:54:30 +0000
parents 316c8565f562
children d83adbf0c92c
files finch/gntblist.c finch/gntconv.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntblist.c	Wed Mar 05 10:00:45 2008 +0000
+++ b/finch/gntblist.c	Thu Mar 06 15:54:30 2008 +0000
@@ -2610,11 +2610,13 @@
 {
 	PurpleAccount *account;
 	const char *username;
+	PurpleConversation *conv;
 
 	account  = purple_request_fields_get_account(fields, "account");
 	username = purple_request_fields_get_string(fields,  "screenname");
 
-	purple_conversation_new(PURPLE_CONV_TYPE_IM, account, username);
+	conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, username);
+	purple_conversation_present(conv);
 }
 
 static void
--- a/finch/gntconv.c	Wed Mar 05 10:00:45 2008 +0000
+++ b/finch/gntconv.c	Thu Mar 06 15:54:30 2008 +0000
@@ -660,8 +660,10 @@
 	PurpleAccount *account;
 	PurpleBlistNode *convnode = NULL;
 
-	if (ggc)
+	if (ggc) {
+		gnt_window_present(ggc->window);
 		return;
+	}
 
 	account = purple_conversation_get_account(conv);
 	cc = find_conv_with_contact(account, purple_conversation_get_name(conv));