diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-06-15 05:25:53 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-06-15 05:25:53 +0800 |
commit | b88d5cc70e93567ffc8aa10f470abe92928b395e (patch) | |
tree | d291fbb959bf5b5a3662cf04239a66ec70eb1138 /src/bookmarks/ephy-new-bookmark.c | |
parent | 6a6db353ca01d693c363c249903e63546f48e837 (diff) | |
download | gsoc2013-epiphany-b88d5cc70e93567ffc8aa10f470abe92928b395e.tar gsoc2013-epiphany-b88d5cc70e93567ffc8aa10f470abe92928b395e.tar.gz gsoc2013-epiphany-b88d5cc70e93567ffc8aa10f470abe92928b395e.tar.bz2 gsoc2013-epiphany-b88d5cc70e93567ffc8aa10f470abe92928b395e.tar.lz gsoc2013-epiphany-b88d5cc70e93567ffc8aa10f470abe92928b395e.tar.xz gsoc2013-epiphany-b88d5cc70e93567ffc8aa10f470abe92928b395e.tar.zst gsoc2013-epiphany-b88d5cc70e93567ffc8aa10f470abe92928b395e.zip |
Escape strings before using them with markup in labels.
2004-06-14 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-new-bookmark.c: (duplicate_dialog_construct):
* src/bookmarks/ephy-topic-action.c: (build_topics_menu):
Escape strings before using them with markup in labels.
Diffstat (limited to 'src/bookmarks/ephy-new-bookmark.c')
-rw-r--r-- | src/bookmarks/ephy-new-bookmark.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-new-bookmark.c b/src/bookmarks/ephy-new-bookmark.c index aab4f5aad..35c8b4d16 100644 --- a/src/bookmarks/ephy-new-bookmark.c +++ b/src/bookmarks/ephy-new-bookmark.c @@ -297,7 +297,7 @@ duplicate_dialog_construct (GtkWindow *parent, { GtkWidget *dialog; GtkWidget *hbox, *vbox, *label, *image; - char *str, *tmp_str, *tmp_title; + char *escaped_title, *str, *tmp_str, *tmp_title; /* FIXME: We "should" use gtk_message dialog here * but it doesn't support markup of text yet @@ -333,11 +333,13 @@ duplicate_dialog_construct (GtkWindow *parent, label = gtk_label_new (NULL); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); - tmp_title = g_strconcat ("<b>", title, "</b>", NULL); + escaped_title = g_markup_escape_text (title, -1); + tmp_title = g_strconcat ("<b>", escaped_title, "</b>", NULL); tmp_str = g_strdup_printf (_("A bookmark titled %s already exists for this page."), tmp_title); str = g_strconcat ("<big>", tmp_str, "</big>", NULL); gtk_label_set_markup (GTK_LABEL (label), str); + g_free (escaped_title); g_free (tmp_title); g_free (tmp_str); g_free (str); |