Mercurial > pidgin.yaz
diff pidgin/plugins/ticker/ticker.c @ 26810: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 | ed13551a592a |
| children | 82367f0e6ec3 |
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; }
