pidgin.next.minor: 2cf73bea: Add the purple_blist_update_node_icon fu...
deryni at pidgin.im
deryni at pidgin.im
Sat May 17 16:16:24 EDT 2008
-----------------------------------------------------------------
Revision: 2cf73beac822fe53ae4e986249a5215addbd416c
Ancestor: 4d2d20241c7dac5915e142f0aa9811c9eab40111
Author: deryni at pidgin.im
Date: 2008-05-13T04:26:28
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/2cf73beac822fe53ae4e986249a5215addbd416c
Modified files:
ChangeLog.API libpurple/blist.c libpurple/blist.h
ChangeLog:
Add the purple_blist_update_node_icon function and deprecate the
purple_blist_update_buddy_icon function.
-------------- next part --------------
============================================================
--- ChangeLog.API 0f2a42c7a4d6a3caff9234f8bb7735df0728b948
+++ ChangeLog.API b4a0795a27a386872a4e0798412cfc9a8b7cd67f
@@ -1,10 +1,15 @@ version 2.5.0:
Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul
version 2.5.0:
- libpurple:
- Added:
- * purple_serv_got_join_chat_failed
- * chat-join-failed signal (see conversation-signals.dox)
+ libpurple:
+ Added:
+ * purple_serv_got_join_chat_failed
+ * chat-join-failed signal (see conversation-signals.dox)
+ * purple_blist_update_node_icon
+
+ Deprecated:
+ * purple_blist_update_buddy_icon
+
perl:
Added:
* Purple::Prefs::get_children_names.
============================================================
--- libpurple/blist.c 0b556c797ea883ca59a0c070b6e95b388cd9ee19
+++ libpurple/blist.c 01822c015ad4595964807df0787495e729ace501
@@ -824,16 +824,25 @@ purple_blist_update_buddy_status(PurpleB
ops->update(purplebuddylist, (PurpleBlistNode *)buddy);
}
-void purple_blist_update_buddy_icon(PurpleBuddy *buddy)
+void
+purple_blist_update_node_icon(PurpleBlistNode *node)
{
PurpleBlistUiOps *ops = purple_blist_get_ui_ops();
- g_return_if_fail(buddy != NULL);
+ g_return_if_fail(node != NULL);
if (ops && ops->update)
- ops->update(purplebuddylist, (PurpleBlistNode *)buddy);
+ ops->update(purplebuddylist, node);
}
+#ifndef PURPLE_DISABLE_DEPRECATED
+void
+purple_blist_update_buddy_icon(PurpleBuddy *buddy)
+{
+ purple_blist_update_node_icon((PurpleBlistNode *)buddy);
+}
+#endif
+
/*
* TODO: Maybe remove the call to this from server.c and call it
* from oscar.c and toc.c instead?
============================================================
--- libpurple/blist.h 9918cbe2ba1e5e51cf784d61cbdc69285305e4b7
+++ libpurple/blist.h f5f157f7a36bb2fc4a60c7349d89e5fb5ad75bdb
@@ -317,11 +317,22 @@ void purple_blist_update_buddy_status(Pu
void purple_blist_update_buddy_status(PurpleBuddy *buddy, PurpleStatus *old_status);
/**
+ * Updates a node's custom icon.
+ *
+ * @param node The PurpleBlistNode whose custom icon has changed.
+ * @since 2.5.0
+ */
+void purple_blist_update_node_icon(PurpleBlistNode *node);
+
+#ifndef PURPLE_DISABLE_DEPRECATED
+/**
* Updates a buddy's icon.
*
* @param buddy The buddy whose buddy icon has changed
+ * @deprecated Use purple_blist_update_node_icon() instead.
*/
void purple_blist_update_buddy_icon(PurpleBuddy *buddy);
+#endif
/**
* Renames a buddy in the buddy list.
More information about the Commits
mailing list