Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5005)

Unified Diff: chrome/browser/gtk/download_item_gtk.cc

Issue 2733005: Download filename encoding fix [try2]: (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: add test Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/net_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/download_item_gtk.cc
diff --git a/chrome/browser/gtk/download_item_gtk.cc b/chrome/browser/gtk/download_item_gtk.cc
index b74951ba4ecf1c861e017e0057f069bd39bd35ab..f64b30f0ea01bf0c06c26ac4e801d91038a03a47 100644
--- a/chrome/browser/gtk/download_item_gtk.cc
+++ b/chrome/browser/gtk/download_item_gtk.cc
@@ -548,7 +548,7 @@ void DownloadItemGtk::UpdateStatusLabel(GtkWidget* status_label,
gtk_util::SetLabelColor(status_label, theme_provider_->UseGtkTheme() ?
NULL : &text_color);
- gtk_label_set_label(GTK_LABEL(status_label), status_text.c_str());
+ gtk_label_set_text(GTK_LABEL(status_label), status_text.c_str());
}
void DownloadItemGtk::UpdateDangerWarning() {
@@ -583,8 +583,8 @@ void DownloadItemGtk::UpdateDangerWarning() {
gtk_util::SetLabelColor(dangerous_label_, &color);
}
- gtk_label_set_label(GTK_LABEL(dangerous_label_),
- WideToUTF8(dangerous_warning).c_str());
+ gtk_label_set_text(GTK_LABEL(dangerous_label_),
+ WideToUTF8(dangerous_warning).c_str());
// Until we switch to vector graphics, force the font size.
gtk_util::ForceFontSizePixels(dangerous_label_, kTextSize);
« no previous file with comments | « no previous file | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698