pidgin: 6f5af043: Add purple_notify_user_info_prepend_pair...
markdoliner at pidgin.im
markdoliner at pidgin.im
Mon Aug 22 02:30:32 EDT 2011
----------------------------------------------------------------------
Revision: 6f5af0434e9e0e13d615df333538f6b7b1759b63
Parent: dca6d015c0d7b8acb27e49467353e954bb2ff23e
Author: markdoliner at pidgin.im
Date: 08/22/11 02:25:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6f5af0434e9e0e13d615df333538f6b7b1759b63
Changelog:
Add purple_notify_user_info_prepend_pair_plaintext and use it in a few
places in the jabber prpl
Changes against parent dca6d015c0d7b8acb27e49467353e954bb2ff23e
patched libpurple/protocols/jabber/buddy.c
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c a27963457bbff0bb49ebb52b0ecef3a23278110a
+++ libpurple/protocols/jabber/buddy.c aa561d6dcf6b78119e760654f497185fe3ed86f1
@@ -731,11 +731,16 @@ add_jbr_info(JabberBuddyInfo *jbi, const
g_strdup_printf("%s%s%s", jbr->client.name,
(jbr->client.version ? " " : ""),
(jbr->client.version ? jbr->client.version : ""));
+ /* TODO: Check whether it's correct to call prepend_pair_html,
+ or if we should be using prepend_pair_plaintext */
purple_notify_user_info_prepend_pair(user_info, _("Client"), tmp);
g_free(tmp);
- if (jbr->client.os)
+ if (jbr->client.os) {
+ /* TODO: Check whether it's correct to call prepend_pair_html,
+ or if we should be using prepend_pair_plaintext */
purple_notify_user_info_prepend_pair(user_info, _("Operating System"), jbr->client.os);
+ }
}
if (jbr && jbr->tz_off != PURPLE_NO_TZ_OFF) {
@@ -751,13 +756,13 @@ add_jbr_info(JabberBuddyInfo *jbi, const
jbr->tz_off < 0 ? '-' : '+',
abs(jbr->tz_off / (60*60)),
abs((jbr->tz_off % (60*60)) / 60));
- purple_notify_user_info_prepend_pair(user_info, _("Local Time"), timestamp);
+ purple_notify_user_info_prepend_pair_plaintext(user_info, _("Local Time"), timestamp);
g_free(timestamp);
}
if (jbir && jbir->idle_seconds > 0) {
char *idle = purple_str_seconds_to_string(jbir->idle_seconds);
- purple_notify_user_info_prepend_pair(user_info, _("Idle"), idle);
+ purple_notify_user_info_prepend_pair_plaintext(user_info, _("Idle"), idle);
g_free(idle);
}
@@ -782,12 +787,12 @@ add_jbr_info(JabberBuddyInfo *jbi, const
purple_notify_user_info_prepend_pair(user_info, _("Status"), tmp);
g_snprintf(priority, sizeof(priority), "%d", jbr->priority);
- purple_notify_user_info_prepend_pair(user_info, _("Priority"), priority);
+ purple_notify_user_info_prepend_pair_plaintext(user_info, _("Priority"), priority);
g_free(tmp);
g_free(purdy);
} else {
- purple_notify_user_info_prepend_pair(user_info, _("Status"), _("Unknown"));
+ purple_notify_user_info_prepend_pair_plaintext(user_info, _("Status"), _("Unknown"));
}
}
@@ -827,8 +832,11 @@ static void jabber_buddy_info_show_if_re
add_jbr_info(jbi, jbr->name, jbr);
- if (jbr->name)
+ if (jbr->name) {
+ /* TODO: Check whether it's correct to call prepend_pair_html,
+ or if we should be using prepend_pair_plaintext */
purple_notify_user_info_prepend_pair(user_info, _("Resource"), jbr->name);
+ }
}
}
@@ -848,7 +856,7 @@ static void jabber_buddy_info_show_if_re
title = _("Logged Off");
message = g_strdup_printf(_("%s ago"), last);
}
- purple_notify_user_info_prepend_pair(user_info, title, message);
+ purple_notify_user_info_prepend_pair_plaintext(user_info, title, message);
g_free(last);
g_free(message);
}
@@ -858,6 +866,8 @@ static void jabber_buddy_info_show_if_re
g_strdup_printf("%s%s%s", _("Offline"),
jbi->last_message ? ": " : "",
jbi->last_message ? jbi->last_message : "");
+ /* TODO: Check whether it's correct to call prepend_pair_html,
+ or if we should be using prepend_pair_plaintext */
purple_notify_user_info_prepend_pair(user_info, _("Status"), status);
g_free(status);
}
More information about the Commits
mailing list