Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 11533:c9b815aeddc1
[gaim-migrate @ 13782]
Pushing more of the userinfo stuff to the UI. Also, fixed a notify API warning in the perl plugin.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 12 Sep 2005 20:04:37 +0000 |
parents | 57439a383f4f |
children | 9b58dadf1c16 |
comparison
equal
deleted
inserted
replaced
11532:57439a383f4f | 11533:c9b815aeddc1 |
---|---|
4872 splitmsg = g_strsplit(msg, "\r\n", 0); | 4872 splitmsg = g_strsplit(msg, "\r\n", 0); |
4873 dialogmsg = g_strdup_printf(_("<B>UIN:</B> %s<BR><B>Status:</B> %s<HR>%s"), who, statusmsg, g_strjoinv("<BR>", splitmsg)); | 4873 dialogmsg = g_strdup_printf(_("<B>UIN:</B> %s<BR><B>Status:</B> %s<HR>%s"), who, statusmsg, g_strjoinv("<BR>", splitmsg)); |
4874 g_free(statusmsg); | 4874 g_free(statusmsg); |
4875 g_strfreev(splitmsg); | 4875 g_strfreev(splitmsg); |
4876 | 4876 |
4877 gaim_notify_userinfo(gc, who, _("Buddy Information"), NULL, dialogmsg, NULL, NULL); | 4877 gaim_notify_userinfo(gc, who, dialogmsg, NULL, NULL); |
4878 | 4878 |
4879 g_free(title); | 4879 g_free(title); |
4880 g_free(dialogmsg); | 4880 g_free(dialogmsg); |
4881 } break; | 4881 } break; |
4882 | 4882 |
5097 } | 5097 } |
5098 } | 5098 } |
5099 | 5099 |
5100 tmp = gaim_str_sub_away_formatters(str->str, gaim_account_get_username(account)); | 5100 tmp = gaim_str_sub_away_formatters(str->str, gaim_account_get_username(account)); |
5101 g_string_free(str, TRUE); | 5101 g_string_free(str, TRUE); |
5102 gaim_notify_userinfo(gc, userinfo->sn, _("Buddy Information"), NULL, tmp, NULL, NULL); | 5102 gaim_notify_userinfo(gc, userinfo->sn, tmp, NULL, NULL); |
5103 g_free(tmp); | 5103 g_free(tmp); |
5104 | 5104 |
5105 return 1; | 5105 return 1; |
5106 } | 5106 } |
5107 | 5107 |
5923 OscarData *od = (OscarData *)gc->proto_data; | 5923 OscarData *od = (OscarData *)gc->proto_data; |
5924 GaimBuddy *buddy; | 5924 GaimBuddy *buddy; |
5925 struct buddyinfo *bi = NULL; | 5925 struct buddyinfo *bi = NULL; |
5926 gchar who[16]; | 5926 gchar who[16]; |
5927 GString *str; | 5927 GString *str; |
5928 gchar *primary, *utf8; | 5928 gchar *utf8; |
5929 const gchar *alias; | 5929 const gchar *alias; |
5930 va_list ap; | 5930 va_list ap; |
5931 struct aim_icq_info *info; | 5931 struct aim_icq_info *info; |
5932 | 5932 |
5933 va_start(ap, fr); | 5933 va_start(ap, fr); |
6025 | 6025 |
6026 if (buddy != NULL) | 6026 if (buddy != NULL) |
6027 alias = gaim_buddy_get_alias(buddy); | 6027 alias = gaim_buddy_get_alias(buddy); |
6028 else | 6028 else |
6029 alias = who; | 6029 alias = who; |
6030 primary = g_strdup_printf(_("ICQ Info for %s"), alias); | 6030 gaim_notify_userinfo(gc, who, str->str, NULL, NULL); |
6031 gaim_notify_userinfo(gc, who, primary, NULL, str->str, NULL, NULL); | |
6032 g_free(primary); | |
6033 g_string_free(str, TRUE); | 6031 g_string_free(str, TRUE); |
6034 | 6032 |
6035 return 1; | 6033 return 1; |
6036 } | 6034 } |
6037 | 6035 |