aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--embed/ephy-web-view.c10
-rw-r--r--lib/widgets/ephy-download-widget.c7
2 files changed, 7 insertions, 10 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);
diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c
index ab52e4e72..084116804 100644
--- a/lib/widgets/ephy-download-widget.c
+++ b/lib/widgets/ephy-download-widget.c
@@ -153,7 +153,6 @@ widget_progress_cb (GObject *object,
EphyDownloadWidget *widget)
{
WebKitDownload *download;
- char *file;
char *destination;
gdouble time;
char *remaining;
@@ -162,8 +161,7 @@ widget_progress_cb (GObject *object,
char *remaining_tooltip;
download = WEBKIT_DOWNLOAD (object);
- file = g_filename_display_basename (webkit_download_get_destination_uri (download));
- destination = g_uri_unescape_string (file, NULL);
+ destination = g_filename_display_basename (webkit_download_get_destination_uri (download));
progress = webkit_download_get_progress (download) * 100;
time = get_remaining_time (download);
@@ -174,12 +172,11 @@ widget_progress_cb (GObject *object,
remaining = g_strdup (_("Finished"));
remaining_label = g_strdup_printf ("%d%% (%s)", progress, remaining);
- remaining_tooltip = g_strdup_printf ("%s\n%s", destination, remaining_label);
+ remaining_tooltip = g_markup_printf_escaped ("%s\n%s", destination, remaining_label);
gtk_label_set_text (GTK_LABEL (widget->priv->remaining), remaining_label);
gtk_widget_set_tooltip_text (GTK_WIDGET (widget), remaining_tooltip);
- g_free (file);
g_free (destination);
g_free (remaining);
g_free (remaining_label);