diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2011-07-31 08:07:16 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2011-08-13 00:03:04 +0800 |
commit | e6945b6c75103866ac890219e93463ff4ce06183 (patch) | |
tree | 271e98df7c03c1dd2ecddaca43a40a5642969eff /embed | |
parent | a5184806fb2ad44ea7dd898de73eaf1201a8f9fc (diff) | |
download | gsoc2013-epiphany-e6945b6c75103866ac890219e93463ff4ce06183.tar.gz gsoc2013-epiphany-e6945b6c75103866ac890219e93463ff4ce06183.tar.zst gsoc2013-epiphany-e6945b6c75103866ac890219e93463ff4ce06183.zip |
Use g_markup_printf_escaped when printing uris
This covers GtkInfoBar in ephy-web-view.c, ephy-download-widget.c and
also tooltips and labels in ephy-download-widget.c
Bug #649164
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-web-view.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 6f78d4f68..b4aca442d 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -763,9 +763,9 @@ request_decision_on_storing (StorePasswordData *store_data) * hostname where this is happening. Example: gnome@gmail.com and * mail.google.com. */ - message = g_strdup_printf (_("<big>Would you like to store the password for <b>%s</b> in <b>%s</b>?</big>"), - store_data->name_value, - hostname); + message = g_markup_printf_escaped (_("<big>Would you like to store the password for <b>%s</b> in <b>%s</b>?</big>"), + store_data->name_value, + hostname); gtk_label_set_markup (GTK_LABEL (label), message); g_free (hostname); g_free (message); @@ -1732,8 +1732,8 @@ geolocation_policy_decision_requested_cb (WebKitWebView *web_view, G_CALLBACK (send_yes_response_cb), info_bar); /* Label */ - message = g_strdup_printf (_("The page at <b>%s</b> wants to know your location."), - webkit_web_frame_get_uri (web_frame)); + message = g_markup_printf_escaped (_("The page at <b>%s</b> wants to know your location."), + webkit_web_frame_get_uri (web_frame)); label = gtk_label_new (message); g_object_set (label, "use-markup", TRUE, NULL); |