pidgin: 8ca847c9: Bring the conversation to front from a c...

sadrul at pidgin.im sadrul at pidgin.im
Tue Apr 28 23:31:18 EDT 2009


-----------------------------------------------------------------
Revision: 8ca847c9c44387f3a02ab4d5c82fc696db14e28c
Ancestor: c0ad3732e2de434e21818fa9169f9b6835945f74
Author: sadrul at pidgin.im
Date: 2009-04-29T02:27:55
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8ca847c9c44387f3a02ab4d5c82fc696db14e28c

Modified files:
        pidgin/plugins/ticker/ticker.c

ChangeLog: 

Bring the conversation to front from a click on the ticker.

-------------- next part --------------
============================================================
--- pidgin/plugins/ticker/ticker.c	6de0a400664ed126d35e1a46bca739a5f9a7316d
+++ pidgin/plugins/ticker/ticker.c	7b5481ad644abf7fa1f813e13fecf0f21eff414b
@@ -53,7 +53,7 @@ typedef struct {
 	guint timeout;
 } TickerData;
 
-GList *tickerbuds = NULL;
+static GList *tickerbuds = NULL;
 
 static void buddy_ticker_update_contact(PurpleContact *contact);
 
@@ -91,9 +91,10 @@ static gboolean buddy_click_cb(GtkWidget
 	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;
 }
 


More information about the Commits mailing list