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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc

Issue 67179: Have ResourceBundle own GdkPixbufs. (Closed)
Patch Set: null Created 11 years, 8 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
Index: chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
index 2f2cf0362fdd383a4467d43965226f4ebfd584fa..7d14396a642f6616fc20073a679a2107fcbde95b 100755
--- a/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
@@ -202,11 +202,11 @@ gboolean AutocompletePopupViewGtk::HandleExpose(GtkWidget* widget,
// TODO(deanm): These would be better as pixmaps someday.
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- static GdkPixbuf* o2_globe = rb.LoadPixbuf(IDR_O2_GLOBE);
- static GdkPixbuf* o2_history = rb.LoadPixbuf(IDR_O2_HISTORY);
- static GdkPixbuf* o2_more = rb.LoadPixbuf(IDR_O2_MORE);
- static GdkPixbuf* o2_search = rb.LoadPixbuf(IDR_O2_SEARCH);
- static GdkPixbuf* o2_star = rb.LoadPixbuf(IDR_O2_STAR);
+ static GdkPixbuf* o2_globe = rb.GetPixbufNamed(IDR_O2_GLOBE);
+ static GdkPixbuf* o2_history = rb.GetPixbufNamed(IDR_O2_HISTORY);
+ static GdkPixbuf* o2_more = rb.GetPixbufNamed(IDR_O2_MORE);
+ static GdkPixbuf* o2_search = rb.GetPixbufNamed(IDR_O2_SEARCH);
+ static GdkPixbuf* o2_star = rb.GetPixbufNamed(IDR_O2_STAR);
GdkRectangle window_rect = GetWindowRect(event->window);
// Handle when our window is super narrow. A bunch of the calculations

Powered by Google App Engine
This is Rietveld 408576698