cpw.malu.xmpp.attention: 49572589: Updated support for XEP-0224.

malu at pidgin.im malu at pidgin.im
Thu Sep 25 16:10:36 EDT 2008


-----------------------------------------------------------------
Revision: 49572589dfdd46da35bfcfa7e61ebf4e1cb515e0
Ancestor: bf07db8e6300ffa5dc4613996800db83ad350afb
Author: malu at pidgin.im
Date: 2008-09-25T20:08:53
Branch: im.pidgin.cpw.malu.xmpp.attention
URL: http://d.pidgin.im/viewmtn/revision/info/49572589dfdd46da35bfcfa7e61ebf4e1cb515e0

Modified files:
        libpurple/protocols/jabber/jabber.c

ChangeLog: 

Updated support for XEP-0224.
Refs #3173

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	825251d252c4ea07a3cfb8778cedad0ccde46026
+++ libpurple/protocols/jabber/jabber.c	3c3fba0cdd7ba7f887115740e75ebe83fabb8d44
@@ -1642,9 +1642,12 @@ GList *jabber_status_types(PurpleAccount
 	PurpleStatusType *type;
 	GList *types = NULL;
 	PurpleValue *priority_value;
+	PurpleValue *buzz_enabled;
 
 	priority_value = purple_value_new(PURPLE_TYPE_INT);
 	purple_value_set_int(priority_value, 1);
+	buzz_enabled = purple_value_new(PURPLE_TYPE_BOOLEAN);
+	purple_value_set_boolean(buzz_enabled, TRUE);
 	type = purple_status_type_new_with_attrs(PURPLE_STATUS_AVAILABLE,
 			jabber_buddy_state_get_status_id(JABBER_BUDDY_STATE_ONLINE),
 			NULL, TRUE, TRUE, FALSE,
@@ -1653,7 +1656,7 @@ GList *jabber_status_types(PurpleAccount
 			"mood", _("Mood"), purple_value_new(PURPLE_TYPE_STRING),
 			"moodtext", _("Mood Text"), purple_value_new(PURPLE_TYPE_STRING),
 			"nick", _("Nickname"), purple_value_new(PURPLE_TYPE_STRING),
-			"buzz", _("Allow Buzz"), purple_value_new(PURPLE_TYPE_BOOLEAN),
+			"buzz", _("Allow Buzz"), buzz_enabled,
 			NULL);
 	types = g_list_append(types, type);
 
@@ -1667,7 +1670,7 @@ GList *jabber_status_types(PurpleAccount
 			"mood", _("Mood"), purple_value_new(PURPLE_TYPE_STRING),
 			"moodtext", _("Mood Text"), purple_value_new(PURPLE_TYPE_STRING),
 			"nick", _("Nickname"), purple_value_new(PURPLE_TYPE_STRING),
-			"buzz", _("Allow Buzz"), purple_value_new(PURPLE_TYPE_BOOLEAN),
+			"buzz", _("Allow Buzz"), buzz_enabled,
 			NULL);
 	types = g_list_append(types, type);
 
@@ -1681,7 +1684,6 @@ GList *jabber_status_types(PurpleAccount
 			"mood", _("Mood"), purple_value_new(PURPLE_TYPE_STRING),
 			"moodtext", _("Mood Text"), purple_value_new(PURPLE_TYPE_STRING),
 			"nick", _("Nickname"), purple_value_new(PURPLE_TYPE_STRING),
-			"buzz", _("Allow Buzz"), purple_value_new(PURPLE_TYPE_BOOLEAN),
 			NULL);
 	types = g_list_append(types, type);
 
@@ -1695,7 +1697,6 @@ GList *jabber_status_types(PurpleAccount
 			"mood", _("Mood"), purple_value_new(PURPLE_TYPE_STRING),
 			"moodtext", _("Mood Text"), purple_value_new(PURPLE_TYPE_STRING),
 			"nick", _("Nickname"), purple_value_new(PURPLE_TYPE_STRING),
-			"buzz", _("Allow Buzz"), purple_value_new(PURPLE_TYPE_BOOLEAN),
 			NULL);
 	types = g_list_append(types, type);
 
@@ -1709,7 +1710,6 @@ GList *jabber_status_types(PurpleAccount
 			"mood", _("Mood"), purple_value_new(PURPLE_TYPE_STRING),
 			"moodtext", _("Mood Text"), purple_value_new(PURPLE_TYPE_STRING),
 			"nick", _("Nickname"), purple_value_new(PURPLE_TYPE_STRING),
-			"buzz", _("Allow Buzz"), purple_value_new(PURPLE_TYPE_BOOLEAN),
 			NULL);
 	types = g_list_append(types, type);
 


More information about the Commits mailing list