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

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

Issue 9815006: ui/gfx: Remove the deprecated "operator const GdkPixbuf*" from Image API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « chrome/browser/ui/gtk/custom_drag.cc ('k') | chrome/browser/ui/gtk/download/download_shelf_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/download/download_item_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_item_gtk.cc b/chrome/browser/ui/gtk/download/download_item_gtk.cc
index 9aa7ecfd573e6394ced8935b58a2d1361c1fcbf7..30c063b523cee54048164bf083c6885aeb85e33a 100644
--- a/chrome/browser/ui/gtk/download/download_item_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_item_gtk.cc
@@ -633,10 +633,10 @@ void DownloadItemGtk::UpdateDangerIcon() {
} else {
// Set the warning icon.
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- int pixbuf_id = download_model_->IsMalicious() ?
- IDR_SAFEBROWSING_WARNING : IDR_WARNING;
- GdkPixbuf* download_pixbuf = rb.GetNativeImageNamed(pixbuf_id);
- gtk_image_set_from_pixbuf(GTK_IMAGE(dangerous_image_), download_pixbuf);
+ int pixbuf_id = download_model_->IsMalicious() ? IDR_SAFEBROWSING_WARNING
+ : IDR_WARNING;
+ gtk_image_set_from_pixbuf(GTK_IMAGE(dangerous_image_),
+ rb.GetNativeImageNamed(pixbuf_id).ToGdkPixbuf());
}
}
« no previous file with comments | « chrome/browser/ui/gtk/custom_drag.cc ('k') | chrome/browser/ui/gtk/download/download_shelf_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698