summaryrefslogtreecommitdiff
path: root/gtk/gtkmessagedialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-07-22 16:10:32 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-07-22 16:10:32 +0000
commitfe1380e0c41a4e42c294e0c01caac125eb924755 (patch)
treeb7c69a97afcf6f06d884f9a9890fef8cb38d7ed9 /gtk/gtkmessagedialog.c
parent1db798a4001e205f3a8bd65c6ad5ebdb9eb036a0 (diff)
downloadgtk+-fe1380e0c41a4e42c294e0c01caac125eb924755.tar.gz
Point out escaping oversight. (#311260, Owen Taylor)
2005-07-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmessagedialog.c (gtk_message_dialog_format_secondary_markup): Point out escaping oversight. (#311260, Owen Taylor)
Diffstat (limited to 'gtk/gtkmessagedialog.c')
-rw-r--r--gtk/gtkmessagedialog.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index 5ca713d1c0..443baa43c5 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -599,6 +599,18 @@ gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog,
* Note that setting a secondary text makes the primary text become
* bold, unless you have provided explicit markup.
*
+ * Due to an oversight, this function does not escape special XML characters
+ * like gtk_message_dialog_new_with_markup() does. Thus, if the arguments
+ * may contain special XML characters, you should use g_markup_printf_escaped()
+ * to escape it.
+ * <informalexample><programlisting>
+ * gchar *msg;
+ *
+ * msg = g_markup_printf_escaped (message_format, ...);
+ * gtk_message_dialog_format_secondary_markup (message_dialog, "&percnt;s", msg);
+ * g_free (msg);
+ * </programlisting></informalexample>
+ *
* Since: 2.6
**/
void