im.pidgin.pidgin: 5d3167fe2417fd61959da01eedea2878368f0349
sadrul at pidgin.im
sadrul at pidgin.im
Tue Jan 22 09:11:08 EST 2008
-----------------------------------------------------------------
Revision: 5d3167fe2417fd61959da01eedea2878368f0349
Ancestor: a6e5b9db3ef85c7185709be9f5d3ce132813d995
Author: sadrul at pidgin.im
Date: 2008-01-22T02:59:56
Branch: im.pidgin.pidgin
Modified files:
ChangeLog.API libpurple/blist.c libpurple/blist.h
ChangeLog:
Add an accessor function for PurpleChat.
-------------- next part --------------
============================================================
--- ChangeLog.API 3979790a0e6fc294dde883814733c5f1b733af7f
+++ ChangeLog.API cad2f0da01d6aaf7370d87dfe75d30f710145ce6
@@ -34,6 +34,7 @@ version 2.4.0 (??/??/????):
* purple_blist_node_get_parent
* purple_blist_node_get_first_child
* purple_blist_node_get_sibling_next
+ * purple_chat_get_account
Pidgin:
Added:
============================================================
--- libpurple/blist.c 6f36dcb06dcd094699d6f32ea65f99e8f08e6b82
+++ libpurple/blist.c 95393603cf4b1d4962e5def8255b609bf173a6f7
@@ -2247,6 +2247,14 @@ purple_chat_get_group(PurpleChat *chat)
return (PurpleGroup *)(((PurpleBlistNode *)chat)->parent);
}
+PurpleAccount *
+purple_chat_get_account(PurpleChat *chat)
+{
+ g_return_val_if_fail(chat != NULL, NULL);
+
+ return chat->account;
+}
+
PurpleContact *purple_buddy_get_contact(PurpleBuddy *buddy)
{
g_return_val_if_fail(buddy != NULL, NULL);
============================================================
--- libpurple/blist.h 385f2656641904f67f314c713238a0b3a1a578f4
+++ libpurple/blist.h 9a8627da46eb6fe352820cace26ce03fcca01f5c
@@ -706,6 +706,16 @@ PurpleGroup *purple_chat_get_group(Purpl
PurpleGroup *purple_chat_get_group(PurpleChat *chat);
/**
+ * Returns the account the chat belongs to.
+ *
+ * @param chat The chat.
+ *
+ * @return The account the chat belongs to.
+ * @since 2.4.0
+ */
+PurpleAccount *purple_chat_get_account(PurpleChat *chat);
+
+/**
* Returns the group of which the buddy is a member.
*
* @param buddy The buddy
More information about the Commits
mailing list