comparison src/gtkpounce.c @ 10774:d83f745c997b

[gaim-migrate @ 12383] Some escaping stuff, all over the place. Various escaping fixes in the IRC prpl. The core and plugins only need to escape text if it's going to be shown in a gtkimhtml or equivalent - such as writing to a conversation window, or gaim_notify_{formatted,userinfo} The primary and secondary text for all notify and request API functions do NOT need to be escaped by the core or plugins, because whether html-like markup is required for these is UI dependent. Now we always escape these in the Gtk UI request & notify ops. Should I backport any of the above to oldstatus? I also removed gaim_chat_get_display_name() - it was almost a duplicate of gaim_chat_get_name(), and it leaked. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 02 Apr 2005 17:18:43 +0000
parents 896efbdc74e2
children 5cda52915a1f
comparison
equal deleted inserted replaced
10773:888d4c328be5 10774:d83f745c997b
952 952
953 if (gaim_pounce_action_is_enabled(pounce, "popup-notify")) 953 if (gaim_pounce_action_is_enabled(pounce, "popup-notify"))
954 { 954 {
955 char tmp[1024]; 955 char tmp[1024];
956 const char *name_shown; 956 const char *name_shown;
957 char *escaped;
958
959 escaped = g_markup_escape_text(alias, -1);
960 957
961 /* 958 /*
962 * Here we place the protocol name in the pounce dialog to lessen 959 * Here we place the protocol name in the pounce dialog to lessen
963 * confusion about what protocol a pounce is for. 960 * confusion about what protocol a pounce is for.
964 */ 961 */
978 (events & GAIM_POUNCE_IDLE) ? 975 (events & GAIM_POUNCE_IDLE) ?
979 _("%s has become idle (%s)") : 976 _("%s has become idle (%s)") :
980 (events & GAIM_POUNCE_AWAY) ? 977 (events & GAIM_POUNCE_AWAY) ?
981 _("%s has gone away. (%s)") : 978 _("%s has gone away. (%s)") :
982 _("Unknown pounce event. Please report this!"), 979 _("Unknown pounce event. Please report this!"),
983 escaped, gaim_account_get_protocol_name(account)); 980 alias, gaim_account_get_protocol_name(account));
984
985 g_free(escaped);
986 981
987 /* 982 /*
988 * Ok here is where I change the second argument, title, from 983 * Ok here is where I change the second argument, title, from
989 * NULL to the account name if that's all we have or the account 984 * NULL to the account name if that's all we have or the account
990 * alias if we have that 985 * alias if we have that