Debian Codegraph @

debian/patches/singpolyma-0015-Format-keyID-the-same-everywhere.patch

raw
1 From 12e4ec8e61c59380c7dd92baae1df9747cdc29df Mon Sep 17 00:00:00 2001
2 From: Stephen Paul Weber <[email protected]>
3 Date: Sun, 24 Apr 2011 14:48:45 -0500
4 Subject: [PATCH 15/18] Format keyID the same everywhere
5
6 ---
7 src/fe-common/fe-rosters.c | 7 +++++--
8 1 file changed, 5 insertions(+), 2 deletions(-)
9
10 --- a/src/fe-common/fe-rosters.c
11 +++ b/src/fe-common/fe-rosters.c
12 @@ -135,7 +135,7 @@
13 static void
14 show_begin_of_roster(XMPP_SERVER_REC *server)
15 {
16 - char *show, *status, *priority, *text, *resources;
17 + char *show, *status, *priority, *text, *resources, *pgp_keyid;
18
19 g_return_if_fail(IS_XMPP_SERVER(server));
20 show = (server->show == XMPP_PRESENCE_AVAILABLE) ? NULL :
21 @@ -147,9 +147,12 @@
22 format_get_text(MODULE_NAME, NULL, server, NULL,
23 XMPPTXT_FORMAT_RESOURCE_STATUS, server->away_reason);
24 priority = g_strdup_printf("%d", server->priority);
25 + pgp_keyid = !settings_get_str("xmpp_pgp") ? NULL : \
26 + format_get_text(MODULE_NAME, NULL, server, NULL,
27 + XMPPTXT_FORMAT_PGP_KEYID, settings_get_str("xmpp_pgp"));
28 text = format_get_text(MODULE_NAME, NULL, server, NULL,
29 XMPPTXT_FORMAT_RESOURCE, show, server->resource, priority,
30 - status, settings_get_str("xmpp_pgp"));
31 + status, pgp_keyid);
32 g_free(show);
33 g_free(status);
34 g_free(priority);