gobjectification: dfb672c8: Add purple_chat_get_alias, which is need...
qulogic at pidgin.im
qulogic at pidgin.im
Wed Jun 9 01:32:25 EDT 2010
-----------------------------------------------------------------
Revision: dfb672c84d488ae378020799aa628bca0da795bd
Ancestor: 958754581c407a77c2d856379abc7baf2702b3b5
Author: qulogic at pidgin.im
Date: 2010-06-09T04:53:06
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/dfb672c84d488ae378020799aa628bca0da795bd
Modified files:
libpurple/chat.c libpurple/chat.h
ChangeLog:
Add purple_chat_get_alias, which is needed in finch and pidgin.
-------------- next part --------------
============================================================
--- libpurple/chat.c e403fa1dad2fe7e4ad00db9a9b6493fba1c69f90
+++ libpurple/chat.c 3b3ffc036c604747ae394457ab019d907471d4e0
@@ -171,6 +171,16 @@ void purple_chat_set_alias(PurpleChat *c
g_free(old_alias);
}
+const char *
+purple_chat_get_alias(PurpleChat *chat)
+{
+ PurpleChatPrivate *priv;
+ g_return_val_if_fail(PURPLE_IS_CHAT(chat), NULL);
+ priv = PURPLE_CHAT_GET_PRIVATE(chat);
+
+ return priv->alias;
+}
+
void
purple_chat_destroy(PurpleChat *chat)
{
============================================================
--- libpurple/chat.h 670af1dfb25d69940059bdf57fa79b38a4b51ed6
+++ libpurple/chat.h 750d6a843ce1855d2a0bd69fc173284069c8db71
@@ -115,6 +115,17 @@ void purple_chat_set_alias(PurpleChat *c
void purple_chat_set_alias(PurpleChat *chat, const char *alias);
/**
+ * Returns the alias of a chat in the buddy list.
+ *
+ * @param chat The chat whose alias will be changed.
+ *
+ * @return The chat's alias.
+ *
+ * @since 3.0.0
+ */
+const char *purple_chat_get_alias(PurpleChat *chat);
+
+/**
* Returns the group of which the chat is a member.
*
* @param chat The chat.
More information about the Commits
mailing list