Mercurial > pidgin
comparison libpurple/protocols/myspace/user.c @ 24667:9fc3f5bf4455
Make our profile text a little cleaner and more uniform across the protocols.
They all have a "View web profile" link at the bottom that opens the user's
profile in a browser. I'm open to suggestions on the wording. I also wasn't
sure if it was better for the link to be at the bottom of the profile or the
top.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 09 Dec 2008 02:59:29 +0000 |
parents | 85fc34efe733 |
children | 1af3baa61c9f 65cfc59858cf |
comparison
equal
deleted
inserted
replaced
24666:641fe4c2b2a5 | 24667:9fc3f5bf4455 |
---|---|
105 purple_notify_user_info_add_pair(user_info, _("User"), user->username); | 105 purple_notify_user_info_add_pair(user_info, _("User"), user->username); |
106 } | 106 } |
107 | 107 |
108 uid = purple_blist_node_get_int(&user->buddy->node, "UserID"); | 108 uid = purple_blist_node_get_int(&user->buddy->node, "UserID"); |
109 | 109 |
110 if (full) { | |
111 /* TODO: link to username, if available */ | |
112 if (uid) { | |
113 char *profile = g_strdup_printf("<a href=\"http://myspace.com/%d\">http://myspace.com/%d</a>", | |
114 uid, uid); | |
115 purple_notify_user_info_add_pair(user_info, _("Profile"), profile); | |
116 g_free(profile); | |
117 } | |
118 } | |
119 | |
120 | |
121 /* a/s/l...the vitals */ | 110 /* a/s/l...the vitals */ |
122 if (user->age) { | 111 if (user->age) { |
123 char age[16]; | 112 char age[16]; |
124 g_snprintf(age, sizeof(age), "%d", user->age); | 113 g_snprintf(age, sizeof(age), "%d", user->age); |
125 purple_notify_user_info_add_pair(user_info, _("Age"), age); | 114 purple_notify_user_info_add_pair(user_info, _("Age"), age); |
177 client = g_strdup_printf("Build %d", cv); | 166 client = g_strdup_printf("Build %d", cv); |
178 } | 167 } |
179 if (client && *client) | 168 if (client && *client) |
180 purple_notify_user_info_add_pair(user_info, _("Client Version"), client); | 169 purple_notify_user_info_add_pair(user_info, _("Client Version"), client); |
181 g_free(client); | 170 g_free(client); |
171 } | |
172 | |
173 if (full && uid) { | |
174 /* TODO: link to username, if available */ | |
175 char *profile; | |
176 purple_notify_user_info_add_section_break(user_info); | |
177 profile = g_strdup_printf("<a href=\"http://myspace.com/%d\">%s</a>", | |
178 uid, _("View web profile")); | |
179 purple_notify_user_info_add_pair(user_info, NULL, profile); | |
180 g_free(profile); | |
182 } | 181 } |
183 } | 182 } |
184 | 183 |
185 /** Set the currently playing song artist and or title. | 184 /** Set the currently playing song artist and or title. |
186 * | 185 * |