diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-06-15 05:44:52 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-06-15 05:44:52 +0800 |
commit | 7df4f3cd1d2f6fc0543c81c041d250941abc81f7 (patch) | |
tree | 3ea6d737f4694ae1db55ba6371e0d36574eeb39f | |
parent | b7ecb5596c818a2206503832e46b69178594f6ea (diff) | |
download | gsoc2013-epiphany-7df4f3cd1d2f6fc0543c81c041d250941abc81f7.tar gsoc2013-epiphany-7df4f3cd1d2f6fc0543c81c041d250941abc81f7.tar.gz gsoc2013-epiphany-7df4f3cd1d2f6fc0543c81c041d250941abc81f7.tar.bz2 gsoc2013-epiphany-7df4f3cd1d2f6fc0543c81c041d250941abc81f7.tar.lz gsoc2013-epiphany-7df4f3cd1d2f6fc0543c81c041d250941abc81f7.tar.xz gsoc2013-epiphany-7df4f3cd1d2f6fc0543c81c041d250941abc81f7.tar.zst gsoc2013-epiphany-7df4f3cd1d2f6fc0543c81c041d250941abc81f7.zip |
Use g_markup_print_escaped().
2004-06-14 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-new-bookmark.c: (duplicate_dialog_construct):
Use g_markup_print_escaped().
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/bookmarks/ephy-new-bookmark.c | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -1,6 +1,12 @@ 2004-06-14 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-new-bookmark.c: (duplicate_dialog_construct): + + Use g_markup_print_escaped(). + +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. diff --git a/src/bookmarks/ephy-new-bookmark.c b/src/bookmarks/ephy-new-bookmark.c index 27adc5cdd..a2f121c8c 100644 --- a/src/bookmarks/ephy-new-bookmark.c +++ b/src/bookmarks/ephy-new-bookmark.c @@ -296,7 +296,7 @@ duplicate_dialog_construct (GtkWindow *parent, { GtkWidget *dialog; GtkWidget *hbox, *vbox, *label, *image; - char *escaped_title, *str, *tmp_str, *tmp_title; + char *str, *tmp_str, *tmp_title; /* FIXME: We "should" use gtk_message dialog here * but it doesn't support markup of text yet @@ -332,13 +332,11 @@ 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); - escaped_title = g_markup_escape_text (title, -1); - tmp_title = g_strconcat ("<b>", escaped_title, "</b>", NULL); + tmp_title = g_markup_printf_escaped ("<b>%s</b>", title); 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); |