changeset 26728:f28cb84e1632

Bring the conversation to front from a click on the ticker.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 29 Apr 2009 02:27:55 +0000
parents 53b4f6ba8523
children 89f613b16e2b
files pidgin/plugins/ticker/ticker.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/ticker/ticker.c	Tue Apr 28 18:57:16 2009 +0000
+++ b/pidgin/plugins/ticker/ticker.c	Wed Apr 29 02:27:55 2009 +0000
@@ -53,7 +53,7 @@
 	guint timeout;
 } TickerData;
 
-GList *tickerbuds = NULL;
+static GList *tickerbuds = NULL;
 
 static void buddy_ticker_update_contact(PurpleContact *contact);
 
@@ -91,9 +91,10 @@
 	PurpleContact *contact = user_data;
 	PurpleBuddy *b = purple_contact_get_priority_buddy(contact);
 
-	purple_conversation_new(PURPLE_CONV_TYPE_IM,
-	                        purple_buddy_get_account(b),
-							purple_buddy_get_name(b));
+	PurpleConversation *conv = purple_conversation_new(PURPLE_CONV_TYPE_IM,
+	                                purple_buddy_get_account(b),
+	                                purple_buddy_get_name(b));
+	purple_conversation_present(conv);
 	return TRUE;
 }