Mercurial > pidgin
comparison src/gtkdialogs.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 | 4cfc6bebeb5f |
children | 2ab4b5acc8d1 |
comparison
equal
deleted
inserted
replaced
10773:888d4c328be5 | 10774:d83f745c997b |
---|---|
984 } | 984 } |
985 | 985 |
986 void | 986 void |
987 gaim_gtkdialogs_remove_chat(GaimChat *chat) | 987 gaim_gtkdialogs_remove_chat(GaimChat *chat) |
988 { | 988 { |
989 gchar *name = gaim_chat_get_display_name(chat); | 989 const gchar *name = gaim_chat_get_name(chat); |
990 gchar *text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), name); | 990 gchar *text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), name); |
991 | 991 |
992 g_return_if_fail(chat != NULL); | 992 g_return_if_fail(chat != NULL); |
993 | 993 |
994 gaim_request_action(chat, NULL, _("Remove Chat"), text, 0, chat, 2, | 994 gaim_request_action(chat, NULL, _("Remove Chat"), text, 0, chat, 2, |
995 _("Remove Chat"), G_CALLBACK(gaim_gtkdialogs_remove_chat_cb), | 995 _("Remove Chat"), G_CALLBACK(gaim_gtkdialogs_remove_chat_cb), |
996 _("Cancel"), NULL); | 996 _("Cancel"), NULL); |
997 | 997 |
998 g_free(name); | |
999 g_free(text); | 998 g_free(text); |
1000 } | 999 } |